:root {
    --primary: #4f46e5;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f5f7fb;
    --card: #ffffff;

    --reasoning: #6c5ce7;
    --math: #00b894;
    --science: #e17055;
    --gk: #0984e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
}

/* Layout */
.container {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #4f46e5, #3b82f6);
    color: white;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 10px;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.2);
}

/* Content */
.main {
    flex: 1;
    padding: 20px;
}

/* Cards */
.card {
    background: var(--card);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Dashboard grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
}

/* Progress bar */
.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--primary);
    color: white;
    padding: 12px;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Labels */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    color: white;
    font-size: 12px;
}

.reasoning { background: var(--reasoning); }
.math { background: var(--math); }
.gk { background: var(--gk); }

/* Checkbox */
input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
}

/* Mobile */
@media(max-width:768px){
    .sidebar { display:none; }
}

/* NAVBAR */
.navbar {
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left h2 {
    color: var(--primary);
}

.nav-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
}

/* hover effect */
.nav-right a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-right a:hover::after {
    width: 100%;
}

/* FOOTER */
.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

/* CUSTOM CHECKBOX */
.check {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.check input {
    display: none;
}

.check span {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    display: inline-block;
    border-radius: 6px;
    transition: 0.3s;
}

.check input:checked + span {
    background: var(--success);
    border-color: var(--success);
}

.check span::after {
    content: "✔";
    color: white;
    position: absolute;
    top: 0;
    left: 4px;
    font-size: 14px;
    display: none;
}

.check input:checked + span::after {
    display: block;
}