/* Mandiri Color Scheme - White Dominant with Blue Accent */
:root {
    --mandiri-blue: #003D7A;
    --mandiri-blue-light: #00A4E4;
    --mandiri-blue-pale: #E8F4FB;
    --white: #FFFFFF;
    --bg-light: #F8F9FC;
    --bg-lighter: #F0F2F7;
    --gray-100: #E8EAEF;
    --gray-200: #D8DDE8;
    --gray-300: #C0C7D4;
    --gray-400: #98A0B3;
    --gray-600: #64748B;
    --gray-700: #475569;
    --gray-900: #1A1F36;
    --text-primary: #1A1F36;
    --text-secondary: #64748B;
    --text-tertiary: #98A0B3;
}

/* Dark Mode Colors */
:root.dark-mode {
    --mandiri-blue: #003D7A;
    --mandiri-blue-light: #FF9500;
    --mandiri-blue-pale: #2a3f52;
    --white: #1a1f2e;
    --bg-light: #111820;
    --bg-lighter: #1d2535;
    --gray-100: #2a3543;
    --gray-200: #3a4555;
    --gray-300: #4a5565;
    --gray-400: #5a6575;
    --gray-600: #7a8595;
    --gray-700: #8a95a5;
    --gray-900: #d4d8e0;
    --text-primary: #d4d8e0;
    --text-secondary: #9ca4b4;
    --text-tertiary: #6a7280;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
}

/* Sidebar */
/* Modern Minimalist Light Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background-color: #FFFFFF;
    border-right: 1px solid #F0F1F3;
    overflow-y: auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F0F1F3;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0F1419;
    line-height: 1.2;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8B94A5;
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover {
    background-color: #F5F6F8;
    color: #00A4E4;
}

.sidebar-item.active {
    background-color: #E8F1FF;
    color: #00A4E4;
    font-weight: 600;
}

.sidebar-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.sidebar-item.active svg {
    stroke: #00A4E4;
}

.status-pulse {
    background-color: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 12px 12px;
    text-align: center;
    margin-top: auto;
}

.pulse-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #92400E;
    margin-bottom: 4px;
    font-weight: 700;
}

.pulse-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #92400E;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #F59E0B;
}

.sidebar-content {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    gap: 12px;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mandiri-blue) 0%, var(--mandiri-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Demo/Simulation Warning Banner */
.demo-banner {
    background: transparent;
    border: none;
    border-bottom: 1px solid #FCD34D;
    border-radius: 0;
    padding: 12px 0 16px 0;
    margin-bottom: 24px;
    margin-left: 0;
    margin-right: 0;
    font-size: 10px;
    font-weight: 600;
    color: #B8860B;
    text-align: center;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

:root.dark-mode .demo-banner {
    background-color: transparent;
    border-color: #FF9500;
    color: #FF9500;
}


/* Menu */
.menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
    margin-bottom: 4px;
}

.menu-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.menu-item:hover {
    background-color: var(--mandiri-blue-pale);
    color: var(--text-primary);
}

.menu-item.active {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--text-primary);
    border-left-color: #FF9500;
    font-weight: 600;
}

.menu-item.active .menu-icon {
    color: #FF9500;
}
    color: var(--mandiri-blue);
}

.menu-item.active {
    background-color: var(--mandiri-blue-pale);
    color: var(--mandiri-blue);
    border-left-color: var(--mandiri-blue);
    font-weight: 600;
}

.menu-section {
    margin-top: 28px;
}

.menu-section:first-of-type {
    margin-top: 0;
}

.menu-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    padding: 0 14px;
    opacity: 0.7;
}

/* Primary section (BPR) - slightly more prominent */
.menu-section:first-of-type .menu-section-title {
    opacity: 1;
    font-weight: 700;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

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

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.page-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.2;
}

/* Card Styles */
.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: var(--mandiri-blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.card-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta.success {
    color: #10B981;
}

/* Coming Soon Card */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--gray-200);
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.coming-soon h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.coming-soon p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
        padding: 20px;
    }

    .main-content {
        margin-left: 0;
        height: auto;
    }

    .top-bar {
        padding: 12px 20px;
        height: 60px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .page-title {
        font-size: 18px;
    }

    .content-area {
        padding: 20px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Modern Status Page Styles */
.status-hero-card {
    background: linear-gradient(135deg, #FAFBFC 0%, #F5F7F9 100%);
    border: 1px solid #E8ECEF;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.hero-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
}

.hero-metric {
    font-size: 40px;
    font-weight: 700;
    color: #00A4E4;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.hero-subtext {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #10B981;
}

.trend-up { color: #10B981; }
.trend-down { color: #EF4444; }

.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #E8F5E9;
    border-radius: 6px;
    color: #10B981;
    font-size: 11px;
    font-weight: 600;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
}

.coverage-circle {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(#00A4E4 0deg, #00A4E4 var(--coverage-degrees, 280deg), #E8ECEF var(--coverage-degrees, 280deg));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 164, 228, 0.12);
}

.coverage-circle-inner {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.coverage-value {
    font-size: 32px;
    font-weight: 700;
    color: #00A4E4;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.coverage-label {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metric-icon-svg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.metric-icon-pending { background-color: #FEF3C7; }
.metric-icon-followup { background-color: #FEE2E2; }
.metric-icon-customers { background-color: #E8F4FB; }
.metric-icon-approved { background-color: #ECFDF5; }

.metric-box-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metric-box-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.status-table thead {
    background-color: #F8F9FC;
    border-bottom: 2px solid #E8EAEF;
}

.status-table th {
    padding: 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
}

.status-table tbody tr {
    border-bottom: 1px solid #F0F1F3;
    transition: background-color 0.15s ease;
}

.status-table tbody tr:hover {
    background-color: #F8F9FC;
}

.status-table td {
    padding: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.month-label {
    font-weight: 600;
    color: var(--text-primary);
}

.numeric-cell {
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-active { background-color: #E8F4FB; color: #00A4E4; }
.badge-locked { background-color: #F5F6F8; color: #64748B; }
