body.admin-body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #f4f7fb;
    color: #22304a;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 290px;
    background: linear-gradient(180deg, #0c1d63 0%, #0f2d8d 100%);
    color: #fff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
}

.admin-brand {
    font-family: 'Jost', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.admin-subtitle {
    color: rgba(255, 255, 255, 0.76);
    margin-top: 10px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 14px;
    padding: 12px 14px;
    transition: 0.2s ease;
}

.admin-nav a i {
    width: 22px;
    margin-right: 8px;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-main {
    flex: 1;
    padding: 32px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-title {
    font-family: 'Jost', sans-serif;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-panel,
.admin-stat-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(18, 38, 63, 0.08);
}

.admin-stat-label {
    color: #627086;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.admin-stat-value {
    font-family: 'Jost', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-top: 12px;
}

.admin-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top left, #dbeafe, #eef2ff 50%, #f8fafc 100%);
}

.admin-auth-card {
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    background: #fff;
    padding: 36px;
}

.admin-panel h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}

.form-control,
.btn,
.custom-select {
    border-radius: 12px;
}

.admin-content-stickybar {
    position: sticky;
    top: 18px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 45, 141, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: 0 12px 35px rgba(18, 38, 63, 0.08);
}

.admin-content-tabs {
    gap: 10px;
    flex-wrap: wrap;
}

.admin-content-tabs .nav-link {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    color: #3a4a68;
    background: #e9eef8;
}

.admin-content-tabs .nav-link.active {
    background: #0f2d8d;
}

.admin-input-help {
    color: #6b7b93;
    font-size: 13px;
    margin-top: 6px;
}

.admin-repeater {
    margin-bottom: 0;
}

.admin-repeater-card {
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
    border: 1px solid rgba(15, 45, 141, 0.08);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}

.admin-repeater-index {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 45, 141, 0.08);
    color: #0f2d8d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
}

.admin-image-field {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.admin-image-preview-frame {
    width: 120px;
    min-width: 120px;
    height: 120px;
    background: #eef3fb;
    border: 1px solid rgba(15, 45, 141, 0.08);
    border-radius: 18px;
    overflow: hidden;
}

.admin-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-icon-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-icon-preview {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.admin-image-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.admin-library-card {
    border: 1px solid rgba(15, 45, 141, 0.08);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
}

.admin-library-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #eef3fb;
}

.admin-library-meta {
    padding: 12px 14px;
}

.admin-library-path {
    font-size: 12px;
    color: #52627c;
    word-break: break-word;
}

.admin-content-form label {
    font-weight: 600;
    color: #24344d;
}

.admin-content-form .form-control {
    border: 1px solid #d7e0ee;
    padding: 12px 14px;
    min-height: 48px;
}

.admin-content-form textarea.form-control {
    min-height: auto;
}

.admin-toolbar-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.admin-table-wrap {
    border: 1px solid rgba(15, 45, 141, 0.08);
    border-radius: 18px;
    overflow: hidden;
}

.admin-courses-table thead th {
    background: #f4f7fb;
    border-top: 0;
    border-bottom: 1px solid rgba(15, 45, 141, 0.08);
    color: #4a5874;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.admin-courses-table tbody td {
    vertical-align: middle;
    border-color: rgba(15, 45, 141, 0.08);
    padding-top: 18px;
    padding-bottom: 18px;
}

.admin-row-number {
    width: 54px;
    font-weight: 700;
    color: #7b869d;
}

.admin-course-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.admin-course-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: #eef3fb;
    border: 1px solid rgba(15, 45, 141, 0.08);
}

.admin-course-title {
    font-weight: 700;
    color: #1f2f4a;
    margin-bottom: 6px;
    line-height: 1.35;
}

.admin-course-summary {
    color: #6d7a91;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 360px;
}

.admin-course-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #40506d;
    font-weight: 600;
}

.admin-course-meta i {
    color: #0f2d8d;
}

.admin-course-duration {
    color: #7b869d;
    font-size: 12px;
    margin-top: 6px;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #edf1f7;
    color: #53627d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-status-badge.is-featured {
    background: rgba(255, 193, 7, 0.14);
    color: #9a6b00;
}

.admin-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-action-form {
    margin: 0;
}

.admin-action-btn {
    min-width: 110px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 12px;
}

.admin-course-form-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
    border: 1px solid rgba(15, 45, 141, 0.08);
    border-radius: 18px;
    padding: 16px;
}

.admin-course-form-thumb {
    width: 88px;
    height: 88px;
    min-width: 88px;
    border-radius: 18px;
    object-fit: cover;
    background: #eef3fb;
    border: 1px solid rgba(15, 45, 141, 0.08);
}

.admin-submit-btn {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .admin-main {
        padding: 20px;
    }

    .admin-topbar {
        flex-direction: column;
    }

    .admin-content-stickybar,
    .admin-image-field,
    .admin-icon-picker,
    .admin-course-form-preview {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-image-preview-frame {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .admin-actions {
        width: 100%;
    }

    .admin-action-btn,
    .admin-action-form {
        width: 100%;
    }

    .admin-course-cell {
        min-width: 0;
    }
}
