@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}

:root {
    /* Premium Light Mode Palette */
    --bg-main: #F3F4F6; /* Soft light gray canvas background */
    --bg-card: #FFFFFF; /* Crisp solid white card panels */
    --bg-card-hover: #F9FAFB;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    
    --primary: #1E3A8A; /* Premium corporate deep navy blue */
    --primary-hover: #1D4ED8; /* Solid cobalt blue for hovers */
    --primary-glow: rgba(30, 58, 138, 0.15);
    
    --secondary: #059669; /* Rich emerald green */
    --secondary-hover: #047857;
    
    --warning: #D97706; /* Solid Amber gold */
    --danger: #DC2626; /* Crimson Red for parameters and warnings */
    
    --text-main: #374151; /* Dark charcoal for general reading text */
    --text-muted: #6B7280; /* Cool gray for labels and legends */
    --text-dark: #111827; /* Rich jet black for primary headings */
    --text-light: #F9FAFB;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px var(--primary-glow);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Glassmorphism/Card utility rewritten for Light Mode */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--secondary);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-success:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Form controls light theme */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    color: var(--text-dark);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
    background-color: #FFFFFF;
}

.form-control::placeholder {
    color: rgba(107, 114, 128, 0.5);
}

/* Header / Navbar deep navy corporate theme */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0F172A; /* Crisp deep corporate Navy Blue */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: #FFF;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand span {
    color: #FFFFFF !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    font-weight: 800;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-badge {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* Public Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link-cta {
    color: #FFFFFF !important;
    background: var(--primary) !important;
    margin-left: 0.5rem;
    padding: 0.5rem 1.2rem !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.nav-link-cta:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4);
}

/* Hamburger (mobile) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #0F172A;
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        gap: 0.25rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .nav-link-cta {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    .nav-hamburger {
        display: flex;
    }
}

/* Layout definitions */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
}

/* Grid & Dashboard layout */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-sub.danger {
    color: var(--danger);
}

/* Tables light theme */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: #FFFFFF;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.custom-table th {
    background-color: #F9FAFB;
    padding: 1rem;
    color: #4B5563; /* Accessible gray */
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    color: var(--text-main);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: #F9FAFB;
}

/* Form Realisasi & Target khusus */
.input-realisasi {
    max-width: 220px;
    text-align: right;
    font-weight: 700;
    background-color: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    color: var(--text-dark) !important;
}

.input-realisasi:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15) !important;
}

.target-disabled {
    background-color: #FFFDF0 !important; /* Soft yellow target input matching BRD form precisely */
    border: 1px solid #FDE68A !important;
    color: #B45309 !important; /* Solid amber gold text */
    font-weight: 700;
    text-align: right;
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-draft {
    background-color: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-submitted {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-none {
    background-color: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.badge-funding {
    background-color: rgba(30, 58, 138, 0.08);
    color: #1E3A8A;
    border: 1px solid rgba(30, 58, 138, 0.15);
}
.badge-lending {
    background-color: rgba(5, 150, 105, 0.08);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.15);
}
.badge-aset {
    background-color: rgba(79, 70, 229, 0.08);
    color: #4F46E5;
    border: 1px solid rgba(79, 70, 229, 0.15);
}
.badge-liabilitas {
    background-color: rgba(220, 38, 38, 0.08);
    color: #DC2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}
.badge-ekuitas {
    background-color: rgba(217, 119, 6, 0.08);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.15);
}
.badge-pendapatan {
    background-color: rgba(13, 148, 136, 0.08);
    color: #0D9488;
    border: 1px solid rgba(13, 148, 136, 0.15);
}
.badge-beban {
    background-color: rgba(190, 24, 74, 0.08);
    color: #BE184D;
    border: 1px solid rgba(190, 24, 74, 0.15);
}

.percentage-badge {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(30, 58, 138, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.percentage-badge.green {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
}

.percentage-badge.red {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.08);
}

.btn-upload {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: #F9FAFB;
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-upload:hover {
    background-color: #F3F4F6;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-upload input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    font-size: 100px;
    cursor: pointer;
}

.file-selected-text {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    margin-top: 0.25rem;
    display: block;
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
}

.status-banner {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-banner.draft {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #B45309;
}

.status-banner.submitted {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #047857;
}

/* Login specific colors */
.login-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    justify-self: end;
}

.login-header h2 {
    color: var(--text-dark) !important;
}

.login-header p {
    color: var(--text-muted) !important;
}

.hero-title {
    background: linear-gradient(135deg, #1E3A8A 20%, #2563EB 60%, #1D4ED8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.feature-item {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: var(--shadow-sm);
}

.feature-name {
    color: var(--text-dark) !important;
}

/* Admin specific colors */
.evaluation-textarea {
    width: 100%;
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    color: var(--text-dark) !important;
}

.evaluation-textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15) !important;
}

.timeline::before {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

.timeline-item::before {
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15) !important;
}

.timeline-item.done::before {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

.timeline-item.current::before {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15) !important;
}

.timeline-title {
    color: var(--text-dark) !important;
}

/* Gauge details */
.gauge-container path:first-child {
    stroke: rgba(0, 0, 0, 0.05) !important;
}

.gauge-value {
    color: var(--text-dark) !important;
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive grid layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

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