body:has(.aecon-app) {
    margin: 0;
    background: #f3f5f9;
    color: #17243c;
}

body:has(.aecon-app) .panel {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body:has(.aecon-app) .panel > .club-logo {
    display: none;
}

.aecon-app {
    display: flex;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.aecon-sidebar {
    width: 255px;
    flex-shrink: 0;
    background: #10213e;
    color: white;
    padding: 24px 16px;
    box-sizing: border-box;
}

.aecon-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 25px;
    border-bottom: 1px solid #30415d;
}

.aecon-identity img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-sizing: border-box;
}

.aecon-identity strong {
    display: block;
    font-size: 16px;
}

.aecon-identity small {
    display: block;
    margin-top: 5px;
    color: #b3c0d4;
    font-size: 10px;
}

.aecon-nav {
    padding-top: 25px;
}

.aecon-nav a {
    display: block;
    padding: 14px 16px;
    margin-bottom: 6px;
    color: #cbd5e5;
    text-decoration: none;
    border-radius: 9px;
    font-size: 14px;
}

.aecon-nav a.active,
.aecon-nav a:hover {
    background: #263e66;
    color: white;
}

.aecon-nav a.active {
    border-left: 3px solid #f5b942;
}

.aecon-main {
    flex: 1;
    min-width: 0;
}

.aecon-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: white;
    border-bottom: 1px solid #e5e9f0;
}

.aecon-topbar form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.aecon-topbar button {
    width: auto;
    margin: 0;
    padding: 10px 15px;
    background: #edf1f6;
    color: #243a5a;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.aecon-content {
    max-width: 1350px;
    margin: auto;
    padding: 36px;
}

.aecon-content h1 {
    font-size: 27px;
    margin: 0 0 8px;
}

.aecon-content > p {
    color: #7b8699;
    margin-bottom: 28px;
}

.aecon-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.aecon-stat {
    background: white;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 3px 15px rgba(20,40,70,.04);
}

.aecon-stat small {
    display: block;
    color: #7a8598;
    font-size: 13px;
}

.aecon-stat strong {
    display: block;
    font-size: 34px;
    margin-top: 14px;
    color: #14284a;
}

.aecon-footerbar {
    margin-top: 40px;
    text-align: center;
    color: #8791a2;
    font-size: 12px;
}

@media (max-width: 950px) {
    .aecon-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .aecon-app {
        display: block;
    }

    .aecon-sidebar {
        width: 100%;
        padding: 14px;
    }

    .aecon-nav {
        display: flex;
        overflow-x: auto;
        padding-top: 12px;
    }

    .aecon-nav a {
        white-space: nowrap;
    }

    .aecon-topbar {
        padding: 15px;
    }

    .aecon-content {
        padding: 22px 15px;
    }

    .aecon-stat {
        padding: 16px;
    }
}

/* AECON Articles Professional Layout */

.aecon-articles {
    margin-top: 28px;
}

.aecon-articles h1 {
    font-size: 25px;
    margin-bottom: 8px;
}

.aecon-articles > p {
    color: #7b8699;
    margin-bottom: 24px;
}

.aecon-articles > form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.aecon-articles input[type="search"] {
    flex: 1;
    min-width: 0;
    background: #fff;
    color: #17243c;
    border: 1px solid #dce3ed;
    border-radius: 9px;
    padding: 13px 16px;
    font-size: 14px;
    margin: 0;
}

.aecon-articles > form button {
    width: auto;
    flex-shrink: 0;
    margin: 0;
    padding: 13px 23px;
    border-radius: 9px;
    background: #14284a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.aecon-articles table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    overflow: hidden;
}

.aecon-articles th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 17px 20px;
    text-align: left;
    border-bottom: 1px solid #e4e9f0;
}

