/* =====================================================
   BI-THEME.CSS — Bank Indonesia Premium Theme
   SILAKAN System v2.0
   ===================================================== */

/* =====================================================
   SIDEBAR ICON COLORS (enhanced)
   ===================================================== */

.sidebar-menu a i {
    width: 22px;
    font-size: 17px;
    text-align: center;
    transition: transform 0.2s ease;
}

.sidebar-menu a span {
    flex: 1;
}

/* Sidebar badge for notification counts */
.sidebar-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* =====================================================
   NAVBAR — BI Enhanced
   ===================================================== */

.navbar-brand-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f0f6ff, #ffffff);
    border-radius: 12px;
    border: 1px solid #e8f1fb;
}

.navbar-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid #d4af37;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

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

.navbar-brand-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #003b73;
}

.navbar-brand-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* =====================================================
   STAT CARDS — Color Variants
   ===================================================== */

.stat-card-blue .stat-icon {
    background: linear-gradient(135deg, #e8f1fb, #cce0f5);
    color: #005baa;
}

.stat-card-green .stat-icon {
    background: linear-gradient(135deg, #ecfdf5, #a7f3d0);
    color: #059669;
}

.stat-card-yellow .stat-icon {
    background: linear-gradient(135deg, #fffbeb, #fde68a);
    color: #d97706;
}

.stat-card-red .stat-icon {
    background: linear-gradient(135deg, #fff1f2, #fecdd3);
    color: #dc2626;
}

.stat-card-purple .stat-icon {
    background: linear-gradient(135deg, #f5f3ff, #ddd6fe);
    color: #7c3aed;
}

.stat-card-teal .stat-icon {
    background: linear-gradient(135deg, #f0fdfa, #99f6e4);
    color: #0d9488;
}

/* =====================================================
   TABLE ENHANCEMENTS
   ===================================================== */

/* Add row number */
.data-table tbody td:first-child {
    position: relative;
}

/* Sortable header */
.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    background: linear-gradient(180deg, #eef4fb, #e8f1fb);
    color: #003b73;
}

/* =====================================================
   FORM ENHANCEMENTS
   ===================================================== */

/* Focus animation */
.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
    color: #005baa;
}

/* Required marker */
.form-group label.required::after {
    content: ' *';
    color: #ef4444;
}

/* =====================================================
   BUTTON RIPPLE EFFECT
   ===================================================== */

.btn-primary,
.btn-danger,
.btn-success {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-danger::after,
.btn-success::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.25) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;
}

.btn-primary:active::after,
.btn-danger:active::after,
.btn-success:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* =====================================================
   DASHBOARD SPECIFIC
   ===================================================== */

/* Table inside dashboard sections — no extra wrapper needed */
.dashboard-section table.data-table {
    margin: 0;
}

/* Dashboard section heading fix */
.dashboard-section > h2 {
    padding: 16px 24px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #003b73;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================
   DETAIL CARD — BI Enhanced
   ===================================================== */

.detail-card .detail-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #005baa, #d4af37);
    border-radius: 2px;
    flex-shrink: 0;
}

/* =====================================================
   APPROVAL PAGE
   ===================================================== */

.approval-status-pending {
    background: linear-gradient(135deg, #fffbeb, #fef9c3);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #92400e;
    font-weight: 600;
    font-size: 13.5px;
}

.approval-status-approved {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #065f46;
    font-weight: 600;
    font-size: 13.5px;
}

.approval-status-rejected {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9f1239;
    font-weight: 600;
    font-size: 13.5px;
}

/* =====================================================
   LAPORAN PAGE
   ===================================================== */

.laporan-filter {
    background: linear-gradient(135deg, #f0f6ff, white);
    border: 1px solid #e8f1fb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.laporan-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.laporan-summary-card {
    text-align: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.laporan-summary-card .value {
    font-size: 28px;
    font-weight: 800;
    color: #003b73;
}

.laporan-summary-card .label {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
}

/* =====================================================
   AUDIT LOG
   ===================================================== */

.audit-row-create td {
    background: rgba(16, 185, 129, 0.04);
}

.audit-row-update td {
    background: rgba(245, 158, 11, 0.04);
}

.audit-row-delete td {
    background: rgba(239, 68, 68, 0.04);
}

/* =====================================================
   PEMESANAN (BOOKING) FORM
   ===================================================== */

.booking-ruangan-preview {
    background: linear-gradient(135deg, #f0f6ff, #eef4fb);
    border: 1.5px solid #cce0f5;
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 12px;
    display: none;
    animation: fadeInDown 0.3s ease;
}

.booking-ruangan-preview.show {
    display: block;
}

.booking-ruangan-preview h4 {
    font-size: 14px;
    font-weight: 700;
    color: #003b73;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.booking-facility-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: white;
    border: 1px solid #cce0f5;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #005baa;
}

/* =====================================================
   WELCOME / LANDING PAGE OVERRIDE
   ===================================================== */

/* Keep welcome page isolated from app styles */

/* =====================================================
   PROFILE PAGE
   ===================================================== */

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #005baa, #003b73);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 91, 170, 0.3);
    flex-shrink: 0;
}

/* =====================================================
   MOBILE IMPROVEMENTS
   ===================================================== */

@media (max-width: 768px) {
    .live-cards-grid {
        grid-template-columns: 1fr;
    }

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

    .navbar-brand-banner {
        display: none;
    }
}

/* =====================================================
   MODERN ENTERPRISE UI & ADVANCED INTERACTIVE COMPONENTS
   SILAKAN Bank Indonesia Modern Polish v2.5
   ===================================================== */

/* Tabular numbers for clocks, countdowns, and metrics */
.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Radar Pulse Telemetry for Live Meetings */
@keyframes biRadarPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8), 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0), 0 0 0 16px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0), 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.live-indicator-radar {
    position: relative;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: biRadarPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    box-shadow: 0 0 10px #22c55e;
}

/* Skeleton Shimmer Loading */
@keyframes biShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 45%, #f1f5f9 65%);
    background-size: 200% 100%;
    animation: biShimmer 1.6s infinite ease-in-out;
    border-radius: 8px;
    display: block;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 51, 102, 0.05), 0 8px 10px -6px rgba(0, 51, 102, 0.03);
}

/* Navbar Quick Search Button */
.navbar-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.navbar-search-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

.navbar-search-kbd {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    color: #475569;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

/* Command Palette Overlay & Modal */
.cmd-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 20px 16px;
    animation: cmdFadeIn 0.15s ease-out;
}

@keyframes cmdFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.cmd-palette-box {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 35, 71, 0.35), 0 0 0 1px rgba(0, 91, 170, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cmd-palette-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
    background: #ffffff;
}

.cmd-palette-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
}

.cmd-palette-input::placeholder {
    color: #94a3b8;
}

.cmd-palette-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
}

