/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1c1c1c);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    color: white;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Animated Gradient */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 20px;
    animation: slideDown 1s ease-in-out;
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== FILTERS ===== */
.filters {
    text-align: center;
    margin: 20px;
    animation: fadeIn 1.5s ease;
}

select, input {
    padding: 10px;
    width: 250px;
    border-radius: 25px;
    border: none;
    outline: none;
    margin: 5px;
    transition: 0.3s;
}

select:hover, input:hover {
    transform: scale(1.05);
}

/* ===== BUTTONS ===== */
button {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: #00c6ff;
    color: white;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: #0072ff;
    transform: scale(1.05);
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 30px;
    gap: 20px;
}

.card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    width: 220px;
    text-align: center;
    transition: 0.4s ease;
    animation: fadeUp 1.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CHARTS ===== */
.charts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px;
    animation: fadeIn 2s ease;
}

canvas {
    width: 400px !important;
    height: 300px !important;
    margin: 10px;
}

/* ===== LEADERBOARD ===== */
.leaderboard {
    margin: 40px;
    animation: fadeIn 2s ease;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: center;
    transition: 0.3s;
}

th {
    background: rgba(255,255,255,0.2);
}

tr {
    transition: 0.3s ease;
}

tr:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.01);
}

/* ===== LEVEL COLORS ===== */
.top { color: #00ffcc; font-weight: bold; }
.average { color: #ffcc00; }
.low { color: #ff4444; }

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    animation: fadeIn 3s ease;
}

/* ===== FADE IN ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== LIGHT MODE ===== */
.light-mode {
    background: #f4f4f4 !important;
    color: #111 !important;
}

.light-mode .card {
    background: rgba(0,0,0,0.05);
    color: #111;
}

.light-mode table {
    background: rgba(0,0,0,0.05);
}

.light-mode th {
    background: rgba(0,0,0,0.1);
}
/* ===== LOGIN PAGE ===== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    transition: opacity 0.8s ease;
}

.login-container {
    text-align: center;
    animation: fadeUp 1.2s ease;
}

.college-logo {
    width: 350px;
    margin-bottom: 15px;
    animation: fadeIn 1.5s ease;
}

.dept-title {
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0.8;
}

.login-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.login-box input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 25px;
    border: none;
    outline: none;
}

.login-box button {
    width: 100%;
    margin-top: 10px;
}

