:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(25, 25, 25, 0.8);
    --accent-red: #ff3e3e;
    --accent-gold: #ffcf40;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

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

body {
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 62, 62, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 207, 64, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Sidebar & Layout */
.app-container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 260px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--glass-border);
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-gold);
}

/* Navigation */
nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 0.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover, nav a.active {
    background: rgba(255, 62, 62, 0.1);
    color: var(--accent-red);
    transform: translateX(5px);
}

nav a.active {
    border-left: 3px solid var(--accent-red);
}

/* Containers & Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.red::after { background: var(--accent-red); }
.stat-card.gold::after { background: var(--accent-gold); }

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.2);
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background: #ff5e5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.3);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-done { background: rgba(0, 255, 0, 0.1); color: #00ff00; }
.status-pending { background: rgba(255, 207, 64, 0.1); color: var(--accent-gold); }

/* Dashboard Pulse */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse 2s infinite;
}
