* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0A2D5F;
    --primary-light: #1e4b8a;
    --primary-dark: #061b3a;
    --secondary: #008080;
    --danger: #b91c1c;
    --warning: #b45309;
    --success: #15803d;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 290px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    color: #f8fafc;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .brand-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sidebar-brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand .brand-text h2 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.2px;
}

.sidebar-brand .brand-text p {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Sidebar Partner Collaboration Strip */
.sidebar-partner-strip {
    padding: 10px 18px 12px;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-strip-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.partner-strip-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 8px;
}

.partner-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.strip-logo {
    display: block;
    object-fit: contain;
    max-height: 22px;
    transition: transform 0.2s ease;
}

.strip-logo:hover {
    transform: scale(1.08);
}

.strip-logo.komdigi {
    max-height: 36px;
    max-width: 68px;
}

.strip-logo.swedfund {
    max-height: 8px;
    max-width: 38px;
}

.strip-logo.detecon {
    max-height: 28px;
    max-width: 130px;
}

/* User Card in Sidebar */
.sidebar-user {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(56, 189, 248, 0.3);
}

.sidebar-user:hover .user-profile-icon {
    color: #38bdf8;
    transform: translateX(2px);
}

.sidebar-user.active {
    background: rgba(56, 189, 248, 0.12);
    border-left: 3px solid #38bdf8;
}

.sidebar-user.active .user-name {
    color: #38bdf8;
}

.user-profile-icon {
    font-size: 11px;
    color: #64748b;
    transition: all 0.2s ease;
    margin-left: auto;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 16px;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 3px;
}

.badge-admin { background: #7c3aed; color: #ede9fe; }
.badge-level_a { background: #0369a1; color: #e0f2fe; }
.badge-level_b { background: #b45309; color: #fef3c7; }

/* Navigation Links */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px 6px;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
    background: #1e293b;
    border-left: 3px solid #38bdf8;
    font-weight: 600;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link-content i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.nav-count-badge {
    background: #334155;
    color: #e2e8f0;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
}

.subnav-menu {
    padding-left: 32px;
    margin-top: 2px;
    margin-bottom: 6px;
    display: none;
}

.subnav-menu.open {
    display: block;
}

.subnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.subnav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.subnav-link.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    font-weight: 600;
}

.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: white;
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: white;
    height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.topbar-title h1 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.topbar-title p {
    font-size: 12px;
    color: #64748b;
}

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

.topbar-partners {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.topbar-partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-partner-logo {
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.topbar-partner-logo:hover {
    transform: scale(1.05);
}

.topbar-partner-logo.logo-komdigi {
    height: 45px;
    max-width: 150px;
}

.topbar-partner-logo.logo-swedfund {
    height: 10px;
    max-width: 55px;
}

.topbar-partner-logo.logo-detecon {
    height: 36px;
    max-width: 180px;
}

.partner-divider {
    width: 1px;
    height: 30px;
    background: #cbd5e1;
}

.auto-save-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auto-save-pill.saving {
    background: #fefce8;
    color: #854d0e;
    border-color: #fde047;
}

.topbar-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-user-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.topbar-user-btn i {
    font-size: 15px;
    color: #2563eb;
}


/* Page Content Container */
.page-container {
    padding: 28px 32px;
    flex: 1;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    background: #f8fafc;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}

.filter-tags {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

/* Question Cards */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.2s ease;
}

.question-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.q-badge {
    background: #0A2D5F;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.q-category {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.sensitivity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sensitivity-public {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.sensitivity-restricted {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.sensitivity-confidential {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.card-body {
    padding: 24px;
}

.q-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.65;
    margin-bottom: 16px;
    white-space: pre-line;
    word-break: break-word;
}

.q-purpose {
    font-size: 13px;
    color: #334155;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 3px solid #3b82f6;
    margin-bottom: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.q-meta-row {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.q-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.q-meta-item strong {
    color: #334155;
}

.dataset-link-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    color: #1e40af;
    text-decoration: none;
    margin-bottom: 18px;
    word-break: break-all;
}

.dataset-link-box:hover {
    background: #dbeafe;
}

/* Data Status Picker (Combo Box) */
.data-status-picker {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.status-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-picker-header label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-picker-header label i {
    color: #3b82f6;
}

.status-dropdown {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background-color: white;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-dropdown:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.status-dropdown:disabled {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.status-readonly-hint {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: #94a3b8;
    font-style: italic;
}

/* Sections for Komdigi & Detecon */
.response-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
    .response-container {
        grid-template-columns: 1fr;
    }
}

.response-box {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    position: relative;
}

.response-box.box-level-a {
    border-color: #bae6fd;
    background: #f8fafc;
}

.response-box.box-level-b {
    border-color: #fed7aa;
    background: #fffbeb;
}

.box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.box-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-level-a .box-title { color: #0284c7; }
.box-level-b .box-title { color: #c2410c; }

.save-indicator {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.save-indicator.saving {
    color: #d97706 !important;
    font-weight: 600;
}

.save-indicator.saved {
    color: #16a34a !important;
    font-weight: 600;
}

.save-indicator.error {
    color: #dc2626 !important;
    font-weight: 600;
}

.response-textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.45;
    color: #0f172a;
    resize: vertical;
    background: white;
}

.response-textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.response-textarea:disabled,
.response-textarea[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
}

/* Attachment & Upload Tools */
.attachment-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.btn-attach {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-attach:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.files-container-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.file-attached-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 12px;
    color: #065f46;
}

.file-attached-pill .btn-download {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
}

.file-attached-pill .btn-download:hover {
    text-decoration: underline;
}

.file-attached-pill .btn-delete-file {
    color: #ef4444;
    cursor: pointer;
    margin-left: 4px;
}

.url-input-box {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.url-input-box input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

/* Admin Users Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-table th,
.admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.btn-sm-action {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-approve { background: #dcfce7; color: #15803d; }
.btn-approve:hover { background: #22c55e; color: white; }
.btn-reject { background: #fee2e2; color: #b91c1c; }
.btn-reject:hover { background: #ef4444; color: white; }
.btn-reset-pw { background: #fef3c7; color: #b45309; }
.btn-reset-pw:hover { background: #f59e0b; color: white; }


/* ==================== RADIO BUTTON CARDS FOR DATA STATUS (1 ROW) ==================== */
.status-radio-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 6px;
    padding-bottom: 2px;
}

.status-radio-card {
    flex: 1;
    min-width: 170px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.status-radio-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.status-radio-card input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #0A2D5F;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.status-radio-card.selected.radio-public {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 1px #10b981;
}

.status-radio-card.selected.radio-nda {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #3b82f6;
}

.status-radio-card.selected.radio-restricted {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 0 0 1px #f59e0b;
}

.status-radio-card.selected.radio-confidential {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 1px #ef4444;
}

.radio-text strong {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.btn-download-template {
    background: #0d9488;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-download-template:hover {
    background: #0f766e;
    color: white;
}

/* ==================== DASHBOARD ANALYTICS OVERVIEW ==================== */
.dashboard-header-banner {
    background: linear-gradient(135deg, #0A2D5F 0%, #1e4b8a 100%);
    color: white;
    padding: 24px 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(10, 45, 95, 0.15);
}

.banner-text h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 13px;
    color: #cbd5e1;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: white;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon.green { background: #f0fdf4; color: #16a34a; }
.kpi-icon.amber { background: #fffbeb; color: #d97706; }
.kpi-icon.purple { background: #faf5ff; color: #9333ea; }
.kpi-icon.teal { background: #f0fdfa; color: #0d9488; }

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.kpi-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.kpi-progress {
    margin-top: 8px;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.kpi-progress-bar {
    height: 100%;
    border-radius: 10px;
}

.status-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.status-stat-card {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-stat-card.public { border-left: 5px solid #10b981; }
.status-stat-card.nda { border-left: 5px solid #3b82f6; }
.status-stat-card.restricted { border-left: 5px solid #f59e0b; }
.status-stat-card.confidential { border-left: 5px solid #ef4444; }

/* 4 Data Completeness Status Breakdown Classes */
.status-stat-card.completeness-green { border-left: 5px solid #10b981; }
.status-stat-card.completeness-yellow { border-left: 5px solid #eab308; }
.status-stat-card.completeness-orange { border-left: 5px solid #f97316; }
.status-stat-card.completeness-red { border-left: 5px solid #ef4444; }

/* Completeness badges in category name column */
.completeness-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    line-height: 1.2;
}
.completeness-badge.green {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.completeness-badge.yellow {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}
.completeness-badge.orange {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.completeness-badge.red {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.item-completeness-select {
    transition: all 0.2s ease;
}

.item-completeness-select:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.item-completeness-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Category row highlight border */
.cat-row-lengkap_low { border-left: 4px solid #10b981 !important; }
.cat-row-lengkap_high { border-left: 4px solid #eab308 !important; }
.cat-row-tidak_lengkap { border-left: 4px solid #f97316 !important; }
.cat-row-tidak_ada { border-left: 4px solid #ef4444 !important; }

/* Category title colors */
.cat-title-lengkap_low { color: #065f46 !important; font-weight: 700; }
.cat-title-lengkap_high { color: #854d0e !important; font-weight: 700; }
.cat-title-tidak_lengkap { color: #c2410c !important; font-weight: 700; }
.cat-title-tidak_ada { color: #b91c1c !important; font-weight: 700; }

.categories-table-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.categories-progress-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.categories-progress-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.categories-progress-table td {
    padding: 12px 16px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.btn-export-excel {
    background: #10b981;
    color: white;
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    text-decoration: none;
}

.btn-export-excel:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Dashboard Banner Actions & Email Toggle */
.dashboard-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-email-toggle {
    border: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-email-toggle.active {
    background: #0284c7;
    color: white;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-email-toggle.active:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.btn-email-toggle.disabled {
    background: #475569;
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.25);
    opacity: 0.9;
}

.btn-email-toggle.disabled:hover {
    background: #334155;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35);
}

/* Import Button & Modal */
.btn-import-excel {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-import-excel:hover {
    background: #1d4ed8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==================== USER PROFILE & SETTINGS VIEW ==================== */
.profile-header-banner {
    background: linear-gradient(135deg, #0A2D5F 0%, #1e4b8a 50%, #0284c7 100%);
    border-radius: 18px;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    gap: 22px;
    color: white;
    box-shadow: 0 10px 25px rgba(10, 45, 95, 0.15);
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    flex-shrink: 0;
}

.profile-header-meta {
    flex: 1;
}

.profile-meta-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-meta-top h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.profile-meta-sub {
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-meta-sub span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.profile-form-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 26px 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.profile-card-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-card-title .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.profile-card-title .icon-circle.blue {
    background: #eff6ff;
    color: #2563eb;
}

.profile-card-title .icon-circle.teal {
    background: #f0fdfa;
    color: #0d9488;
}

.profile-card-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.profile-card-title p {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.profile-field-group {
    margin-bottom: 18px;
}

.profile-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.field-readonly-box,
.field-editable-box {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 2px 14px;
    background: #ffffff;
    transition: all 0.15s ease;
}

.field-readonly-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.field-readonly-box i,
.field-editable-box i {
    color: #94a3b8;
    margin-right: 10px;
    font-size: 14px;
}

.field-editable-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field-readonly-box input,
.field-editable-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 13.5px;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
}

.field-readonly-box input:disabled {
    color: #64748b;
    cursor: not-allowed;
}

.field-hint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 5px;
}

.pw-toggle-icon {
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.15s ease;
    padding: 4px;
}

.pw-toggle-icon:hover {
    color: #334155;
}

.btn-profile-submit {
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    margin-top: 22px;
}

.btn-profile-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-profile-submit.btn-update-pw {
    background: #0f766e;
}

.btn-profile-submit.btn-update-pw:hover {
    background: #115e59;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.profile-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.profile-alert.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.profile-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
