/* Dark-only admin UI inspired by the existing CRM/Hospitals/Partners shells. */
:root {
    --room-bg: #08151d;
    --room-panel: #0d1117;
    --room-card: #0c1927;
    --room-card-soft: #102236;
    --room-border: #213142;
    --room-text: #e6edf3;
    --room-muted: #8ea0b5;
    --room-primary: #00baff;
    --room-primary-strong: #58a6ff;
    --room-success: #2fe6a6;
    --room-warning: #ffcf5c;
    --room-danger: #ff6b7a;
    --sidebar-width: 300px;
}

* {
    box-sizing: border-box;
}

body.room-admin {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--room-text);
    background: var(--room-bg);
}

a {
    color: inherit;
}

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

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.98);
    border-right: 1px solid var(--room-border);
    box-shadow: 16px 0 36px rgba(0, 0, 0, 0.26);
}

.sidebar-brand {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 1.35rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark,
.admin-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #001018;
    background: linear-gradient(135deg, var(--room-primary), var(--room-success));
    box-shadow: 0 0 22px rgba(0, 186, 255, 0.32);
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-subtitle {
    color: var(--room-muted);
    font-size: 0.78rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.85rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.82rem 0.95rem;
    margin-bottom: 0.25rem;
    color: #c8d4e3;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sidebar-link i {
    width: 1.2rem;
    color: var(--room-primary-strong);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #ffffff;
    background: rgba(0, 186, 255, 0.09);
    border-color: rgba(0, 186, 255, 0.18);
    transform: translateX(2px);
}

.sidebar-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    color: #b9f8df;
    background: rgba(47, 230, 166, 0.08);
    border: 1px solid rgba(47, 230, 166, 0.24);
    border-radius: 999px;
    font-size: 0.82rem;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--room-success);
    box-shadow: 0 0 0 4px rgba(47, 230, 166, 0.14);
}

.admin-main {
    width: 100%;
    min-width: 0;
    margin-left: var(--sidebar-width);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(8, 21, 29, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--room-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--room-border);
    border-radius: 12px;
}

.header-title {
    display: flex;
    flex-direction: column;
    margin-right: auto;
}

