html,
body {
    min-height: 100%;
}

.admin-body,
.admin-login-body {
    background: #f5f8fa;
    font-family: Poppins, Helvetica, sans-serif;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    background: #1e1e2d;
    box-shadow: 0 0 28px rgba(82, 63, 105, 0.18);
}

.admin-sidebar-backdrop {
    display: none;
}

.admin-sidebar-toggle {
    display: none !important;
    flex: 0 0 auto;
}

.admin-brand {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.admin-brand:hover {
    color: #fff;
    text-decoration: none;
}

.admin-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.admin-menu {
    display: grid;
    gap: 6px;
    margin-top: 28px;
}

.admin-menu-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    color: #9899ac;
    border-radius: 0.475rem;
    font-weight: 600;
}

.admin-menu-link i {
    width: 22px;
    color: #565674;
    font-size: 17px;
}

.admin-menu-link:hover,
.admin-menu-link.active {
    color: #fff;
    background: #2a2a3c;
    text-decoration: none;
}

.admin-menu-link:hover i,
.admin-menu-link.active i {
    color: #009ef7;
}

.admin-workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 32px;
    background: #fff;
    border-bottom: 1px solid #eff2f5;
    box-shadow: 0 10px 30px rgba(82, 63, 105, 0.05);
}

.admin-eyebrow {
    display: block;
    color: #a1a5b7;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-topbar h1 {
    margin: 2px 0 0;
    color: #181c32;
    font-size: 24px;
    font-weight: 700;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-template-user {
    display: flex;
    align-items: center;
}

.admin-template-user .symbol {
    border-radius: 0.475rem;
}

.admin-template-user .symbol:hover {
    background: #f5f8fa;
}

.admin-main {
    padding: 32px;
}

.admin-title {
    margin-bottom: 24px;
}

.admin-title h1 {
    margin: 0;
    color: #181c32;
    font-size: 28px;
    font-weight: 700;
}

.admin-title p {
    margin: 6px 0 0;
    color: #7e8299;
    font-weight: 500;
}

.admin-card,
.admin-stat {
    background: #fff;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(76, 87, 125, 0.06);
}

.admin-card {
    padding: 26px;
    max-width: 100%;
}

.admin-card h2,
.admin-side-box h2 {
    color: #181c32;
    font-size: 20px;
    font-weight: 700;
}

.admin-stat {
    position: relative;
    min-height: 155px;
    padding: 24px;
    overflow: hidden;
}

.admin-stat span {
    display: block;
    color: #7e8299;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.admin-stat strong {
    display: block;
    margin-top: 12px;
    color: #181c32;
    font-size: 38px;
    font-weight: 800;
}

.stat-icon {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    font-size: 20px;
}

.stat-primary .stat-icon {
    color: #009ef7;
    background: #f1faff;
}

.stat-success .stat-icon {
    color: #50cd89;
    background: #e8fff3;
}

.stat-warning .stat-icon {
    color: #ffc700;
    background: #fff8dd;
}

.stat-info .stat-icon {
    color: #7239ea;
    background: #f8f5ff;
}

.quick-admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.quick-admin-actions a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #3f4254;
    background: #f5f8fa;
    border-radius: 0.75rem;
    font-weight: 700;
}

.quick-admin-actions a:hover {
    color: #009ef7;
    background: #f1faff;
    text-decoration: none;
}

.admin-side-box {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9fbfd;
    border: 1px dashed #e4e6ef;
    border-radius: 0.75rem;
}

.logo-preview {
    display: block;
    width: 190px;
    max-width: 100%;
    max-height: 130px;
    margin-bottom: 14px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eff2f5;
    border-radius: 0.75rem;
    padding: 10px;
}

.profile-avatar-box {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-avatar-box img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(76, 87, 125, 0.08);
}

.faq-admin-row {
    padding: 20px;
    margin-bottom: 18px;
    background: #f9fbfd;
    border-radius: 0.75rem;
}

.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-filter a {
    padding: 10px 16px;
    color: #7e8299;
    background: #f5f8fa;
    border-radius: 0.475rem;
    font-weight: 700;
}

.admin-filter a.active,
.admin-filter a:hover {
    color: #fff;
    background: #009ef7;
    text-decoration: none;
}

