*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, sans-serif;
}

/* TITLE */
.main-title{
    text-align:center;
    margin-top:20px;
    font-size:32px;
}

.subtitle{
    text-align:center;
    margin-bottom:20px;
    color:#555;
}

/* SPLIT */
.split-container{
    display:flex;
    height:85vh;
}

.split{
    width:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    transition:0.4s;
}

.left{
    background:linear-gradient(135deg,#0a2a66,#1e5fb6);
    color:white;
}

.right{
    background:linear-gradient(135deg,#7b1e3b,#c94b6b);
    color:white;
}

.split:hover{
    width:55%;
}

/* CONTENT */
.content{
    max-width:350px;
}

/* ICON CIRCLE */
.icon-circle{
    width:100px;
    height:100px;
    border:2px solid rgba(255,255,255,0.6);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0 auto 20px;
    font-size:40px;
}

/* TEXT */
.content h2{
    margin-bottom:10px;
}

.content p{
    font-size:14px;
    margin-bottom:20px;
}

/* BUTTON */
button{
    padding:12px 20px;
    border:none;
    border-radius:30px;
    background:white;
    color:black;
    font-weight:bold;
    cursor:pointer;
    margin-bottom:20px;
}

button:hover{
    transform:scale(1.05);
}

/* FEATURES */
.features{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    font-size:12px;
}

.features div{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    opacity:0.9;
}

.features i{
    font-size:18px;
}

/* LOGIN POPUP */
.login-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:none;
    justify-content:center;
    align-items:center;
}

#loginForm{
    background:white;
    padding:30px;
    border-radius:15px;
    width:300px;
    display:flex;
    flex-direction:column;
}

input{
    padding:10px;
    margin:10px 0;
}

#loginForm button{
    background:#2e7ce2;
    color:white;
}

#loginForm p{
    text-align:center;
    cursor:pointer;
    margin-top:10px;
}
/* ================= DASHBOARD ================= */

.dashboard {
    display: flex;
    height: 100vh;
}

/* ===== SIDEBAR UPGRADE ===== */
.sidebar {
    width: 220px;

    /* 🔥 SAME BLUE BUT PREMIUM */
    background: linear-gradient(180deg, #0a2a66, #081f4d);

    color: white;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* LOGO / TITLE */
.sidebar h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* LINKS */
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;

    color: rgba(255,255,255,0.85);
    text-decoration: none;

    margin: 8px 0;
    padding: 10px 12px;

    border-radius: 10px;

    transition: all 0.25s ease;
}

/* ICONS */
.sidebar a i {
    width: 20px;
    text-align: center;
}

/* HOVER EFFECT */
.sidebar a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateX(5px);
}

/* ACTIVE PAGE */
.sidebar a.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
}

/* LOGOUT */
.sidebar a.logout {
    color: #ff6b6b;
}

.sidebar a.logout:hover {
    background: rgba(255,107,107,0.15);
}

/* MAIN AREA */
.main {
    flex: 1;
    background: #f4f6f9;
    padding: 25px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* QUICK ACCESS */
.quick {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.2s;
}

.quick-card:hover {
    transform: translateY(-5px);
}

/* ===== HEADER ===== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 20px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.logo {
    height: 60px;
}

.header-text h1 {
    margin: 0;
    font-size: 24px;
}

.header-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}
/* ===== HEADER UPGRADE ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-left h2 {
    margin: 0;
    font-size: 26px;
}

.subtext {
    margin: 5px 0 0;
    font-size: 14px;
    color: #777;
}

.header-right {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;

}
/* ===== STUDENT DASHBOARD UPGRADE ===== */

/* TOP STATS */
.top-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a2a66, #1e5fb6);
    color: white;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* MAIN GRID */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

/* BIG ATTENDANCE CARD */
.big-card {
    grid-row: span 2;
}

/* RANK CARD */
.rank-card {
    text-align: center;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1e293b;
    font-weight: bold;
}

/* FIX OVERVIEW CARDS */
#leftOverview, #rightOverview {
    min-height: 150px;
}

/* SUBJECT ITEMS */
.subject-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
}

/* PROGRESS BAR */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 6px;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
}