.header-kicker {
    color: var(--room-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-avatar {
    width: 38px;
    height: 38px;
}

.admin-content {
    padding: 0;
}

.admin-content > .container,
.admin-content > .container-fluid {
    max-width: 100% !important;
    padding-left: 8.5rem !important;
    padding-right: 8.5rem !important;
    padding-top: 0 !important;
    padding-bottom: 7rem !important;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.page-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
}

.page-heading p {
    max-width: 760px;
    margin: 0.4rem 0 0;
    color: var(--room-muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card,
.content-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 34, 54, 0.92), rgba(12, 25, 39, 0.96));
    border: 1px solid rgba(88, 166, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.stat-card {
    min-height: 132px;
    padding: 1.15rem;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -45px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 186, 255, 0.16), transparent 65%);
}

.stat-label {
    color: var(--room-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 0.35rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}

.stat-meta {
    color: #9fb2c8;
    font-size: 0.86rem;
}

.content-card {
    padding: 1.2rem;
}

.admin-sidebar .sidebar-footer,
.admin-sidebar .status-pill,
.admin-sidebar .status-dot {
    display: none;
}

.content-card + .content-card {
    margin-top: 1rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-title-row h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
}

.room-table {
    margin-bottom: 0;
    color: #dce7f4;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.room-table thead th {
    color: #aebfd2;
    background: #08151d !important;
    border-top: 1px solid rgba(0, 186, 255, 0.18);
    border-bottom: 1px solid rgba(0, 186, 255, 0.22);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.82rem 0.9rem;
}

.room-table tbody td {
    color: #dce7f4;
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    padding: 0.8rem 0.9rem;
    background: transparent;
    font-size: 0.9rem;
}

.room-table tbody tr:nth-child(odd) td {
    background: rgba(15, 33, 46, 0.42);
}

.room-table tbody tr:nth-child(even) td {
    background: rgba(10, 24, 34, 0.42);
}

.room-table tbody tr:hover td {
    background: rgba(0, 186, 255, 0.1);
    color: #f3fbff;
}

/* Admin documents library: fit without horizontal scroll, compact actions */
.documents-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.documents-table-wrap .dataTables_wrapper {
    width: 100% !important;
}

.documents-table-wrap table.dataTable {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.room-documents-table .doc-col-title {
    width: 30%;
}

.room-documents-table .doc-col-type {
    width: 6%;
}

.room-documents-table .doc-col-status {
    width: 15%;
}

.room-documents-table .doc-col-num {
    width: 6.5%;
    text-align: right;
}

.room-documents-table thead .doc-col-num {
    text-align: right;
}

.room-documents-table .doc-col-date {
    width: 11%;
}

.room-documents-table .doc-col-actions {
    width: 7rem;
    white-space: nowrap;
}

.room-documents-table tbody tr.doc-library-row[data-pdf-href] {
    cursor: pointer;
}

.doc-title-cell {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-documents-table .doc-col-status .badge-soft {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-icon {
    padding: 0.28rem 0.45rem;
    line-height: 1;
}

.btn-icon i {
    margin: 0;
    font-size: 1rem;
    vertical-align: -0.08em;
}

.room-documents-table .doc-actions-cell .btn-icon + .btn-icon {
    margin-left: 0.2rem;
}

.room-documents-table .doc-actions-cell .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    padding: 2rem;
    color: var(--room-muted);
    text-align: center;
    border: 1px dashed rgba(142, 160, 181, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.viewer-list-item {
    padding: 0.75rem;
    border: 1px solid rgba(88, 166, 255, 0.16);
    border-radius: 12px;
    background: rgba(8, 21, 29, 0.36);
}

.viewer-video {
    width: 100%;
    margin-top: 0.55rem;
    border-radius: 10px;
    background: #000;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.action-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    color: var(--room-text);
    text-decoration: none;
    border: 1px solid rgba(88, 166, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.action-tile:hover {
    color: #ffffff;
    border-color: rgba(0, 186, 255, 0.36);
    background: rgba(0, 186, 255, 0.08);
}

.action-tile i {
    color: var(--room-primary);
    font-size: 2rem;
}

.action-tile small {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-soft.info {
    color: #b8ecff;
    background: rgba(0, 186, 255, 0.11);
    border: 1px solid rgba(0, 186, 255, 0.24);
}

.badge-soft.success {
    color: #b9f8df;
    background: rgba(47, 230, 166, 0.11);
    border: 1px solid rgba(47, 230, 166, 0.24);
}

.badge-soft.warning {
    color: #ffe8a6;
    background: rgba(255, 207, 92, 0.11);
    border: 1px solid rgba(255, 207, 92, 0.24);
}

.badge-soft.danger {
    color: #ffb8b8;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
}

.form-control,
.form-select {
    color: var(--room-text);
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--room-border);
}

.form-select,
select.form-select,
select.form-control,
select {
    color-scheme: dark;
}

.form-select option,
select option,
.form-select optgroup,
select optgroup {
    color: #dce7f4;
    background-color: #0f1e2e;
}

.form-control:focus,
.form-select:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.055);
    border-color: var(--room-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 186, 255, 0.13);
}

.btn-primary {
    color: #ffffff;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #00baff, #0077cc);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 0 10px rgba(0, 186, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff;
    transform: scale(1.05);
    filter: brightness(1.03);
    box-shadow: 0 0 20px rgba(0, 186, 255, 0.6), 0 0 40px rgba(0, 186, 255, 0.3);
}

.btn-outline-info {
    color: #8edcff;
    border-color: rgba(0, 186, 255, 0.5);
    background: rgba(0, 186, 255, 0.06);
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-outline-info:hover {
    color: #001018;
    background: #00baff;
    border-color: var(--room-primary);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 186, 255, 0.32);
}

/* Gray outline → same light-blue outline treatment as btn-outline-info (member portal admin) */
.room-admin .btn-outline-secondary {
    color: #8edcff;
    border-color: rgba(0, 186, 255, 0.5);
    background: rgba(0, 186, 255, 0.06);
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.room-admin .btn-outline-secondary:hover,
.room-admin .btn-outline-secondary:focus {
    color: #001018;
    background: #00baff;
    border-color: var(--room-primary);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 186, 255, 0.32);
}

.btn-sm {
    border-radius: 7px;
    padding: 0.38rem 0.72rem;
    font-weight: 600;
}

/* CRM-style DataTables controls (applies when DataTables is enabled on list pages). */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 0.8rem 0 !important;
}

.dataTables_wrapper .dataTables_info {
    color: #b8c5d6 !important;
    font-size: 14px !important;
    padding: 0.2rem 0 !important;
    font-weight: 400 !important;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    color: #8fa4bd !important;
    font-size: 0.88rem !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background-color: #162639 !important;
    color: #d1d9e6 !important;
    border: 1px solid #2a3f5f !important;
    border-radius: 6px !important;
    box-shadow: 0 0 10px 5px rgba(2, 61, 150, 0.15), 0 2px 10px 0 rgba(2, 62, 150, 0) !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none !important;
    border-color: #3a5f8f !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 186, 255, 0.18) !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 0.2rem 0 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    float: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0 !important;
    margin: 0 0.18rem !important;
    border: 0 !important;
    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 0 !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
    background: rgba(255, 255, 255, 0.01) !important;
    color: #8fa4bd !important;
    border: 1px solid #3b4d63 !important;
    border-radius: 8px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0.36rem 0.52rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) .page-link {
    background: rgba(0, 186, 255, 0.08) !important;
    border-color: rgba(0, 186, 255, 0.5) !important;
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-link.active,
.dataTables_wrapper .dataTables_paginate .pagination .page-link[aria-current="page"] {
    background: #00baff !important;
    border-color: #00baff !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 186, 255, 0.35) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent !important;
    opacity: 1 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover .page-link {
    cursor: not-allowed !important;
    color: #6f8398 !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: #3b4d63 !important;
    opacity: 0.45 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.next .page-link {
    min-width: 58px !important;
}

.dataTables_wrapper .row:last-child {
    align-items: center !important;
}

.dataTables_wrapper .row:last-child > div:last-child {
    display: flex !important;
    justify-content: flex-end !important;
}

/* Bootstrap pagination fallback with CRM colors for non-DataTables pages. */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.01);
    color: #8fa4bd;
    border: 1px solid #3b4d63;
    border-radius: 8px;
    margin: 0 0.18rem;
    min-width: 34px;
    height: 34px;
    padding: 0.36rem 0.52rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: rgba(0, 186, 255, 0.08);
    color: #ffffff;
    border-color: rgba(0, 186, 255, 0.5);
}

.pagination .page-item.active .page-link,
.pagination .page-link.active,
.pagination .page-link[aria-current="page"] {
    background: #00baff;
    border-color: #00baff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 186, 255, 0.35);
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.01);
    color: #6f8398;
    border-color: #3b4d63;
    opacity: 0.45;
}

@media (max-width: 1199.98px) {
    .admin-content > .container,
    .admin-content > .container-fluid {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    #siteLogo {
        margin-left: 2rem !important;
    }

    .site-header .header-right {
        margin-right: 2rem !important;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

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

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1030;
        pointer-events: none;
        background: rgba(0, 0, 0, 0);
        transition: background 0.22s ease;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.56);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .admin-content {
        padding: 0 0.75rem 2rem;
    }

    .admin-content > .container,
    .admin-content > .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0 !important;
        padding-bottom: 2rem !important;
    }

    #siteLogo {
        margin-left: 0.75rem !important;
    }

    .site-header .header-right {
        margin-right: 0 !important;
    }

    .stat-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }

    .header-actions .btn {
        display: none;
    }
}

/* CRM-like header/sidebar behavior: dark topbar, logo left, overlay sidebar. */
.admin-sidebar {
    z-index: 1060;
    width: 240px;
    background: #08151d;
    border-right: 1px solid #1c3443;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
}

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

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    transition: background 0.22s ease;
}

.sidebar-overlay.active {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.38);
}