.aecon-articles td {
    padding: 19px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #24344f;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}

.aecon-articles tbody tr:last-child td {
    border-bottom: none;
}

.aecon-articles tbody tr:hover {
    background: #f8fafc;
}

.aecon-articles th:first-child,
.aecon-articles td:first-child {
    width: 60%;
    font-weight: 600;
}

.aecon-articles nav {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.aecon-articles nav a {
    padding: 9px 13px;
    background: white;
    border: 1px solid #dce3ed;
    border-radius: 7px;
    color: #14284a;
    text-decoration: none;
}

@media (max-width: 700px) {
    .aecon-articles > form {
        flex-wrap: wrap;
    }

    .aecon-articles > form button {
        width: 100%;
    }

    .aecon-articles table {
        display: block;
        overflow-x: auto;
    }

    .aecon-articles th,
    .aecon-articles td {
        padding: 13px;
        min-width: 120px;
    }
}

/* AECON ARTICLES LIBRARY V2 */

.aecon-library-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}
.aecon-library-header h1 {
    margin:0 0 7px;
    font-size:28px;
}
.aecon-library-header p {
    margin:0;
    color:#718096;
}
.aecon-filters {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
    padding:20px;
    margin-bottom:24px;
    background:white;
    border:1px solid #e4e9f0;
    border-radius:12px;
}
.aecon-filters input,
.aecon-filters select {
    width:auto;
    flex:1;
    min-width:160px;
    margin:0;
    padding:12px;
    border:1px solid #dce3ed;
    border-radius:8px;
    background:white;
    color:#17243c;
    font-size:14px;
}
.aecon-filters button {
    width:auto;
    margin:0;
    padding:12px 20px;
    background:#194b9b;
    color:white;
    border:0;
    border-radius:8px;
}
.aecon-filters > a {
    color:#64748b;
    text-decoration:none;
    font-size:13px;
}
.aecon-library-list {
    background:white;
    border:1px solid #e4e9f0;
    border-radius:12px;
    overflow:hidden;
}
.aecon-library-title {
    display:flex;
    justify-content:space-between;
    padding:20px 24px;
    border-bottom:1px solid #e4e9f0;
}
.aecon-library-title span {
    color:#718096;
    font-size:13px;
}
.aecon-library-item {
    padding:22px 24px;
    border-bottom:1px solid #edf0f5;
}
.aecon-library-item:last-child {
    border-bottom:0;
}
.aecon-library-item h3 {
    font-size:16px;
    margin:0 0 12px;
    color:#17243c;
}
.aecon-library-meta {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    color:#7b8798;
    font-size:12px;
}
.aecon-status {
    padding:5px 10px;
    border-radius:6px;
    font-weight:600;
}
.aecon-status-publish {
    background:#e6f7ed;
    color:#15803d;
}
.aecon-status-draft {
    background:#fff4dd;
    color:#a16207;
}
.aecon-status-pending {
    background:#eaf2ff;
    color:#1d4ed8;
}
.aecon-status-future {
    background:#f1eaff;
    color:#7c3aed;
}
.aecon-empty {
    padding:25px;
    color:#718096;
}
@media(max-width:700px) {
    .aecon-filters {
        display:block;
    }
    .aecon-filters input,
    .aecon-filters select,
    .aecon-filters button {
        width:100%;
        margin-bottom:10px;
    }
    .aecon-library-item {
        padding:18px;
    }
}

/* AECON ARTICLE ACTIONS */
.aecon-article-actions {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:16px;
}
.aecon-action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 13px;
    border-radius:7px;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}
.aecon-action.view {
    background:#edf2f7;
    color:#334155;
}
.aecon-action.edit {
    background:#e7f0ff;
    color:#1d4ed8;
}
.aecon-action.hide {
    background:#fff1df;
    color:#b45309;
}
.aecon-action.manage {
    background:#feecec;
    color:#b91c1c;
}
.aecon-action:not(a) {
    opacity:.6;
    cursor:not-allowed;
}

/* AECON CATEGORY BADGES V1 */
.aecon-category-badge {
    display:inline-flex;
    align-items:center;
    padding:5px 10px;
    border-radius:6px;
    background:#eaf0ff;
    color:#2855a2;
    font-size:12px;
    font-weight:600;
}
.aecon-no-category {
    color:#94a3b8;
    font-size:12px;
}
