/* Layout dashboard staff — selaras LMS Portal SATU */

:root {
    --sidebar-width: 260px;
    --primary-green: #2d6a4f;
    --bg-body: #f3f4f6;
}

body.satu-dashboard {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    font-size: 0.88rem;
    color: #4a4a4a;
    margin: 0;
    padding: 0;
}

.satu-dashboard .main-content {
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.satu-dashboard .header-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 3px solid #5c4033;
    padding: 0.7rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.satu-dashboard .card-white {
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
}

.satu-dashboard .page-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3d2914;
}

.satu-sandbox-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #ffc107;
    color: #212529;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-bottom: 2px solid #e0a800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.has-sandbox-banner.satu-dashboard .sidebar {
    top: 42px;
    height: calc(100vh - 42px);
}

body.has-sandbox-banner.satu-dashboard .main-content {
    padding-top: calc(1.5rem + 42px);
}

body.has-sandbox-banner.portal-body {
    padding-top: 42px;
}

@media (max-width: 768px) {
    body.has-sandbox-banner.satu-dashboard .main-content {
        padding-top: calc(1rem + 42px);
    }
}

@media (max-width: 768px) {
    .satu-dashboard .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .satu-dashboard .header-top {
        margin: -1rem -1rem 1rem -1rem;
        padding: 0.8rem 1rem;
    }

    .satu-dashboard .header-user-info {
        display: none !important;
    }
}

/* Pas foto di panel admin (staff layout) */
.satu-pasfoto,
.audition-pass-photo {
    display: block;
    width: 120px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: #f8f9fa;
}
.satu-pasfoto--sm { width: 90px; }
.satu-pasfoto--xs { width: 72px; }
.satu-pasfoto.placeholder,
.audition-pass-photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(90px * 4 / 3);
    color: #adb5bd;
}