.admin-main {
    margin-left: 0;
}

.site-header {
    background: #08151d !important;
    padding: 1.5rem 1.25rem;
    border-bottom: none;
    box-shadow: none;
}

.site-header .room-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header-inner {
    width: 100%;
    min-height: auto;
    position: relative;
}

.header-left {
    display: block;
}

#siteLogo {
    margin-left: 6rem !important;
}

.site-header .header-right {
    flex: 0 0 auto;
    margin-right: 6rem !important;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bcd3e3;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 6px 8px;
}

.sidebar-toggle:hover {
    color: #ffffff;
    background: rgba(0, 186, 255, 0.08);
}

.site-header .sidebar-toggle {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2010 !important;
}

#adminSidebar .sidebar-close {
    position: static !important;
    transform: none !important;
}

#adminSidebar .sidebar-close i {
    font-size: 1.4rem;
}

.site-header .sidebar-toggle i {
    font-size: 32px;
    margin-left: 0;
    color: #adb5bd;
}

.topbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.topbar-logo img {
    display: block;
    width: 206px;
    max-height: 68px;
}

.sidebar-logo {
    display: none;
}

.header-page-title {
    color: #8ea0b5;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #00baff;
    text-decoration: none;
    background: transparent !important;
    border: 0;
    border-radius: 10px;
    box-shadow: none !important;
    font-size: 1.55rem;
}

