:root {
    --bg-dark: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --gold-primary: #D4A017;
    --gold-light: #FFD700;
    --gold-dark: #B8860B;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --danger-high: #ff4444;
    --danger-low: #ff8888;
    --profit-high: #00C851;
    --profit-low: #007E33;
    --border-color: #2a2a3e;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-light);
}

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

.login-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

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

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

/* Navigation */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-primary);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.span-2 {
    grid-column: span 2;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.1);
    border-color: var(--gold-primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-top: 0.5rem;
}

.text-gold {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
}

/* Heatmap Grid */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-top: 1rem;
}

.heatmap-cell {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    border-color: var(--gold-primary);
}

.cell-number {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.cell-amount {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cell-percent {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
}

/* Heatmap Colors */
.cell-neutral { background-color: var(--bg-secondary); }
.cell-profit-high { background-color: rgba(0, 200, 81, 0.3); border-color: var(--profit-high); }
.cell-profit-low { background-color: rgba(0, 126, 51, 0.2); }
.cell-danger-high { background-color: rgba(255, 68, 68, 0.3); border-color: var(--danger-high); }
.cell-danger-low { background-color: rgba(255, 136, 136, 0.2); }

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-primary);
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--bg-secondary);
}

/* Alerts & Toasts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.alert-danger {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--danger-high);
    color: #ffcccc;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
    .span-2 {
        grid-column: span 1;
    }
    .heatmap-cell {
        min-height: 40px;
    }
    .cell-number {
        font-size: 1rem;
    }
    .cell-amount {
        font-size: 0.6rem;
    }
    .admin-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
