/* ========================================================
   AURUM GOLD JEWELRY SYSTEM - LUXURY OBSIDIAN & GOLD THEME
   ======================================================== */

:root {
    --gold-100: #fef9c3;
    --gold-200: #fef08a;
    --gold-300: #fde047;
    --gold-400: #facc15;
    --gold-500: #d4af37; /* Classic Gold */
    --gold-600: #ca8a04;
    --gold-700: #a16207;
    --gold-800: #854d0e;
    --gold-gradient: linear-gradient(135deg, #f3d068 0%, #d4af37 50%, #99730f 100%);
    --gold-gradient-hover: linear-gradient(135deg, #fae28d 0%, #dfba4f 50%, #aa820a 100%);
    
    --dark-bg: #0b0f19;
    --card-bg: #151c2d;
    --card-border: rgba(212, 175, 55, 0.22);
    --sidebar-bg: #0f1523;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #243049;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Typography & Titles */
.font-cinzel {
    font-family: 'Cinzel', Georgia, serif;
}

.text-gold {
    color: var(--gold-500) !important;
}

.text-gold-light {
    color: #fce79f !important;
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar Styles */
.app-sidebar {
    width: 270px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--card-border);
    min-height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: #243049 #0f1523;
}

.app-sidebar::-webkit-scrollbar {
    width: 4px;
}
.app-sidebar::-webkit-scrollbar-track {
    background: #0f1523;
}
.app-sidebar::-webkit-scrollbar-thumb {
    background: #243049;
    border-radius: 4px;
}
.app-sidebar::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.sidebar-menu {
    padding: 16px 12px;
}

.menu-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 14px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 28px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: rgba(212, 175, 55, 0.12);
    color: #ffffff;
}

.sidebar-link:hover i {
    color: var(--gold-400);
}

.sidebar-link.active {
    background: var(--gold-gradient);
    color: #0b0f19;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.sidebar-link.active i {
    color: #0b0f19;
}

/* Main Content & Navbar */
.app-main {
    margin-left: 270px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-navbar {
    background-color: rgba(15, 21, 35, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 14px 28px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.content-body {
    padding: 30px 28px;
    flex-grow: 1;
}

/* Cards & Containers */
.card-gold {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-gold:hover {
    border-color: rgba(212, 175, 55, 0.45);
}

.card-gold-glow {
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.12);
}

.card-header-gold {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(21, 28, 45, 0) 100%);
}

/* Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: #0b0f19;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
    transition: all 0.25s ease;
}

.btn-gold:hover, .btn-gold:focus {
    background: var(--gold-gradient-hover);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold-500);
    color: var(--gold-500);
    font-weight: 600;
    border-radius: 10px;
    padding: 9px 20px;
    transition: all 0.25s ease;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #ffffff;
    border-color: var(--gold-400);
}

/* Forms */
.form-control, .form-select {
    background-color: #0d1320;
    border: 1px solid #2d3b55;
    color: #f8fafc;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    background-color: #0d1320;
    border-color: var(--gold-500);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.input-group-text {
    background-color: #1e293b;
    border: 1px solid #2d3b55;
    color: #cbd5e1;
}

/* Tables - Absolute Dark & Gold Override */
.table,
.table-gold {
    --bs-table-bg: transparent !important;
    --bs-table-color: #f8fafc !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-hover-bg: rgba(212, 175, 55, 0.08) !important;
    --bs-table-hover-color: #ffffff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.07) !important;
    color: #f8fafc !important;
    background-color: transparent !important;
    margin-bottom: 0;
}

.table > :not(caption) > * > *,
.table-gold > :not(caption) > * > * {
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit;
}

.table-gold thead th,
.table thead th {
    background-color: #0e1422 !important;
    color: #f3d068 !important;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.35) !important;
    padding: 14px 18px;
    font-weight: 700;
}

.table-gold tbody td,
.table tbody td {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle;
}

.table-gold tbody tr:hover td,
.table tbody tr:hover td {
    background-color: rgba(212, 175, 55, 0.06) !important;
    color: #ffffff !important;
}

/* Badges */
.badge-gold {
    background: rgba(212, 175, 55, 0.2);
    color: #fef08a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.badge-karat {
    background: linear-gradient(135deg, #473200 0%, #1f1600 100%);
    color: #fef08a;
    border: 1px solid #d4af37;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
}

/* Stat Cards */
.stat-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-400);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.stat-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.stat-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Gold Price Board Ticker */
.price-card {
    background: linear-gradient(145deg, #1b2337 0%, #111726 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.price-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-500);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

/* Modals & Dialogs */
.modal-content {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    color: var(--text-main);
}

.modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(21, 28, 45, 0) 100%);
    padding: 18px 24px;
}

.modal-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 16px 24px;
}

/* Dropdowns */
.dropdown-menu {
    background-color: #0f1523 !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 8px;
}

.dropdown-item {
    color: #cbd5e1;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: #ffffff;
}

/* Print Optimization for Surat Emas & Nota */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .app-sidebar, .app-navbar, .no-print {
        display: none !important;
    }
    .app-main {
        margin-left: 0 !important;
    }
    .content-body {
        padding: 0 !important;
    }
    .surat-emas-container {
        border: 2px solid #b38728 !important;
        box-shadow: none !important;
    }
}