.header-icon-button:hover {
    color: #33d1ff;
    background: transparent !important;
    box-shadow: none !important;
}

.room-notification-wrap {
    position: relative;
}

.room-notification-bell {
    position: relative;
}

.room-notification-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.15rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    font-size: 0.62rem;
    line-height: 1.05rem;
    color: #fff;
    background: #ff1f3d;
    border: 0;
    box-shadow: 0 0 0 1px rgba(255, 31, 61, 0.35);
}

.room-notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    width: min(25rem, calc(100vw - 1.5rem));
    background: #0b1724;
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    z-index: 1300;
}

.room-notification-head,
.room-notification-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.room-notification-foot {
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: center;
}

.room-notification-foot a {
    color: #cfdcf0;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
}

.room-notification-mark-all {
    border: 1px solid rgba(88, 166, 255, 0.28);
    background: rgba(0, 186, 255, 0.08);
    color: #bfe7ff;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.45rem;
}

.room-notification-list {
    max-height: 22rem;
    overflow-y: auto;
}

.room-notification-item {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.72rem 0.85rem;
    text-decoration: none;
    color: inherit;
}

.room-notification-item:hover {
    background: rgba(0, 186, 255, 0.08);
}

.room-notification-item.is-unread {
    background: rgba(47, 230, 166, 0.08);
    box-shadow: inset 2px 0 0 rgba(47, 230, 166, 0.8);
}

.room-notification-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #eef7ff;
    margin-bottom: 0.2rem;
}

.room-notification-item-meta {
    font-size: 0.72rem;
    color: #9eb2c8;
    margin-bottom: 0.2rem;
}

.room-notification-item-message {
    font-size: 0.75rem;
    color: #c6d5e6;
    line-height: 1.35;
}

.room-notification-empty {
    padding: 1rem 0.85rem;
    color: #9eb2c8;
    font-size: 0.82rem;
    text-align: center;
}

.logout-icon {
    color: #ff4d5e;
}

.logout-icon:hover {
    color: #ff6c7a;
    background: transparent !important;
    box-shadow: none !important;
}

.admin-avatar {
    display: none;
}

