/* =========================================================
   BERUANK POS - ZAMRUD MASTER UI (ENTERPRISE EDITION)
   ========================================================= */

/* 1. FONT PLUS JAKARTA SANS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label, div, table, th, td, .form-control, .btn, .main-sidebar, .main-header {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* 2. NAVBAR & LOGO AREA (TRANSFORMASI ZAMRUD) */
/* Menimpa warna hijau di bagian atas dashboard */
.main-header .navbar, 
.main-header .logo, 
.main-header[data-bg="green"] .navbar,
.main-header[data-bg="green"] .logo {
    background-color: #0D586B !important;
    background: linear-gradient(135deg, #0D586B 0%, #0A4554 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Efek hover pada tombol navbar */
.main-header .navbar .nav > li > a:hover, 
.main-header .navbar .sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 3. OVERRIDE BANNER SELAMAT DATANG (WELCOME SECTION) */
/* Paksa warna hijau Endangmart menjadi Zamrud */
div[class*="bg-green"], 
div[class*="tw-bg-green"], 
div[style*="background-color: #106b4e"],
.content-wrapper > section.content > div > div:first-child {
    background-color: #0D586B !important;
    background: linear-gradient(135deg, #0D586B 0%, #083c48 100%) !important;
    border-radius: 16px !important;
    border: none !important;
}

/* Tetapkan warna hijau hanya untuk label 'Success' agar fungsionalitas tetap jelas */
span.bg-green, .badge.bg-green, .label-success {
    background-color: #10b981 !important;
}

/* 4. SIDEBAR MENU (PILL STYLE) */
.main-sidebar {
    background-color: #ffffff !important;
}

.sidebar-menu > li {
    margin: 4px 12px !important;
}

.sidebar-menu > li > a {
    border-radius: 12px !important;
    transition: all 0.3s ease;
    color: #64748b !important;
    font-weight: 500;
}

/* Menu Aktif & Hover bergaya Zamrud */
.sidebar-menu > li:hover > a, 
.sidebar-menu > li.active > a {
    background-color: rgba(13, 88, 107, 0.08) !important;
    color: #0D586B !important;
    font-weight: 700 !important;
}

.sidebar-menu > li.active > a i {
    color: #0D586B !important;
}

/* 5. MODERN DASHBOARD CARDS */
.box, .info-box, div[class*="tw-bg-white tw-shadow-sm"] {
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 25px rgba(13, 88, 107, 0.04) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(13, 88, 107, 0.08) !important;
}

/* Hilangkan garis tebal AdminLTE di atas box */
.box.box-primary, .box.box-success, .box.box-info, .box.box-warning {
    border-top: none !important;
}

/* 6. GLOBAL BUTTONS (ZAMRUD STYLE) */
.btn-primary, .btn-success, .btn-info {
    background-color: #0D586B !important;
    border-color: #0D586B !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(13, 88, 107, 0.2) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-success:hover {
    background-color: #0A4554 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(13, 88, 107, 0.3) !important;
}

/* 7. PERHALUS TAMPILAN TABEL */
.table th {
    font-weight: 700 !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* 8. GLOBAL CONTENT BACKGROUND */
.content-wrapper {
    background-color: #f8fafc !important; /* Soft Light Redup */
}

/* 9. SCROLLBAR CUSTOM */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #0D586B; }