:root {
    --bg-dark: #0f111a;
    --panel-bg: rgba(20, 24, 39, 0.6);
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; }
body { background: var(--bg-dark); color: var(--text-main); min-height: 100vh; display: flex; }

/* Dashboard Layout */
.app-layout { display: flex; width: 100%; }

.sidebar { width: 260px; background: rgba(15, 17, 26, 0.95); border-right: 1px solid var(--border-color); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; backdrop-filter: blur(10px); }
.brand { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 0.75rem; }
.brand span { color: var(--primary); }

.nav-menu { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-item { padding: 0.75rem 1rem; border-radius: 8px; color: var(--text-muted); text-decoration: none; transition: 0.2s; display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.nav-item:hover, .nav-item.active { background: rgba(139, 92, 246, 0.1); color: var(--primary); }

.main-content { flex: 1; padding: 3rem 4rem; overflow-y: auto; background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent 40%); }

.header-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.header-subtitle { color: var(--text-muted); margin-bottom: 2.5rem; }

/* Panels & Cards */
.panel { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Table */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th { text-align: left; padding: 1rem; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
td { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Buttons & Inputs */
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text-main); border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.btn-danger:hover { background: #ef4444; color: white; }

.input-group { margin-bottom: 1.25rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.input-group input, .input-group textarea { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); color: white; padding: 0.75rem 1rem; border-radius: 8px; outline: none; transition: 0.2s; font-family: 'Inter', sans-serif; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2); }

/* Badges */
.badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #161925; width: 100%; max-width: 500px; border-radius: 16px; border: 1px solid var(--border-color); padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.modal h2 { margin-bottom: 1.5rem; }
