/* ========================================================
   🏢 BPRS MITRA HARMONI BANDUNG - TEMA TERANG
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.font-mono-code {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar (Light Mode) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism & Enterprise Cards (Light Mode) */
.glass-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04) !important;
}

.glass-card-hover {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

/* KPI Card Accents */
.kpi-border-emerald {
    border-top: 3px solid #10b981 !important;
}
.kpi-border-amber {
    border-top: 3px solid #f59e0b !important;
}
.kpi-border-rose {
    border-top: 3px solid #f43f5e !important;
}
.kpi-border-orange {
    border-top: 3px solid #f97316 !important;
}
.kpi-border-blue {
    border-top: 3px solid #3b82f6 !important;
}
.kpi-border-indigo {
    border-top: 3px solid #6366f1 !important;
}
.kpi-border-purple {
    border-top: 3px solid #8b5cf6 !important;
}

/* Animated Pulse Badge */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.animate-subtle {
    animation: subtle-pulse 3s infinite ease-in-out;
}

/* Sidebar Active Menu Indicator (Light Mode) */
.sidebar-active-item {
    background: #ecfdf5 !important;
    border-left: 3px solid #059669 !important;
    color: #047857 !important;
    font-weight: 700 !important;
}

/* Sidebar transition */
#appSidebar {
    transition: transform 0.25s ease-in-out, width 0.25s ease-in-out;
}

/* Global Light Table Harmonization */
table {
    border-collapse: collapse;
}

table thead tr, table thead th {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
}

table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

table tbody tr:hover {
    background-color: #f8fafc;
}

/* Form Controls Harmonization in Light Theme */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"], 
input[type="month"], 
input[type="date"], 
input[type="search"], 
select, 
textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

input::placeholder, 
textarea::placeholder {
    color: #94a3b8 !important;
}

/* High Contrast Status Badges */
.badge-emerald {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.badge-amber {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

.badge-rose {
    background-color: #fff1f2 !important;
    color: #9f1239 !important;
    border: 1px solid #fecdd3 !important;
}

.badge-blue {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.badge-purple {
    background-color: #faf5ff !important;
    color: #6b21a8 !important;
    border: 1px solid #e9d5ff !important;
}

.badge-slate {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

/* Modals & Dialogs Light Theme Harmonization */
.modal-box-light, 
[id*="modal"] .bg-slate-900, 
[id*="Modal"] .bg-slate-900, 
[id*="modal"] .bg-slate-800, 
[id*="Modal"] .bg-slate-800,
[id*="panel"] .bg-slate-900,
[id*="Panel"] .bg-slate-900 {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}


/* Universal Form Controls Light Mode Override */
html, body, input, select, textarea {
    color-scheme: light !important;
}

input[type="date"], input[type="month"], input[type="time"] {
    color-scheme: light !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}

input[type="text"], input[type="password"], input[type="number"], select, textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #10b981 !important;
    outline: none !important;
}