.cmd-palette-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 8px 12px 4px 12px;
}

.cmd-palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.12s ease;
    user-select: none;
}

.cmd-palette-item:hover,
.cmd-palette-item.active {
    background: #f0f7ff;
    color: #005baa;
}

.cmd-palette-item.active .cmd-item-icon {
    background: #005baa;
    color: #ffffff;
}

.cmd-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmd-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.12s ease;
}

.cmd-palette-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 11.5px;
    color: #64748b;
}

.cmd-palette-footer-keys {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cmd-key-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cmd-key-hint kbd {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
}

/* Modern StatCard Elevation & Glow */
.stat-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(0, 51, 102, 0.1), 0 4px 8px -2px rgba(0, 51, 102, 0.04);
}

.stat-card .stat-icon {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08) rotate(-3deg);
}

/* Modern Live Card Glow & Countdown */
.live-banner {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 30px -5px rgba(0, 51, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.live-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.live-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

/* =====================================================
   MODERN BOOKING FORM LAYOUT (SILAKAN v2.5)
   ===================================================== */

.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

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

.booking-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(0, 35, 71, 0.05);
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px -4px rgba(0, 35, 71, 0.08);
}

.booking-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.booking-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #005baa 0%, #003366 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 91, 170, 0.25);
}

.booking-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.booking-card-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label .req {
    color: #ef4444;
    margin-left: 3px;
}

.input-modern {
    width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-modern:focus {
    background: #ffffff;
    border-color: #005baa;
    box-shadow: 0 0 0 4px rgba(0, 91, 170, 0.12);
}

.input-modern:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Styled File Upload Drop Area */
.file-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.file-upload-box:hover {
    border-color: #005baa;
    background: #f0f7ff;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Sticky Summary Card */
.booking-summary-sticky {
    position: sticky;
    top: 90px;
}

.summary-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px -4px rgba(0, 35, 71, 0.08);
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #003366 0%, #005baa 100%);
    color: white;
    padding: 20px 22px;
}

.summary-body {
    padding: 20px 22px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-val {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

/* Facility Chips */
.facility-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11.5px;
    color: #334155;
    font-weight: 600;
}

/* Capacity Progress Meter */
.capacity-meter-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0;
}

.capacity-meter-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


