:root {
    --primary-gold: #DCAC40;
    --secondary-gold: #D8A32A;
    --light-gold: #F2C94C;
    --dark-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --card-border: rgba(220, 172, 64, 0.3);
    --text-primary: #222222;
    --text-secondary: #555555;
    --text-muted: #888888;
    --success: #27AE60;
    --danger: #EB5757;
    --font-family: 'Inter', 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 15% 50%, rgba(220, 172, 64, 0.05), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(216, 163, 42, 0.05), transparent 25%);
    background-attachment: fixed;
}

/* Glassmorphism / Card Classes */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(220, 172, 64, 0.15);
}

/* Headings & Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.text-gold {
    background: linear-gradient(135deg, var(--secondary-gold), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.brand-logo {
    max-height: 60px;
    margin-bottom: 16px;
    object-fit: contain;
}

.nav-brand-logo {
    max-height: 40px;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(220, 172, 64, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 172, 64, 0.4);
    background: linear-gradient(135deg, var(--light-gold), var(--primary-gold));
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: rgba(220, 172, 64, 0.1);
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(220, 172, 64, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Range Sliders */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(220, 172, 64, 0.4);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #E0E0E0;
    border-radius: 4px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.navbar {
    padding: 16px 0;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-gold);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

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

.full-width {
    grid-column: 1 / -1;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Toggles */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E0E0E0;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--primary-gold);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Login specific */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* Utility */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

.d-none { display: none !important; }

/* Group & Admin Items */
.list-item {
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-item:last-child {
    border-bottom: none;
}