/* Sidebar coklat di dark mode */
html[data-bs-theme="dark"] .sidebar,
body.dark-mode .sidebar,
[data-bs-theme="dark"] body.satu-dashboard .sidebar,
body.dark-mode.satu-dashboard .sidebar {
    background: #3d2914 !important;
    background-image: linear-gradient(180deg, #5c4033 0%, #3d2914 55%, #2a1f18 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.45) !important;
}

html[data-bs-theme="dark"] .sidebar .user-profile,
body.dark-mode .sidebar .user-profile {
    background: rgba(0, 0, 0, 0.25) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .satu-dashboard .header-top,
[data-bs-theme="dark"] .satu-dashboard .card-white,
body.dark-mode.satu-dashboard .header-top,
body.dark-mode.satu-dashboard .card-white {
    background: #1e242b !important;
    color: #e9ecef !important;
    border-color: #2d353e !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .satu-dashboard .admin-table th,
body.dark-mode.satu-dashboard .admin-table th {
    color: #ffc107;
}

/* Generic dark surfaces (Bootstrap cards / white helpers) */
body.dark-mode .card,
body.dark-mode .bg-white,
body.dark-mode .chart-container,
body.dark-mode .table-responsive,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .chart-container {
    background-color: #1e242b !important;
    border: 1px solid #2d353e !important;
    color: #e9ecef !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .card-title,
body.dark-mode .satu-chart-card h2,
body.dark-mode .satu-chart-card .h6,
body.dark-mode .satu-exec-detail-title,
[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .satu-chart-card h2,
[data-bs-theme="dark"] .satu-chart-card .h6 {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .satu-dashboard .text-success,
body.dark-mode .text-success {
    color: #34d399 !important;
}

[data-bs-theme="dark"] .satu-exec-detail-title,
body.dark-mode .satu-exec-detail-title {
    color: #34d399 !important;
}

body.dark-mode .text-muted,
body.dark-mode .card-subtitle,
[data-bs-theme="dark"] .satu-dashboard .text-muted,
[data-bs-theme="dark"] .satu-dashboard .card-subtitle {
    color: #adb5bd !important;
}

body.dark-mode table,
body.dark-mode .table,
[data-bs-theme="dark"] .satu-dashboard table,
[data-bs-theme="dark"] .satu-dashboard .table {
    color: #e9ecef !important;
    border-color: #343a40 !important;
    --bs-table-bg: transparent;
    --bs-table-color: #e9ecef;
    --bs-table-border-color: #343a40;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
}

body.dark-mode .table thead th,
body.dark-mode .table-light,
[data-bs-theme="dark"] .satu-dashboard .table thead th,
[data-bs-theme="dark"] .satu-dashboard .table-light {
    background-color: #161a1f !important;
    color: #ffc107 !important;
    border-bottom: 2px solid #343a40 !important;
    --bs-table-bg: #161a1f;
    --bs-table-color: #ffc107;
    --bs-table-border-color: #343a40;
}

body.dark-mode .table tbody tr,
[data-bs-theme="dark"] .satu-dashboard .table tbody tr {
    background-color: transparent !important;
}

body.dark-mode .table tbody tr:hover,
[data-bs-theme="dark"] .satu-dashboard .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
[data-bs-theme="dark"] .satu-dashboard .form-control,
[data-bs-theme="dark"] .satu-dashboard .form-select {
    background-color: #161a1f !important;
    border-color: #343a40 !important;
    color: #e9ecef !important;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
[data-bs-theme="dark"] .satu-dashboard .form-control:focus,
[data-bs-theme="dark"] .satu-dashboard .form-select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
    background-color: #161a1f !important;
    color: #e9ecef !important;
}

body.dark-mode .form-control::placeholder,
[data-bs-theme="dark"] .satu-dashboard .form-control::placeholder {
    color: #6c757d !important;
}

/* Executive Command Center surfaces */
body.dark-mode .satu-kpi-card,
body.dark-mode .satu-chart-card,
[data-bs-theme="dark"] .satu-kpi-card,
[data-bs-theme="dark"] .satu-chart-card {
    background: #1e242b !important;
    border-color: #2d353e !important;
    color: #e9ecef !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .satu-kpi-value,
[data-bs-theme="dark"] .satu-kpi-value {
    color: #6ee7b7 !important;
}

body.dark-mode .satu-kpi-label,
[data-bs-theme="dark"] .satu-kpi-label {
    color: #adb5bd !important;
}

body.dark-mode .satu-kpi-icon,
[data-bs-theme="dark"] .satu-kpi-icon {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}

body.dark-mode .satu-exec-detail,
[data-bs-theme="dark"] .satu-exec-detail {
    background: linear-gradient(180deg, #161a1f 0%, #1e242b 100%) !important;
    border-top-color: #2d353e !important;
    border-bottom-color: #2d353e !important;
    color: #e9ecef !important;
}

body.dark-mode .satu-exec-row.is-open,
[data-bs-theme="dark"] .satu-exec-row.is-open {
    background: rgba(16, 185, 129, 0.12) !important;
}

body.dark-mode .satu-exec-thumb,
[data-bs-theme="dark"] .satu-exec-thumb {
    border-color: #343a40 !important;
}

body.dark-mode .satu-exec-thumb--empty,
[data-bs-theme="dark"] .satu-exec-thumb--empty {
    background: #161a1f !important;
    color: #6c757d !important;
}

body.dark-mode .satu-exec-foto,
[data-bs-theme="dark"] .satu-exec-foto {
    border-color: #2d353e !important;
}

body.dark-mode .badge.bg-light,
[data-bs-theme="dark"] .satu-exec .badge.bg-light {
    background-color: #2d353e !important;
    color: #adb5bd !important;
}

body.dark-mode .btn-outline-secondary,
[data-bs-theme="dark"] .satu-dashboard .btn-outline-secondary {
    border-color: #495057 !important;
    color: #ced4da !important;
}

body.dark-mode .btn-outline-secondary:hover,
[data-bs-theme="dark"] .satu-dashboard .btn-outline-secondary:hover {
    background-color: #2d353e !important;
    color: #fff !important;
}

/* Halaman info: Panduan Teknis & Tentang Aplikasi */
.about-intro,
.about-card,
.guide-card,
.faq-item,
.flow-box,
.page-intro {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-soft, #e9ecef);
    color: inherit;
}

.guide-card-header {
    background: var(--surface-muted, #f8f9fa);
    border-bottom: 1px solid var(--border-soft, #e9ecef);
    color: #2d6a4f;
}

.guide-card-body,
.faq-body {
    color: inherit;
}

.feature-chip {
    background: var(--surface-muted, #f8f9fa);
    border: 1px solid var(--border-soft, #e9ecef);
    color: inherit;
}

.copyright-bar {
    color: var(--text-muted, #6c757d);
    border-top-color: var(--border-soft, #e9ecef);
}

[data-bs-theme="dark"] .about-intro,
[data-bs-theme="dark"] .about-card,
[data-bs-theme="dark"] .guide-card,
[data-bs-theme="dark"] .faq-item,
[data-bs-theme="dark"] .flow-box,
[data-bs-theme="dark"] .page-intro,
body.dark-mode.satu-dashboard .about-intro,
body.dark-mode.satu-dashboard .about-card,
body.dark-mode.satu-dashboard .guide-card,
body.dark-mode.satu-dashboard .faq-item,
body.dark-mode.satu-dashboard .flow-box,
body.dark-mode.satu-dashboard .page-intro {
    background: #1e242b !important;
    border-color: #2d353e !important;
    color: #e9ecef !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .guide-card-header,
[data-bs-theme="dark"] .faq-item[open] summary,
body.dark-mode.satu-dashboard .guide-card-header,
body.dark-mode.satu-dashboard .faq-item[open] summary {
    background: #161a1f !important;
    border-color: #2d353e !important;
    color: #34d399 !important;
}

[data-bs-theme="dark"] .about-card h6,
[data-bs-theme="dark"] .guide-card-header,
body.dark-mode.satu-dashboard .about-card h6,
body.dark-mode.satu-dashboard .guide-card-header {
    color: #34d399 !important;
}

[data-bs-theme="dark"] .about-intro .h4,
[data-bs-theme="dark"] .about-intro h1,
body.dark-mode.satu-dashboard .about-intro .h4,
body.dark-mode.satu-dashboard .about-intro h1 {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .feature-chip,
body.dark-mode.satu-dashboard .feature-chip {
    background: #161a1f !important;
    border-color: #343a40 !important;
    color: #ced4da !important;
}

[data-bs-theme="dark"] .flow-box,
body.dark-mode.satu-dashboard .flow-box {
    background: #161a1f !important;
    border-color: #343a40 !important;
    color: #ced4da !important;
}

[data-bs-theme="dark"] .faq-item summary,
body.dark-mode.satu-dashboard .faq-item summary {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .step-list li::before,
body.dark-mode.satu-dashboard .step-list li::before {
    background: rgba(52, 211, 153, 0.18) !important;
    color: #34d399 !important;
}

[data-bs-theme="dark"] .version-pill,
body.dark-mode.satu-dashboard .version-pill {
    background: rgba(52, 211, 153, 0.15) !important;
    color: #34d399 !important;
}

[data-bs-theme="dark"] .copyright-bar,
body.dark-mode.satu-dashboard .copyright-bar {
    color: #adb5bd !important;
    border-top-color: #2d353e !important;
}

[data-bs-theme="dark"] .guide-card-body code,
body.dark-mode.satu-dashboard .guide-card-body code {
    background: #161a1f !important;
    color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .satu-dashboard .card-white .text-muted,
body.dark-mode.satu-dashboard .card-white .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .satu-dashboard .card-white strong,
body.dark-mode.satu-dashboard .card-white strong {
    color: #f1f3f5 !important;
}

