@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --tr-gold-bg: #b49a59;
    --tr-white: #ffffff;
    --tr-dark: #1a1a1a;
}

/* === LAYOUT UTAMA (SCROLLABLE) === */
body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--tr-gold-bg);
    color: var(--tr-white);
    margin: 0;
    padding-top: 80px; /* Space untuk Navbar Fixed */
    min-height: 100vh; /* Agar background minimal setinggi layar */
    overflow-y: auto;  /* Mengizinkan Scroll */
    display: flex;
    flex-direction: column;
}

/* Container Wrapper */
.main-content {
    flex: 1;
    padding-bottom: 40px; /* Tambah jarak bawah */
}

/* Navbar */
.navbar {
    background-color: var(--tr-gold-bg) !important;
    padding: 1rem 2rem;
    transition: all 0.3s;
}
.navbar-brand {
    font-weight: 700;
    color: white !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex; align-items: center;
}
.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500; margin: 0 10px; font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
    color: white !important;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: 700;
}

/* Tombol Login Navbar */
.btn-login {
    background: white;
    color: var(--tr-gold-bg);
    border-radius: 50px;
    padding: 8px 30px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-login:hover { transform: scale(1.05); background: #f8f9fa; color: #9e8548; }

/* === KOMPONEN UI === */

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Judul Halaman */
.chart-title {
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Input Field Custom */
.form-control-custom {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #b49a59;
    font-weight: bold;
    padding: 12px;
    border-radius: 10px;
}
.form-control-custom:focus {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    outline: none;
}

/* Tombol Block Emas */
.btn-gold-block {
    background-color: #ffffff;
    color: #b49a59;
    font-weight: 800;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-gold-block:hover:not(:disabled) {
    transform: translateY(-2px);
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-gold-block:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* Tabel Custom */
.table-custom { 
    color: #000 !important; 
    font-size: 0.9rem; 
    margin-bottom: 0;
}
.table-custom th { 
    background-color: rgba(255, 255, 255, 0.7); 
    color: #000; 
    border: none; 
    font-weight: 700;
    white-space: nowrap;
}
.table-custom td { 
    background-color: rgba(255, 255, 255, 0.5); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    vertical-align: middle; 
    color: #000;
    font-weight: 500;
}

/* Badges */
.badge-code {
    background: #b49a59; color: white; border: 1px solid #b49a59;
    padding: 4px 8px; border-radius: 6px; cursor: pointer;
    font-family: monospace; font-weight: 700; font-size: 0.85rem;
    display: inline-block; margin: 2px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.1s; user-select: all;
}
.badge-code:hover { transform: scale(1.05); background: #9e8548; }
.badge-code:active { transform: scale(0.95); }

.badge-general {
    background: #dc3545; color: white; padding: 4px 8px; border-radius: 6px;
    font-size: 0.85rem; font-family: monospace; display: inline-block; margin: 2px;
    font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-slug {
    background-color: #212529; color: white; padding: 4px 8px; border-radius: 6px;
    cursor: pointer; transition: all 0.2s; font-family: monospace;
}
.badge-slug:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

/* Toast Container Stacking */
.toast-container { z-index: 9999; }
.toast-treasury {
    background-color: #fff;
    border-left: 5px solid #b49a59;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.toast-treasury .toast-header {
    border-bottom: 1px solid #f0f0f0;
    color: #b49a59; font-weight: bold;
}