:root {
    --primary: #d4af37; /* Soft Gold */
    --secondary: #fdf5e6; /* Old Lace / Cream */
    --bg: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --accent: #f5f5dc; /* Beige */
    --danger: #e74c3c;
    --success: #2ecc71;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--accent);
    color: var(--text);
    line-height: 1.6;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Dashboard Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #1a1a1a;
    color: #fff;
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
}

.sidebar h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li a {
    color: #ccc;
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    border-radius: var(--radius);
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.sidebar nav ul li a:hover, 
.sidebar nav ul li a.active {
    background: var(--primary);
    color: #000;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2rem 3rem;
    background: #fcfcfc;
}

header.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.user-info {
    font-weight: 600;
}

.user-info a {
    color: var(--danger);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.8rem;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.btn-login, .btn-primary {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary {
    width: auto;
    padding: 0.8rem 2rem;
}

.btn-login:hover, .btn-primary:hover {
    opacity: 0.9;
}

/* Tables */
.table-container {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f9f9f9;
    font-weight: 600;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 70px; padding: 1rem 0.5rem; }
    .sidebar h2, .sidebar nav ul li a span { display: none; }
    .main-content { margin-left: 70px; padding: 1.5rem; }
    header.admin-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
