* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background: #f4f6fa; color: #1f2937; }
a { color: #2563eb; text-decoration: none; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; background: #1e3a8a; color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar h1 { font-size: 1.4rem; letter-spacing: 0.5px; }
.navbar a { color: #dbeafe; margin-left: 20px; font-weight: 500; transition: 0.2s; }
.navbar a:hover { color: white; }

/* AUTH FORMS */
.auth-wrap { max-width: 450px; margin: 60px auto; padding: 40px; background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.auth-wrap h2 { margin-bottom: 24px; color: #1e3a8a; }
.auth-wrap input, .auth-wrap select { width: 100%; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; }
.auth-wrap button { width: 100%; padding: 14px; background: #2563eb; color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; transition: 0.2s; }
.auth-wrap button:hover { background: #1d4ed8; }

/* DASHBOARD LAYOUT */
.dash { display: flex; min-height: 100vh; }
.sidebar { width: 280px; background: #0f172a; color: #cbd5e1; padding: 24px 0; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.sidebar h2 { padding: 0 24px 20px; font-size: 1.2rem; color: white; border-bottom: 1px solid #1e293b; }
.sidebar .group { margin: 20px 0; }
.sidebar .group-title { padding: 8px 24px; font-size: 0.8rem; color: #64748b; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.sidebar a { display: block; padding: 12px 24px; color: #cbd5e1; cursor: pointer; transition: 0.2s; font-weight: 500; }
.sidebar a:hover { background: #1e293b; color: white; border-left: 4px solid #2563eb; }
.sidebar a.active {
    background-color: #dcfce7; /* Light green background */
    color: #166534; /* Dark green text */
    border-left: 4px solid #22c55e; /* Green accent border */
    font-weight: bold;
}

.main { flex: 1; padding: 40px; }
.hero { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; padding: 40px; border-radius: 16px; margin-bottom: 30px; box-shadow: 0 10px 20px rgba(37,99,235,0.2); }
.hero h1 { font-size: 2rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; opacity: 0.9; }

/* CARDS */
.section-title { font-size: 1.4rem; font-weight: 700; margin: 30px 0 20px; color: #1e293b; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.2s; display: flex; flex-direction: column; justify-content: space-between; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #1e3a8a; }
.card p { font-size: 0.9rem; color: #64748b; margin-bottom: 15px; flex-grow: 1; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; background: #dbeafe; color: #1e40af; font-weight: 600; align-self: flex-start; }

/* BUTTONS */
.btn { padding: 10px 20px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: #059669; color: white; }
.btn-success:hover { background: #047857; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

/* TABLES */
table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; font-weight: 700; color: #475569; }
tr:hover td { background: #f1f5f9; }