:root {
    /* Luxury Botanical Enterprise Palette */
    --bg-main: #0A0D09;
    --bg-sidebar: #11150F;
    --bg-card: #181C17;
    
    --primary-gold: #D8B24C;
    --primary: #D8B24C; /* Alias for backwards compatibility */
    --primary-gold-dim: rgba(216, 178, 76, 0.15);
    --primary-gold-hover: #E8C15A;
    
    --secondary-forest: #2E5939;
    --secondary-forest-dim: rgba(46, 89, 57, 0.15);
    
    --highlight-sage: #6A8E61;
    
    --text-main: #F5F1E8;
    --text-muted: #BEB8A6;
    
    --border-color: rgba(216, 178, 76, 0.15);
    --border-light: rgba(255, 255, 255, 0.05);
    
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(216, 178, 76, 0.1);
}

/* Global Typography & Background */
body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    letter-spacing: 0.01em;
    /* Extremely subtle botanical background line art (3% opacity) */
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0c20 30 40 40 40 70 0 20-15 30-40 50C35 100 20 90 20 70c0-30 20-40 40-70z' fill='none' stroke='%23D8B24C' stroke-width='0.5' stroke-opacity='0.03'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .serif-heading {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-gold);
    font-weight: 500;
}

/* Bootstrap Dark Mode Overrides */
.bg-light, .bg-white { 
    background-color: var(--bg-card) !important; 
    color: var(--text-main) !important; 
}
.text-muted { 
    color: var(--text-muted) !important; 
}
.text-dark { 
    color: var(--text-main) !important; 
}
.text-primary { 
    color: var(--primary-gold) !important; 
}
.text-success { 
    color: var(--highlight-sage) !important; 
}
.border, .border-bottom, .border-top, .border-end { 
    border-color: var(--border-color) !important; 
}
.badge.bg-success {
    background-color: var(--secondary-forest-dim) !important;
    color: var(--highlight-sage) !important;
    border: 1px solid var(--highlight-sage);
}

/* Luxury Cards */
.b-card {
    background: rgba(24, 28, 23, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

/* Stat Cards */
.stat-card {
    display: flex;
    flex-direction: column;
}
.stat-card .stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--text-main);
    margin: 16px 0;
}
.stat-card .stat-icon {
    color: var(--primary-gold);
}

/* Forms & Inputs */
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 16px 20px;
    background: rgba(17, 21, 15, 0.8);
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px var(--primary-gold-dim);
    background: var(--bg-card);
    color: var(--text-main);
}

.form-control::placeholder {
    color: #6B7280;
}

label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.b-btn-primary {
    background: linear-gradient(135deg, #D8B24C, #B58F28) !important;
    color: #11150F !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 14px 32px !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 20px var(--primary-gold-dim) !important;
}

.b-btn-primary:hover {
    background: linear-gradient(135deg, #E8C15A, #CBA43B) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(216, 178, 76, 0.3) !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--highlight-sage), var(--secondary-forest)) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 14px 32px !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 700 !important;
    transition: all 0.4s ease !important;
}
.btn-success:hover {
    box-shadow: 0 8px 25px var(--secondary-forest-dim) !important;
    transform: translateY(-2px) !important;
}

/* Progress Bar (Wizard) */
.progress {
    background-color: rgba(17, 21, 15, 0.8) !important;
    border-radius: 100px !important;
}
.progress-bar {
    background: var(--primary-gold) !important;
    box-shadow: 0 0 15px var(--primary-gold-dim) !important;
}
.btn-light {
    background-color: rgba(17, 21, 15, 0.8) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-light) !important;
}

/* Navbar */
.b-navbar {
    background: rgba(10, 13, 9, 0.85) !important;
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
}

.b-nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.b-nav-link:hover {
    color: var(--primary-gold) !important;
}

/* Sidebar Specific Styles */
.b-sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    height: calc(100vh - 76px);
    position: sticky;
    top: 76px;
}
.b-sidebar-link {
    color: var(--text-muted);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}
.b-sidebar-link:hover, .b-sidebar-link.active {
    background: var(--secondary-forest-dim);
    color: var(--primary-gold);
}
.b-sidebar-link svg {
    margin-right: 16px;
    transition: stroke 0.3s ease;
}
.b-sidebar-link:hover svg, .b-sidebar-link.active svg {
    stroke: var(--primary-gold);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .b-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }
    .stat-card .stat-number {
        font-size: 2.5rem !important;
    }
    .dashboard-header {
        padding: 20px !important;
    }
    h1.display-5 {
        font-size: 2rem !important;
    }
    h1.display-1 {
        font-size: 3rem !important;
    }
}

/* Modern Admin Tables */
.table-responsive {
    border-radius: 16px;
    overflow: hidden;
}
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    margin-bottom: 0;
}
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 2px solid rgba(216, 178, 76, 0.15) !important;
    padding: 1.2rem 1rem;
    background: rgba(17, 21, 15, 0.6);
}
.table td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: var(--text-main);
    transition: background 0.2s ease;
}
.table tbody tr {
    transition: all 0.3s ease;
}
.table-hover tbody tr:hover td {
    background: rgba(216, 178, 76, 0.03);
    color: var(--primary-gold);
}

