:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg-light: #f8fafc;
    --sidebar-bg: #0f172a;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); }

/* AUTH */
.auth-overlay { height: 100vh; display: flex; justify-content: center; align-items: center; background: var(--primary); }
.auth-card { background: white; padding: 2.5rem; border-radius: 20px; width: 100%; max-width: 380px; text-align: center; }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.toggle-text span { color: var(--primary); cursor: pointer; font-weight: 600; }

/* LAYOUT */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: 280px; background: var(--sidebar-bg); color: white; padding: 1.5rem; position: fixed; height: 100vh; }
.logo h1 { font-size: 0.9rem; color: #a5b4fc; letter-spacing: 1px; }
.user-profile { display: flex; align-items: center; gap: 12px; padding: 1rem; background: rgba(255,255,255,0.05); border-radius: 12px; margin: 1.5rem 0; }
.avatar-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }

.nav-item { display: block; width: 100%; padding: 12px; background: none; border: none; color: #94a3b8; text-align: left; cursor: pointer; border-radius: 8px; margin-bottom: 8px; font-weight: 400; }
.nav-item.active, .nav-item:hover { background: var(--primary); color: white; }
.logout-btn { background: transparent; border: 1px solid #334155; color: white; width: 100%; padding: 10px; margin-top: 2rem; border-radius: 8px; cursor: pointer; }

/* MAIN */
.main-content { margin-left: 280px; padding: 2.5rem; width: 100%; }
.top-bar { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; padding: 1.5rem; border-radius: 18px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.stat-card p { font-size: 2.2rem; font-weight: 600; }

.dashboard-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; }
.content-card { background: white; padding: 1.5rem; border-radius: 18px; }
.chart-wrapper { width: 100%; max-width: 250px; margin: 0 auto; }

/* UI ELEMENTS */
label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); display: block; margin-top: 10px; }
input { width: 100%; padding: 12px; margin-top: 5px; border: 1px solid #e2e8f0; border-radius: 10px; outline: none; }
.add-btn { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 10px; width: 100%; cursor: pointer; font-weight: 600; margin-top: 15px; }
.download-btn { background: #10b981; color: white; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; }
.del-btn { background: #fee2e2; color: #ef4444; border: none; padding: 8px; border-radius: 8px; cursor: pointer; }

/* MODALS */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.modal-content { background: white; margin: 10% auto; padding: 2.5rem; border-radius: 20px; width: 450px; position: relative; }
.close { position: absolute; right: 20px; top: 10px; font-size: 24px; cursor: pointer; }
.team-info-box { background: #f1f5f9; padding: 15px; border-radius: 12px; border-left: 5px solid var(--primary); }

.item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #f8fafc; border-radius: 12px; margin-bottom: 10px; border: 1px solid #f1f5f9; }