.sidebar-brand {
    min-height: 88px;
    padding: 1rem 1.35rem;
    justify-content: flex-end;
}

.sidebar-brand .sidebar-toggle {
    margin-left: auto;
}

.sidebar-brand .brand-title,
.sidebar-brand .brand-subtitle {
    display: none;
}

.sidebar-nav {
    padding: 0.65rem 0.85rem;
}

.sidebar-link {
    gap: 0.7rem;
    padding: 0.66rem 0.75rem;
    color: #e6edf3;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.84rem;
}

.sidebar-link i {
    color: #d7e4ef;
    font-size: 0.92rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #ffffff;
    background: rgba(0, 186, 255, 0.08);
    border-color: transparent;
}

.sidebar-group {
    margin-bottom: 0.25rem;
}

.sidebar-group-toggle {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.sidebar-group-toggle .sidebar-group-chevron {
    margin-left: auto;
    width: auto;
    font-size: 0.75rem;
    color: #8ea0b5;
    transition: transform 0.18s ease;
}

.sidebar-group.is-open .sidebar-group-chevron {
    transform: rotate(180deg);
}

.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.15rem 0 0.35rem 0.55rem;
    margin: 0 0 0.2rem 0.85rem;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.sidebar-subnav[hidden] {
    display: none !important;
}

.sidebar-sublink {
    display: block;
    padding: 0.42rem 0.7rem;
    border-radius: 6px;
    color: #b7c5d4;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
    color: #ffffff;
    background: rgba(0, 186, 255, 0.1);
}

@media (max-width: 575.98px) {
    .topbar-logo img {
        width: 150px;
    }

    .header-page-title {
        display: none;
    }
}

/* Member My Documents — tighter margins (no admin sidebar), cards + DataTables */
.admin-content.member-portal-docs > .container-fluid {
    padding-left: 8.5rem !important;
    padding-right: 8.5rem !important;
    padding-top: 0 !important;
}

.header-map-link {
    gap: 0.38rem;
}

.header-map-label {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    opacity: 0.9;
}

.header-map-link i {
    font-size: 1.52rem;
}

.header-map-link:hover,
.header-map-link:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
}

.site-header .sidebar-toggle,
.site-header .sidebar-toggle:hover,
.site-header .sidebar-toggle:focus-visible,
.site-header .sidebar-toggle:active,
.header-icon-button:focus-visible,
.header-icon-button:active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.member-portal-heading h1 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 700;
}

.member-portal-subtitle {
    max-width: 52rem;
    margin: 0.35rem 0 0;
    color: var(--room-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.member-portal-heading.page-heading {
    margin-bottom: 1rem;
}

.member-docs-table-responsive {
    overflow: visible;
}

.member-docs-dt-wrapper .dataTables_filter label,
.member-docs-dt-wrapper .dataTables_length label {
    color: var(--room-muted);
    font-size: 0.84rem;
}

.member-docs-dt-wrapper .dataTables_filter input {
    margin-left: 0.35rem;
}

.member-docs-dt-wrapper .dataTables_info {
    color: var(--room-muted);
    font-size: 0.84rem;
    padding-top: 0.5rem;
}

.member-docs-room-table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Avoid global .room-table row hover / zebra (rectangles) behind rounded cards */
.member-docs-room-table tbody tr:nth-child(odd) td,
.member-docs-room-table tbody tr:nth-child(even) td {
    background: transparent !important;
}

.member-docs-room-table tbody tr:hover td {
    background: transparent !important;
    color: inherit !important;
}

.member-docs-room-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.member-docs-dt-wrapper .member-docs-room-table {
    display: block;
    width: 100% !important;
}

.member-docs-dt-wrapper .member-docs-room-table tbody {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.member-docs-dt-wrapper .member-docs-room-table tbody tr {
    flex: 1 1 220px;
    max-width: 100%;
    margin: 0;
}

@media (min-width: 576px) {
    .member-docs-dt-wrapper .member-docs-room-table tbody tr {
        max-width: calc(50% - 0.5rem);
    }
}

@media (min-width: 992px) {
    .member-docs-dt-wrapper .member-docs-room-table tbody tr {
        flex: 0 0 calc(33.333% - 0.67rem);
        max-width: calc(33.333% - 0.67rem);
    }
}

.member-doc-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--room-border);
    background: var(--room-card-soft);
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-doc-card--interactive:hover,
.member-doc-card--interactive:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 200, 255, 0.58);
    box-shadow:
        0 8px 28px rgba(0, 186, 255, 0.16),
        0 14px 40px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    outline: none;
}

