:root {
    --bg-dark: #020617;
    --bg-panel: #0f172a;
    --bg-panel-hover: #1e293b;
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: #334155;
    --accent: #8b5cf6;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Space Grotesk', 'Inter', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; }
.text-primary { color: var(--primary); }

/* Utilities */
.btn { padding: 0.8rem 1.5rem; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: all 0.3s; text-transform: uppercase; }
.btn-primary { background: var(--primary); color: var(--bg-dark); box-shadow: 0 4px 15px rgba(6,182,212,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,182,212,0.5); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-panel-hover); border-color: var(--primary); }
.dark-input { width: 100%; padding: 0.8rem 1.2rem; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; color: white; transition: all 0.3s; }
.dark-input:focus { outline: none; border-color: var(--primary); }

/* Auth */
.auth-container { height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, var(--bg-panel) 0%, var(--bg-dark) 100%); }
.auth-box { background: rgba(15,23,42,0.8); backdrop-filter: blur(20px); padding: 3rem; border-radius: 16px; border: 1px solid var(--border); width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* Admin Layout */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--bg-panel); border-right: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 3rem; letter-spacing: 1px; }
.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.nav-menu li { padding: 1rem; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 1rem; color: var(--text-muted); transition: all 0.3s; font-weight: 500; }
.nav-menu li:hover, .nav-menu li.active { background: rgba(6,182,212,0.1); color: var(--primary); border-left: 3px solid var(--primary); }
.nav-menu li i { width: 20px; text-align: center; }

.main-content { flex: 1; padding: 3rem; overflow-y: auto; }
.page-title { font-size: 2rem; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px; }
.view-section { display: none; }
.view-section.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Dashboard Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat-card { background: var(--bg-panel); border: 1px solid var(--border); padding: 2rem; border-radius: 12px; }
.stat-card h3 { color: var(--text-muted); font-size: 1rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.stat-card h1 { font-size: 2.5rem; }

/* Tables & Toolbar */
.toolbar { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.table-container { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; margin-bottom: 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1.2rem; text-align: left; border-bottom: 1px solid var(--border); font-family: 'Inter', sans-serif; font-size: 0.95rem; }
.data-table th { background: rgba(0,0,0,0.2); color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.data-table tr:hover { background: rgba(255,255,255,0.02); }

.status-badge { padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.status-badge.pending { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid var(--warning); }
.status-badge.completed { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid var(--success); }
.status-badge.cancelled { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid var(--danger); }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: flex-end; }
.page-btn { padding: 0.5rem 1rem; background: var(--bg-panel); border: 1px solid var(--border); color: white; border-radius: 6px; cursor: pointer; }
.page-btn.active { background: var(--primary); color: var(--bg-dark); border-color: var(--primary); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Modals */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000; display: none; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

/* Responsive */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; padding: 1rem; flex-direction: row; justify-content: space-between; align-items: center; border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar .logo { margin: 0; }
    .nav-menu { flex-direction: row; }
    .nav-menu li span { display: none; }
    .nav-menu li i { width: auto; }
    .sidebar > div { display: none; }
    .main-content { padding: 1.5rem; }
    .toolbar { flex-direction: column; }
    .toolbar input, .toolbar select { max-width: 100%; }
}