.review-admin-table td strong,
.review-admin-table td small,
.review-admin-table td span {
    display: block;
}

.review-admin-table td small {
    color: #a1a5b7;
}

.faq-admin-table td strong {
    color: #181c32;
    font-weight: 700;
}

.faq-answer-preview {
    display: block;
    max-width: 620px;
    color: #7e8299;
    line-height: 1.6;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 0.475rem;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    background: #f5f8fa;
}

.status-pill.approved {
    color: #50cd89;
    background: #e8fff3;
}

.status-pill.pending {
    color: #ffc700;
    background: #fff8dd;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bulk-review-list {
    display: grid;
    gap: 18px;
}

.bulk-review-row {
    padding: 18px;
    background: #f9fbfd;
    border: 1px solid #eff2f5;
    border-radius: 0.75rem;
}

.bulk-review-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.bulk-review-row-head h3 {
    margin: 0;
    color: #181c32;
    font-size: 16px;
    font-weight: 800;
}

.admin-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
}

.form-label {
    color: #3f4254;
    font-weight: 600;
}

.form-control,
.form-select {
    border-color: #e4e6ef;
    border-radius: 0.475rem;
}

.table {
    color: #3f4254;
}

.table-responsive {
    width: 100%;
}

.table thead th {
    color: #a1a5b7;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    border-bottom-color: #eff2f5;
}

.table td {
    border-bottom-color: #eff2f5;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 158, 247, 0.12), transparent 30%),
        linear-gradient(135deg, #f5f8fa 0%, #eef3f7 100%);
}

.admin-login-wrap {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 34px;
    align-items: center;
}

.admin-login-hero {
    color: #181c32;
}

.admin-login-hero img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 22px;
}

.admin-login-hero h1 {
    font-size: 44px;
    font-weight: 800;
}

.admin-login-hero p {
    max-width: 470px;
    color: #7e8299;
    font-size: 17px;
    line-height: 1.7;
}

.admin-login-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(76, 87, 125, 0.12);
}

.admin-toast-source {
    display: none;
}

.admin-toast-container {
    z-index: 1100;
}

.admin-toast {
    min-width: 340px;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(76, 87, 125, 0.16);
}

.admin-toast .toast-header {
    border-bottom: 1px solid #eff2f5;
    background: #fff;
}

.admin-toast-title {
    color: #181c32;
    font-weight: 800;
}

@media (max-width: 991px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1055;
        width: 280px;
        max-width: calc(100vw - 32px);
        height: 100vh;
        padding: 24px 18px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .admin-sidebar-toggle {
        display: inline-flex !important;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1050;
        display: block;
        background: rgba(24, 28, 50, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.admin-sidebar-open {
        overflow: hidden;
    }

    body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    body.admin-sidebar-open .admin-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-menu {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .admin-topbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
    }

    .admin-topbar .page-title {
        flex: 1 1 0;
        min-width: 0;
        margin-bottom: 0 !important;
    }

    .admin-page-about,
    .admin-page-about-divider,
    .admin-view-site-btn {
        display: none !important;
    }

    .admin-login-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .admin-card {
        padding: 18px;
    }

    .admin-topbar h1 {
        min-width: 0;
        font-size: 20px;
        line-height: 1.25;
    }

    .admin-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .admin-filter a {
        flex: 0 0 auto;
    }

    .profile-avatar-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-actions {
        flex-wrap: nowrap;
    }

    .admin-pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-pagination-bar .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .admin-toast-container {
        padding: 16px !important;
    }

    .admin-toast {
        min-width: 0;
        width: calc(100vw - 32px);
    }
}

@media (max-width: 575px) {
    .admin-topbar,
    .admin-main {
        padding: 20px;
    }

    .admin-topbar-actions {
        width: auto;
        align-items: center;
        flex-direction: row;
        margin-left: auto;
    }

    .admin-topbar .page-title {
        order: 3;
        flex-basis: 100%;
    }

    .admin-topbar h1 {
        font-size: 18px;
    }

    .admin-stat {
        min-height: 120px;
    }

    .admin-stat strong {
        font-size: 30px;
    }

    .logo-preview {
        width: 150px;
    }
}