.member-doc-card--locked {
    cursor: not-allowed;
    border-color: var(--room-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.member-doc-card-visual {
    position: relative;
    aspect-ratio: 2 / 1;
    background: #081018;
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px 20px 0 0;
}

.member-doc-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-doc-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(8, 21, 29, 0.18);
    z-index: 2;
    pointer-events: none;
}

.member-doc-card-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(8, 21, 29, 0.38);
    border: 1px solid rgba(88, 166, 255, 0.55);
    color: rgba(245, 250, 255, 0.98);
    font-size: 1.45rem;
    box-shadow:
        0 0 0 1px rgba(0, 186, 255, 0.28) inset,
        0 0 14px rgba(0, 186, 255, 0.45),
        0 0 30px rgba(0, 186, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.member-doc-card-body {
    padding: 0.75rem 0.85rem 0.95rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, rgba(16, 34, 54, 0.25), rgba(12, 25, 39, 0.94));
}

.member-doc-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-doc-card-meta {
    font-size: 0.72rem;
    color: var(--room-muted);
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-doc-card-meta-sep {
    opacity: 0.55;
    margin: 0 0.2rem;
}

@media (max-width: 575.98px) {
    .admin-content.member-portal-docs > .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0 !important;
    }

    .member-docs-dt-wrapper .member-docs-room-table tbody tr {
        max-width: 100%;
    }
}

/* Admin Document Cards Grid */
.admin-docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.admin-doc-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--room-border);
    background: var(--room-card-soft);
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-doc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.admin-doc-card:hover,
.admin-doc-card-link:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(88, 166, 255, 0.08);
    outline: none;
}

.admin-doc-card:focus-within {
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(88, 166, 255, 0.08);
}

.admin-doc-card-visual {
    position: relative;
    aspect-ratio: 2 / 1;
    background: #081018;
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px 20px 0 0;
}

.admin-doc-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-doc-card-body {
    padding: 0.75rem 0.85rem 0.95rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: var(--room-card-soft);
}

.admin-doc-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-doc-card-meta {
    font-size: 0.72rem;
    color: var(--room-muted);
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-doc-card-meta-sep {
    opacity: 0.55;
    margin: 0 0.2rem;
}

.admin-doc-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    background: rgba(16, 34, 54, 0.12);
    border-top: 1px solid rgba(88, 166, 255, 0.1);
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.admin-doc-card-actions .btn {
    flex: 1 1 auto;
    min-width: 40px;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.18s ease;
}

.admin-doc-card-actions .btn-outline-secondary,
.admin-doc-card-actions .btn-outline-info {
    border: 1px solid rgba(0, 186, 255, 0.5);
    color: #8edcff;
    background: rgba(0, 186, 255, 0.06);
}

.admin-doc-card-actions .btn-outline-warning:hover,
.admin-doc-card-actions .btn-outline-warning:focus {
    background: rgba(255, 207, 92, 0.15);
    border-color: var(--room-warning);
    color: var(--room-warning);
}

.admin-doc-card-actions .btn-outline-secondary:hover,
.admin-doc-card-actions .btn-outline-secondary:focus,
.admin-doc-card-actions .btn-outline-info:hover,
.admin-doc-card-actions .btn-outline-info:focus {
    color: #001018;
    background: #00baff;
    border-color: var(--room-primary);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 186, 255, 0.32);
}

.admin-doc-card-actions .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

