/* SIKEREN Custom Styles */

:root {
    --sikeren-primary: #1a5276;
    --sikeren-secondary: #2e86c1;
    --sikeren-accent: #f39c12;
    --sidebar-width: 250px;
}

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
}

/* === Navbar === */
.navbar-brand { font-size: 1.1rem; }

/* === Cards === */
.card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: 8px;
}
.card-header {
    background: linear-gradient(135deg, var(--sikeren-primary), var(--sikeren-secondary));
    color: white;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}
.card-header .bi { margin-right: 6px; }

/* === Stat cards on dashboard === */
.stat-card {
    border-left: 4px solid var(--sikeren-secondary);
    transition: transform .15s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: .15;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.stat-card-value { font-size: 1.8rem; font-weight: 700; }

/* === Tables === */
.table-kk thead th {
    background: var(--sikeren-primary);
    color: white;
    font-size: 0.78rem;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid rgba(255,255,255,.2);
}
.table-kk td { vertical-align: middle; font-size: 0.82rem; }
.table-kk tr:hover td { background-color: #eaf4fb; }

/* === Print Kertas Kerja === */
.kk-print-wrapper { background: white; }

@media print {
    body { background: white; font-size: 8pt; }
    .navbar, .footer, .btn, .no-print { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ccc; }
    .kk-header-table { width: 100%; border-collapse: collapse; }
    .kk-header-table td { padding: 2px 4px; font-size: 8pt; }
    table { font-size: 7.5pt; }
    thead th { background-color: #1a5276 !important; -webkit-print-color-adjust: exact; }
    @page { size: A4 landscape; margin: 10mm; }
}

/* === Form input === */
.form-label { font-weight: 600; font-size: 0.82rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--sikeren-secondary);
    box-shadow: 0 0 0 .2rem rgba(46,134,193,.25);
}

/* === Status badges === */
.badge-draft     { background: #6c757d; }
.badge-submitted { background: #0d6efd; }
.badge-locked    { background: #dc3545; }
.badge-revision  { background: #fd7e14; }

/* === Kertas Kerja tree view === */
.kk-tree-komponen {
    background: #e8f4fd;
    font-weight: 700;
    font-size: 0.85rem;
    border-left: 4px solid var(--sikeren-secondary);
}
.kk-tree-subkomponen {
    background: #fef9e7;
    font-weight: 600;
    font-size: 0.83rem;
    padding-left: 24px;
}
.kk-tree-detil {
    font-size: 0.81rem;
    padding-left: 40px;
    background: white;
}
.kk-tree-akun {
    font-size: 0.8rem;
    padding-left: 56px;
    background: #f8f9fa;
    color: #666;
    font-style: italic;
}
.kk-total-row {
    background: #d4edda !important;
    font-weight: 700;
}

/* === Highlight blokir === */
.row-blokir { background: #fff3cd !important; }
.row-blokir td { color: #856404; }

/* === Sticky total bar === */
.sticky-total-bar {
    position: sticky;
    bottom: 0;
    background: var(--sikeren-primary);
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 100;
    border-top: 3px solid var(--sikeren-accent);
}

/* === Breadcrumb === */
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 0.8rem; }

/* === Sidebar (jika nanti diaktifkan) === */
.sidebar { width: var(--sidebar-width); min-height: 100vh; }

/* === Responsive tweaks === */
@media (max-width: 768px) {
    .stat-card-value { font-size: 1.3rem; }
    .table-kk { font-size: 0.75rem; }
}

/* === Login page === */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sikeren-primary) 0%, var(--sikeren-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
}
.login-logo { font-size: 3rem; color: var(--sikeren-primary); }
