*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI", Arial, sans-serif;
}

body{
    background:#f4f7ff;
    color:#0f172a;
}

a{
    text-decoration:none;
}

/* LOGIN PAGE */

.login-fun-body{
    min-height:100vh;
    background:linear-gradient(135deg,#60a5fa,#a78bfa,#f9a8d4);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
}

.login-fun-wrapper{
    width:100%;
    max-width:1150px;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:35px;
    align-items:center;
}

.login-fun-left{
    background:rgba(255,255,255,.22);
    padding:45px;
    border-radius:40px;
    color:white;
    box-shadow:0 25px 60px rgba(0,0,0,.18);
}

.school-badge{
    display:flex;
    align-items:center;
    gap:18px;
    font-size:28px;
    font-weight:bold;
    color:white;
}

.school-badge img{
    width:95px;
    height:95px;
    object-fit:contain;
    background:white;
    border-radius:20px;
    padding:6px;
}

.login-fun-left h1{
    font-size:54px;
    line-height:1.1;
    color:white;
    margin-top:25px;
}

.login-tagline{
    font-size:21px;
    margin:18px 0 25px;
    color:white;
}

.cartoon-group{
    display:flex;
    gap:14px;
    margin:25px 0;
}

.cartoon-big{
    font-size:50px;
    background:rgba(255,255,255,.28);
    padding:16px;
    border-radius:22px;
}

.login-feature-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.login-feature-grid div{
    background:white;
    color:#4f46e5;
    padding:15px;
    border-radius:18px;
    font-weight:bold;
    font-size:17px;
}

.login-fun-card{
    background:white;
    padding:40px;
    border-radius:40px;
    box-shadow:0 25px 65px rgba(0,0,0,.22);
}

.login-card-icon{
    font-size:55px;
    text-align:center;
    margin-bottom:10px;
}

.login-fun-card h2{
    text-align:center;
    color:#4f46e5;
    font-size:36px;
}

.login-fun-card p{
    text-align:center;
    color:#64748b;
    margin:12px 0 22px;
    font-size:17px;
}

label{
    display:block;
    font-weight:bold;
    margin-top:16px;
    margin-bottom:8px;
}

input,
select,
textarea{
    width:100%;
    padding:16px;
    border:2px solid #e5e7eb;
    border-radius:18px;
    font-size:16px;
    outline:none;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#4f46e5;
}

button,
.btn{
    background:linear-gradient(135deg,#4f46e5,#06b6d4);
    color:white;
    border:none;
    padding:15px 22px;
    border-radius:18px;
    font-weight:bold;
    cursor:pointer;
}

.login-fun-card button{
    width:100%;
    margin-top:25px;
}

.login-register-area{
    margin-top:25px;
    text-align:center;
}

.login-register-area a{
    display:block;
    background:#eef2ff;
    color:#4f46e5;
    padding:13px;
    border-radius:16px;
    margin-top:10px;
    font-weight:bold;
}

/* REGISTER PAGE */

.register-wrapper{
    width:100%;
    max-width:1150px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:35px;
    align-items:center;
}

.register-left{
    background:rgba(255,255,255,.25);
    color:white;
    border-radius:40px;
    padding:45px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.18);
}

.register-cartoon{
    font-size:80px;
    margin-bottom:20px;
}

.register-left h1{
    font-size:42px;
}

.register-left p{
    font-size:19px;
    margin:15px 0 25px;
}

.student-benefits{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.student-benefits div{
    background:white;
    color:#4f46e5;
    padding:14px;
    border-radius:18px;
    font-weight:bold;
}

.register-card{
    background:white;
    border-radius:38px;
    padding:38px;
    box-shadow:0 20px 60px rgba(0,0,0,.22);
}

.register-card h2{
    color:#4f46e5;
    font-size:32px;
    margin-bottom:20px;
    text-align:center;
}

.register-card button{
    width:100%;
    margin-top:25px;
}

.back-login{
    display:block;
    text-align:center;
    margin-top:18px;
    color:#4f46e5;
    font-weight:bold;
}

.success-box{
    background:#dcfce7;
    color:#166534;
    padding:14px;
    border-radius:16px;
    font-weight:bold;
    margin-bottom:18px;
    text-align:center;
}

.fun-error,
.error{
    background:#fee2e2;
    color:#dc2626;
    padding:12px;
    border-radius:15px;
    font-weight:bold;
    margin-bottom:15px;
}

/* STUDENT DASHBOARD */

.student-page{
    background:#f4f7ff;
}

.student-layout{
    display:flex;
    min-height:100vh;
}

.fun-sidebar{
    width:280px;
    min-height:100vh;
    background:linear-gradient(180deg,#4f46e5,#7c3aed);
    color:white;
    padding:30px 24px;
    box-shadow:10px 0 30px rgba(0,0,0,.12);
}

.fun-sidebar h2{
    font-size:32px;
    margin-bottom:8px;
}

.fun-sidebar p{
    margin-bottom:30px;
    opacity:.9;
}

.fun-sidebar a{
    display:block;
    color:white;
    padding:15px 18px;
    margin-bottom:12px;
    border-radius:18px;
    font-weight:bold;
}

.fun-sidebar a:hover,
.fun-sidebar a.active{
    background:rgba(255,255,255,.24);
}

.student-main{
    flex:1;
    padding:30px;
}

.kids-hero{
    background:linear-gradient(135deg,#4f46e5,#06b6d4);
    color:white;
    padding:35px;
    border-radius:35px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:28px;
    box-shadow:0 15px 35px rgba(0,0,0,.16);
}

.kids-hero h1{
    font-size:38px;
    margin-bottom:12px;
}

.kids-hero p{
    font-size:18px;
}

.hero-stats{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:18px;
}

.hero-stats span{
    background:rgba(255,255,255,.25);
    padding:10px 15px;
    border-radius:999px;
    font-weight:bold;
}

.kids-mascot{
    font-size:72px;
}

.mission-card,
.subject-card,
.stat-box,
.lesson-card,
.quiz-card,
.leaderboard-card,
.parent-notice{
    background:white;
    border-radius:28px;
    padding:25px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.mission-card{
    margin-bottom:28px;
}

.mission-card h2{
    color:#4f46e5;
    margin-bottom:18px;
}

.mission-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
}

.mission-list div{
    background:#eef2ff;
    padding:15px;
    border-radius:18px;
    font-weight:bold;
}

.subject-grid{
    .subject-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:35px;
}

.subject-card:nth-child(4){
    grid-column:1 / 2;
}

.subject-card:nth-child(5){
    grid-column:3 / 4;
}

.subject-card{
    transition:.3s;
}

.subject-card:hover{
    transform:translateY(-6px);
}

.subject-icon{
    font-size:58px;
    margin-bottom:12px;
}

.subject-card h3{
    color:#4f46e5;
    font-size:24px;
    margin-bottom:12px;
}

.subject-card p{
    color:#64748b;
    line-height:1.5;
}

.subject-card a,
.lesson-actions a{
    display:inline-block;
    margin-top:16px;
    background:linear-gradient(135deg,#4f46e5,#06b6d4);
    color:white;
    padding:12px 18px;
    border-radius:15px;
    font-weight:bold;
}

.tamil{border-top:8px solid #7c3aed;}
.science{border-top:8px solid #22c55e;}
.maths{border-top:8px solid #2563eb;}
.bm{border-top:8px solid #ef4444;}
.english{border-top:8px solid #f59e0b;}

.progress-container{
    margin-top:18px;
    height:12px;
    background:#e5e7eb;
    border-radius:999px;
    overflow:hidden;
}

.progress-fill{
    height:100%;
    background:linear-gradient(90deg,#7c3aed,#4f46e5);
    border-radius:999px;
}

.science-fill{background:linear-gradient(90deg,#22c55e,#16a34a);}
.maths-fill{background:linear-gradient(90deg,#2563eb,#06b6d4);}
.bm-fill{background:linear-gradient(90deg,#ef4444,#f97316);}
.english-fill{background:linear-gradient(90deg,#f59e0b,#facc15);}

.complete-text{
    text-align:center;
    margin-top:8px;
    font-size:13px;
    font-weight:bold;
    color:#64748b;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:22px;
    margin-bottom:28px;
}

.stat-box{
    text-align:center;
}

.stat-box span{
    font-size:42px;
}

.stat-box h3{
    color:#4f46e5;
    margin:12px 0;
}

/* LESSON */

.lesson-card{
    margin-bottom:28px;
}

.lesson-card h2{
    color:#4f46e5;
    font-size:32px;
    margin-bottom:15px;
}

.lesson-card p{
    color:#475569;
    line-height:1.6;
    font-size:18px;
}

.lesson-card ul{
    list-style:none;
    margin-top:18px;
}

.lesson-card li{
    background:#eef2ff;
    padding:14px;
    border-radius:15px;
    margin-bottom:10px;
    font-weight:bold;
}

.lesson-actions{
    margin-top:25px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

/* EXERCISE */

.question-card{
    background:white;
    padding:28px;
    border-radius:28px;
    margin-bottom:24px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.question-badge{
    display:inline-block;
    background:#eef2ff;
    color:#4f46e5;
    padding:8px 14px;
    border-radius:999px;
    font-weight:bold;
    margin-bottom:15px;
    font-size:13px;
}

.question-text{
    font-size:20px;
    line-height:1.6;
    color:#0f172a;
    margin-bottom:18px;
}

textarea{
    min-height:130px;
}

.submit-practice-btn{
    width:100%;
    margin-top:10px;
    margin-bottom:40px;
    padding:16px;
    font-size:18px;
    border-radius:18px;
    background:linear-gradient(135deg,#4f46e5,#06b6d4);
    color:white;
    border:none;
    font-weight:bold;
}

/* TIMED QUIZ */

.challenge-hero{
    background:linear-gradient(135deg,#4f46e5,#06b6d4);
    color:white;
    padding:35px;
    border-radius:35px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.challenge-hero h1{
    font-size:34px;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.challenge-timer{
    background:white;
    color:#4f46e5;
    padding:18px 24px;
    border-radius:22px;
    font-size:32px;
    font-weight:bold;
    min-width:130px;
    text-align:center;
}

.quiz-card{
    margin-bottom:24px;
}

.quiz-card h3{
    font-size:22px;
    margin-bottom:18px;
}

.quiz-option{
    display:block;
    background:#f8fafc;
    padding:16px;
    border-radius:18px;
    margin-bottom:12px;
    border:2px solid #e5e7eb;
    cursor:pointer;
    font-weight:bold;
}

.quiz-option:hover{
    border-color:#4f46e5;
    background:#eef2ff;
}

.quiz-option input{
    width:auto;
    margin-right:10px;
}

/* RESULT */

.parent-notice{
    margin-top:28px;
    margin-bottom:28px;
    text-align:center;
}

.parent-notice h3{
    color:#4f46e5;
    margin-bottom:15px;
}

.whatsapp-btn{
    display:inline-block;
    background:linear-gradient(135deg,#22c55e,#16a34a);
    color:white;
    padding:15px 25px;
    border-radius:18px;
    font-weight:bold;
}

/* LEADERBOARD */

.leaderboard-hero{
    background:linear-gradient(135deg,#7c3aed,#2563eb);
    color:white;
    padding:35px;
    border-radius:35px;
    margin-bottom:30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.leaderboard-card{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#4f46e5;
    color:white;
    padding:15px;
    text-align:left;
}

td{
    padding:15px;
    border-bottom:1px solid #e5e7eb;
}

.rank-medal{
    font-size:28px;
}

.badge-pill{
    display:inline-block;
    background:#eef2ff;
    color:#4f46e5;
    padding:8px 14px;
    border-radius:999px;
    font-weight:bold;
}

/* MOBILE */

@media(max-width:900px){
    .login-fun-wrapper,
    .register-wrapper{
        grid-template-columns:1fr;
    }

    .student-layout{
        flex-direction:column;
    }

    .fun-sidebar{
        width:100%;
        min-height:auto;
    }

    .student-main{
        padding:20px;
    }

    .kids-hero,
    .challenge-hero,
    .leaderboard-hero{
        flex-direction:column;
        text-align:center;
        gap:18px;
    }

    .login-fun-left h1{
        font-size:38px;
    }

    .cartoon-group{
        flex-wrap:wrap;
    }

    .student-benefits,
    .login-feature-grid{
        grid-template-columns:1fr;
    }
}

.subject-cover {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 18px;
}

.subject-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:22px;
}

.subject-circle{
    width:70px;
    height:70px;
    border-radius:50%;
    flex-shrink:0;
}

.tamil-circle{
    background:linear-gradient(135deg,#a78bfa,#6d28d9);
}

.science-circle{
    background:linear-gradient(135deg,#86efac,#16a34a);
}

.maths-circle{
    background:linear-gradient(135deg,#60a5fa,#2563eb);
}

.bm-circle{
    background:linear-gradient(135deg,#fb7185,#ef4444);
}

.english-circle{
    background:linear-gradient(135deg,#facc15,#f59e0b);
}

.subject-book{
    width:115px;
    height:145px;
    object-fit:contain;
    background:#f8fafc;
    border-radius:18px;
    padding:8px;
}

.subject-cover{
    display:none;
}

.subject-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:22px;
}

.subject-circle{
    width:70px;
    height:70px;
    border-radius:50%;
    flex-shrink:0;
}

.tamil-circle{
    background:linear-gradient(135deg,#a78bfa,#6d28d9);
}

.science-circle{
    background:linear-gradient(135deg,#86efac,#16a34a);
}

.maths-circle{
    background:linear-gradient(135deg,#60a5fa,#2563eb);
}

.bm-circle{
    background:linear-gradient(135deg,#fb7185,#ef4444);
}

.english-circle{
    background:linear-gradient(135deg,#facc15,#f59e0b);
}

.subject-book{
    width:115px;
    height:145px;
    object-fit:contain;
    background:#f8fafc;
    border-radius:18px;
    padding:8px;
}

.subject-cover{
    display:none;
}

/* SUBJECT TEXTBOOK IMAGE DESIGN */

.subject-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:22px;
}

.subject-circle{
    width:70px;
    height:70px;
    border-radius:50%;
    flex-shrink:0;
}

.tamil-circle{
    background:linear-gradient(135deg,#a78bfa,#6d28d9);
}

.science-circle{
    background:linear-gradient(135deg,#86efac,#16a34a);
}

.maths-circle{
    background:linear-gradient(135deg,#60a5fa,#2563eb);
}

.bm-circle{
    background:linear-gradient(135deg,#fb7185,#ef4444);
}

.english-circle{
    background:linear-gradient(135deg,#facc15,#f59e0b);
}

.subject-book{
    width:115px;
    height:145px;
    object-fit:contain;
    background:#f8fafc;
    border-radius:18px;
    padding:8px;
}

.subject-cover{
    display:none;
}

.password-box {
    position: relative;
}

.password-box input {
    width: 100%;
    padding-right: 45px;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}

.success-box {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error-box {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #5fa8ff, #b56ee8, #ff9ac8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 85%;
    max-width: 1250px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 35px;
    align-items: center;
}

.login-left {
    background: rgba(255,255,255,0.22);
    padding: 45px;
    border-radius: 35px;
    color: white;
}

.school-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 20px;
}

.login-left h1 {
    font-size: 54px;
    line-height: 1.15;
    margin: 30px 0 15px;
}

.login-left p {
    font-size: 22px;
}

.feature-grid {
    display: flex;
    gap: 18px;
    margin: 30px 0;
}

.feature-grid div {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.25);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quick-links span {
    background: white;
    color: #4b48e8;
    padding: 18px;
    border-radius: 18px;
    font-weight: bold;
}

.login-card {
    background: white;
    padding: 50px;
    border-radius: 35px;
    text-align: center;
}

.rocket {
    font-size: 48px;
}

.login-card h2 {
    color: #4b48e8;
    font-size: 38px;
}

.login-card p {
    color: #6b7280;
}

.login-card label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 18px;
}

.login-card input {
    width: 100%;
    padding: 18px;
    margin-top: 8px;
    border-radius: 18px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.login-card button {
    width: 100%;
    margin-top: 25px;
    padding: 18px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(90deg, #4b48e8, #12b6d4);
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.register-link {
    display: block;
    background: #eef2ff;
    padding: 16px;
    margin-top: 12px;
    border-radius: 15px;
    text-decoration: none;
    color: #4b48e8;
    font-weight: bold;
}

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 45px;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 55%;
    transform: translateY(-50%);
    cursor: pointer;
}

.success-box {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error-box {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: bold;
}

@media(max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .login-left h1 {
        font-size: 38px;
    }
}

.password-eye-wrap{
    position:relative;
}

.password-eye-wrap input{
    width:100%;
    padding-right:50px;
}

.password-eye{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    font-size:18px;
    user-select:none;
}

select{
    width:100%;
    padding:14px;
    border:2px solid #e5e7eb;
    border-radius:12px;
    font-size:16px;
    background:#fff;
    margin-bottom:15px;
}

/* NEW SAFE SUBJECT CARD DESIGN - NO TEXTBOOK IMAGES */

.subject-top {
    height: 150px;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.subject-circle,
.subject-book,
.subject-cover {
    display: none !important;
}

.subject-banner-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.subject-banner-title {
    color: white;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.subject-banner-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.tamil .subject-top {
    background: linear-gradient(135deg, #7c3aed, #c084fc);
}

.science .subject-top {
    background: linear-gradient(135deg, #16a34a, #86efac);
}

.maths .subject-top {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.bm .subject-top {
    background: linear-gradient(135deg, #ef4444, #fb7185);
}

.english .subject-top {
    background: linear-gradient(135deg, #f59e0b, #facc15);
}

.subject-top{
    width:100%;
    height:210px;
    border-radius:22px;
    overflow:hidden;
    margin-bottom:15px;
    background:#f8fafc;
}

.subject-book-new{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* FINAL AI TEXTBOOK COVER FIX */
.subject-top{
    width:100% !important;
    height:260px !important;
    border-radius:24px !important;
    overflow:hidden !important;
    margin-bottom:18px !important;
    background:#f8fafc !important;
    padding:0 !important;
    display:block !important;
}

.subject-book-new{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
    border-radius:24px !important;
    padding:0 !important;
    background:none !important;
}

.subject-circle,
.subject-book,
.subject-cover{
    display:none !important;
}

.subject-card .subject-top{
    width:100% !important;
    height:260px !important;
    padding:0 !important;
    margin:0 0 20px 0 !important;
    border-radius:22px !important;
    overflow:hidden !important;
    background:none !important;
    display:block !important;
}

.subject-card .subject-top img.subject-book-new{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
    border-radius:22px !important;
    opacity:1 !important;
    visibility:visible !important;
}

.subject-card .subject-top > div{
    display:none !important;
}

.ai-cover-box{
    width:100%;
    aspect-ratio: 3 / 4;
    overflow:hidden;
    border-radius:22px;
    margin-bottom:18px;
    background:#fff;
}

.ai-book-cover{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:top;
}

.teacher-body{
    margin:0;
    font-family:'Segoe UI', Arial, sans-serif;
    background:#f3f6ff;
}

.teacher-layout{
    display:flex;
    min-height:100vh;
}

.teacher-sidebar{
    width:260px;
    background:linear-gradient(180deg,#4338ca,#0ea5e9);
    color:white;
    padding:30px 22px;
}

.teacher-sidebar h2{
    margin:0;
    font-size:28px;
}

.teacher-sidebar p{
    opacity:.9;
    margin-bottom:30px;
}

.teacher-sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:14px 16px;
    border-radius:14px;
    margin-bottom:10px;
    font-weight:600;
}

.teacher-sidebar a.active,
.teacher-sidebar a:hover{
    background:rgba(255,255,255,.2);
}

.logout-link{
    margin-top:40px;
    background:rgba(255,255,255,.15);
}

.teacher-main{
    flex:1;
    padding:35px;
}

.teacher-hero{
    background:white;
    border-radius:24px;
    padding:30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    margin-bottom:25px;
}

.teacher-hero h1{
    margin:0;
    font-size:34px;
    color:#111827;
}

.teacher-hero p{
    color:#64748b;
    font-size:18px;
}

.teacher-actions a{
    display:inline-block;
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
    color:white;
    text-decoration:none;
    padding:14px 20px;
    border-radius:14px;
    margin-left:10px;
    font-weight:700;
}

.teacher-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:25px;
}

.teacher-stats div{
    background:white;
    padding:25px;
    border-radius:22px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.teacher-stats h3{
    margin:0;
    color:#4f46e5;
    font-size:24px;
}

.teacher-card{
    background:white;
    padding:28px;
    border-radius:24px;
    margin-bottom:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    overflow:auto;
}

.teacher-card h2{
    margin-top:0;
    color:#111827;
}

.teacher-table{
    width:100%;
    border-collapse:collapse;
}

.teacher-table th{
    background:#4f46e5;
    color:white;
    padding:16px;
    text-align:left;
}

.teacher-table td{
    padding:15px;
    border-bottom:1px solid #e5e7eb;
    vertical-align:top;
}

.teacher-progress{
    width:140px;
    height:10px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    display:inline-block;
    margin-right:8px;
}

.teacher-progress div{
    height:100%;
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
}

/* PREMIUM TEACHER DASHBOARD 9.5/10 */

.teacher-body{
    margin:0;
    font-family:'Segoe UI', Arial, sans-serif;
    background:linear-gradient(135deg,#eef4ff,#f8fbff);
    color:#0f172a;
}

.teacher-layout{
    display:flex;
    min-height:100vh;
}

.teacher-sidebar{
    width:270px;
    background:linear-gradient(180deg,#3730a3,#2563eb,#0891b2);
    color:white;
    padding:34px 24px;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    box-shadow:12px 0 35px rgba(37,99,235,.18);
}

.teacher-sidebar h2{
    margin:0;
    font-size:30px;
    font-weight:900;
    letter-spacing:-.8px;
}

.teacher-sidebar p{
    margin:8px 0 36px;
    opacity:.9;
    font-size:16px;
}

.teacher-sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    color:white;
    text-decoration:none;
    padding:16px 18px;
    border-radius:18px;
    margin-bottom:14px;
    font-weight:700;
    font-size:16px;
    transition:.25s ease;
}

.teacher-sidebar a.active,
.teacher-sidebar a:hover{
    background:rgba(255,255,255,.18);
    transform:translateX(4px);
    box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.logout-link{
    margin-top:50px !important;
    background:rgba(255,255,255,.15);
}

.teacher-main{
    flex:1;
    padding:36px;
    margin-left:270px;
}

.teacher-hero{
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.8);
    border-radius:30px;
    padding:34px 38px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 20px 50px rgba(15,23,42,.08);
    margin-bottom:26px;
}

.teacher-hero h1{
    margin:0;
    font-size:38px;
    color:#0f172a;
    letter-spacing:-1px;
}

.teacher-hero p{
    margin:8px 0 0;
    color:#64748b;
    font-size:19px;
}

.teacher-actions{
    display:flex;
    gap:16px;
}

.teacher-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
    color:white;
    text-decoration:none;
    padding:16px 26px;
    border-radius:18px;
    font-weight:800;
    box-shadow:0 12px 28px rgba(79,70,229,.25);
    transition:.25s ease;
}

.teacher-actions a:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 35px rgba(79,70,229,.32);
}

.teacher-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
    margin-bottom:28px;
}

.teacher-stats div{
    background:white;
    padding:28px;
    border-radius:28px;
    box-shadow:0 18px 38px rgba(15,23,42,.07);
    border:1px solid #eef2ff;
    position:relative;
    overflow:hidden;
}

.teacher-stats div::after{
    content:"";
    position:absolute;
    width:90px;
    height:90px;
    right:-30px;
    top:-30px;
    background:linear-gradient(135deg,#4f46e5,#06b6d4);
    opacity:.12;
    border-radius:50%;
}

.teacher-stats h3{
    margin:0;
    color:#4f46e5;
    font-size:28px;
    font-weight:900;
}

.teacher-stats p{
    margin:8px 0 0;
    color:#64748b;
    font-size:15px;
}

.teacher-card{
    background:white;
    padding:32px;
    border-radius:30px;
    margin-bottom:28px;
    box-shadow:0 20px 50px rgba(15,23,42,.08);
    border:1px solid #eef2ff;
    overflow:auto;
}

.teacher-card h2{
    margin:0 0 20px;
    color:#0f172a;
    font-size:28px;
    letter-spacing:-.5px;
}

.teacher-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
    border-radius:18px;
}

.teacher-table th{
    background:linear-gradient(90deg,#4f46e5,#4338ca);
    color:white;
    padding:18px 20px;
    text-align:left;
    font-size:15px;
}

.teacher-table th:first-child{
    border-top-left-radius:18px;
}

.teacher-table th:last-child{
    border-top-right-radius:18px;
}

.teacher-table td{
    padding:18px 20px;
    border-bottom:1px solid #eef2ff;
    vertical-align:top;
    color:#0f172a;
    font-size:15px;
}

.teacher-table tr:hover td{
    background:#f8fbff;
}

.teacher-progress{
    width:150px;
    height:12px;
    background:#e5e7eb;
    border-radius:999px;
    overflow:hidden;
    display:inline-block;
    margin-right:10px;
    vertical-align:middle;
}

.teacher-progress div{
    height:100%;
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
    border-radius:999px;
}

@media(max-width:900px){
    .teacher-sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .teacher-layout{
        flex-direction:column;
    }

    .teacher-main{
        margin-left:0;
        padding:20px;
    }

    .teacher-hero{
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .teacher-stats{
        grid-template-columns:1fr;
    }
}

.exam-section-title{
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
    color:white;
    padding:18px 24px;
    border-radius:18px;
    font-size:24px;
    font-weight:900;
    margin:25px 0 18px;
}

.exam-question-card{
    background:white;
    padding:26px;
    border-radius:24px;
    margin-bottom:22px;
    box-shadow:0 12px 30px rgba(15,23,42,.08);
}

.question-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#4f46e5;
    font-size:18px;
    margin-bottom:12px;
}

.question-header span{
    background:#eef2ff;
    color:#4338ca;
    padding:8px 14px;
    border-radius:999px;
    font-size:14px;
    font-weight:800;
}

.question-text{
    font-size:18px;
    line-height:1.7;
    color:#0f172a;
}

.option-box{
    display:block;
    background:#f8fafc;
    padding:15px 18px;
    border:2px solid #e5e7eb;
    border-radius:16px;
    margin:12px 0;
    cursor:pointer;
    font-size:16px;
}

.option-box:hover{
    border-color:#4f46e5;
    background:#eef2ff;
}

.exam-input,
.exam-textarea{
    width:100%;
    padding:16px;
    border:2px solid #e5e7eb;
    border-radius:16px;
    font-size:16px;
}

.submit-exam-btn{
    width:100%;
    border:none;
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
    color:white;
    padding:18px;
    border-radius:18px;
    font-size:18px;
    font-weight:900;
    cursor:pointer;
    margin:25px 0 60px;
}

.answer-box{
    background:#f8fafc;
    padding:16px;
    border-radius:16px;
    margin-top:15px;
    border:1px solid #e5e7eb;
}

.feedback-box{
    background:#ecfdf5;
    padding:16px;
    border-radius:16px;
    margin-top:15px;
    border:1px solid #bbf7d0;
    color:#065f46;
}

.exam-question-image{
    width:100%;
    max-width:650px;
    display:block;
    margin:15px auto 25px;
    border-radius:18px;
    border:2px solid #e5e7eb;
}

.btn-practice{
    display:block;
    background:linear-gradient(90deg,#4f46e5,#06b6d4);
    color:white !important;
    text-decoration:none;
    padding:12px;
    border-radius:14px;
    text-align:center;
    margin:10px 0;
    font-weight:800;
}

.btn-timed{
    display:block;
    background:linear-gradient(90deg,#ef4444,#f97316);
    color:white !important;
    text-decoration:none;
    padding:12px;
    border-radius:14px;
    text-align:center;
    margin:10px 0;
    font-weight:800;
}

.exam-set-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
    margin-top:25px;
}

.exam-set-card{
    background:white;
    padding:28px;
    border-radius:24px;
    box-shadow:0 15px 35px rgba(15,23,42,.08);
}

.exam-set-card h3{
    color:#4f46e5;
    font-size:24px;
    margin-top:0;
}

.exam-timer{
    position:sticky;
    top:10px;
    z-index:999;
    background:linear-gradient(90deg,#ef4444,#f97316);
    color:white;
    padding:16px;
    border-radius:18px;
    text-align:center;
    font-size:22px;
    font-weight:900;
    margin-bottom:22px;
    box-shadow:0 12px 30px rgba(239,68,68,.25);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #4f46e5;
    font-weight: bold;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* PROFESSIONAL LOGIN PAGE */

.pro-login-body{
    min-height:100vh;
    background:
        radial-gradient(circle at top left, rgba(79,70,229,.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(6,182,212,.18), transparent 35%),
        linear-gradient(135deg,#f8fafc,#eef2ff);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
}

.pro-login-wrapper{
    width:100%;
    max-width:1180px;
    min-height:680px;
    display:grid;
    grid-template-columns:1.15fr .85fr;
    background:white;
    border-radius:34px;
    overflow:hidden;
    box-shadow:0 30px 90px rgba(15,23,42,.18);
}

.pro-login-left{
    background:
        linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,41,59,.88)),
        linear-gradient(135deg,#4f46e5,#06b6d4);
    color:white;
    padding:50px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.pro-school-brand{
    display:flex;
    align-items:center;
    gap:18px;
}

.pro-school-brand img{
    width:82px;
    height:82px;
    object-fit:contain;
    background:white;
    border-radius:18px;
    padding:6px;
}

.pro-school-brand h3{
    font-size:22px;
    margin-bottom:4px;
}

.pro-school-brand p{
    color:#cbd5e1;
    font-size:14px;
}

.pro-tag{
    display:inline-block;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.25);
    padding:9px 16px;
    border-radius:999px;
    font-weight:bold;
    color:#bae6fd;
    margin-bottom:22px;
}

.pro-hero-content h1{
    font-size:58px;
    line-height:1.05;
    margin-bottom:22px;
}

.pro-hero-content p{
    max-width:560px;
    font-size:18px;
    line-height:1.7;
    color:#e2e8f0;
}

.pro-feature-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.pro-feature-row div{
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.18);
    padding:18px;
    border-radius:20px;
}

.pro-feature-row strong{
    display:block;
    font-size:16px;
    margin-bottom:6px;
}

.pro-feature-row span{
    font-size:13px;
    color:#cbd5e1;
}

.pro-login-card{
    padding:55px 45px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.pro-login-header{
    margin-bottom:28px;
}

.pro-login-header h2{
    font-size:36px;
    color:#0f172a;
    margin-bottom:8px;
}

.pro-login-header p{
    color:#64748b;
}

.pro-login-card label{
    display:block;
    font-weight:700;
    color:#0f172a;
    margin:16px 0 8px;
}

.pro-login-card input{
    width:100%;
    padding:16px;
    border:1.8px solid #e5e7eb;
    border-radius:16px;
    font-size:16px;
}

.pro-login-card input:focus{
    border-color:#4f46e5;
    outline:none;
}

.pro-login-card button{
    width:100%;
    margin-top:24px;
    padding:16px;
    border-radius:16px;
    border:none;
    background:linear-gradient(135deg,#4f46e5,#06b6d4);
    color:white;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
}

.pro-register-links{
    margin-top:28px;
    padding-top:24px;
    border-top:1px solid #e5e7eb;
}

.pro-register-links p{
    color:#64748b;
    margin-bottom:12px;
    font-weight:600;
}

.pro-register-links a{
    display:block;
    padding:13px 15px;
    border-radius:14px;
    background:#f8fafc;
    color:#4f46e5;
    font-weight:700;
    margin-bottom:10px;
    text-decoration:none;
}

.pro-register-links a:hover{
    background:#eef2ff;
}

.password-eye-wrap{
    position:relative;
}

.password-eye-wrap input{
    padding-right:50px;
}

.password-eye{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
}

.forgot-link{
    display:block;
    text-align:center;
    margin-top:16px;
    color:#4f46e5;
    font-weight:700;
    text-decoration:none;
}

.forgot-link:hover{
    text-decoration:underline;
}

@media(max-width:900px){
    .pro-login-wrapper{
        grid-template-columns:1fr;
    }

    .pro-login-left{
        padding:35px;
    }

    .pro-hero-content h1{
        font-size:38px;
    }

    .pro-feature-row{
        grid-template-columns:1fr;
    }

    .pro-login-card{
        padding:35px;
    }
}

.group-title{
    font-size:28px;
    font-weight:700;
    margin:20px 0;
    color:#1e293b;
}

.material-box{
    background:#f8fafc;
    border-left:5px solid #4f46e5;
    padding:20px;
    border-radius:12px;
    margin:15px 0 25px 0;
    line-height:1.8;
    font-size:17px;
    white-space:pre-wrap;
}

.exam-question-image{
    display:block;
    max-width:100%;
    margin:20px auto;
    border-radius:12px;
    border:1px solid #e5e7eb;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.exam-material-image{
    display:block;
    max-width:75%;
    margin:20px auto;
}

.exam-question-image{
    display:block;
    max-width:350px;
    max-height:250px;
    margin:15px auto;
}

/* FINAL EXAM IMAGE SIZE FIX */

.exam-material-image{
    display:block !important;
    max-width:75% !important;
    max-height:none !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    margin:25px auto !important;
    border-radius:8px !important;
}

.exam-question-image{
    display:block !important;
    max-width:420px !important;
    max-height:280px !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    margin:18px auto !important;
    border-radius:10px !important;
    border:1px solid #e5e7eb !important;
    box-shadow:0 4px 12px rgba(0,0,0,0.08) !important;
}

/* TAMIL KEYBOARD STYLES */

.keyboard-toggle-group {
    display: flex;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.keyboard-toggle-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 18px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4f46e5;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.keyboard-toggle-btn:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}

.keyboard-toggle-btn.active {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    color: white;
    border-color: transparent;
}

.tamil-keyboard {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    display: grid;
    gap: 8px;
}

.tamil-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 6px;
}

.tamil-key {
    padding: 10px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1e293b;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tamil-key:hover {
    background: #eef2ff;
    border-color: #4f46e5;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.tamil-key:active {
    transform: scale(0.95);
    background: #ddd6fe;
}

.tamil-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.tamil-ctrl-btn {
    padding: 12px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.tamil-ctrl-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.tamil-ctrl-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .keyboard-toggle-group {
        flex-direction: column;
    }

    .keyboard-toggle-btn {
        min-width: 100%;
    }

    .tamil-row {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 5px;
    }

    .tamil-key {
        font-size: 16px;
        min-height: 40px;
        padding: 8px;
    }

    .tamil-controls {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .tamil-ctrl-btn {
        font-size: 11px;
        padding: 10px;
        min-height: 40px;
    }
}

.working-label{
    display:block;
    margin:18px 0 8px;
    font-weight:900;
    color:#061b4d;
}

.working-box{
    background:#f8fbff;
    border:2px dashed #93c5fd;
}

.group-title{
    background:#eff6ff;
    border-left:6px solid #075eea;
    padding:16px 18px;
    border-radius:14px;
    font-weight:900;
    color:#061b4d;
    margin-bottom:18px;
}

.material-box{
    background:#fffdf5;
    border:1px solid #fde68a;
    border-left:6px solid #f5b82e;
    padding:18px;
    border-radius:16px;
    margin-bottom:18px;
    line-height:1.7;
    color:#334155;
}

.exam-material-image{
    display:block;
    max-width:100%;
    max-height:520px;
    object-fit:contain;
    margin:18px auto;
    border-radius:18px;
    border:1px solid #dbeafe;
    background:#f8fbff;
    padding:10px;
}
/* ===== STUDENT EXAM PAGE FIX ===== */

.student-page{
    background:#f4f7fb !important;
    color:#0f172a !important;
    font-family:Arial,sans-serif !important;
    margin:0 !important;
}

.student-main{
    max-width:1100px !important;
    margin:35px auto !important;
    padding:0 20px 40px !important;
}

.student-main .mission-card{
    background:linear-gradient(135deg,#075eea,#061b4d) !important;
    color:white !important;
    border-radius:28px !important;
    padding:30px 34px !important;
    box-shadow:0 18px 45px rgba(15,23,42,.18) !important;
    margin-bottom:28px !important;
}

.student-main .mission-card h2{
    font-size:34px !important;
    margin:0 0 12px !important;
    color:white !important;
}

.student-main .mission-card p{
    color:#dbeafe !important;
    font-weight:700 !important;
    line-height:1.6 !important;
}

.exam-section-title{
    font-size:22px !important;
    font-weight:900 !important;
    color:#061b4d !important;
    margin:28px 0 14px !important;
}

.exam-question-card{
    background:white !important;
    border:1px solid #e5e7eb !important;
    border-radius:24px !important;
    padding:26px !important;
    margin-bottom:22px !important;
    box-shadow:0 12px 30px rgba(15,23,42,.07) !important;
}

.question-header{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:15px !important;
    margin-bottom:18px !important;
    border-bottom:1px solid #eef2f7 !important;
    padding-bottom:14px !important;
}

.question-header strong{
    font-size:20px !important;
    color:#061b4d !important;
}

.question-header span{
    background:#eef6ff !important;
    color:#075eea !important;
    font-weight:900 !important;
    padding:8px 14px !important;
    border-radius:999px !important;
}

.group-title,
.material-box{
    background:#f8fbff !important;
    border:1px solid #dbeafe !important;
    border-radius:16px !important;
    padding:16px !important;
    margin-bottom:18px !important;
    line-height:1.6 !important;
}

.question-text{
    font-size:18px !important;
    line-height:1.7 !important;
    color:#0f172a !important;
    margin-bottom:18px !important;
    font-weight:600 !important;
}

.option-box{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    width:100% !important;
    background:#f8fbff !important;
    border:1px solid #dbeafe !important;
    border-radius:16px !important;
    padding:15px 18px !important;
    margin:12px 0 !important;
    font-size:17px !important;
    font-weight:800 !important;
    color:#061b4d !important;
    cursor:pointer !important;
}

.option-box:hover{
    background:#eef6ff !important;
    border-color:#075eea !important;
}

.option-box input[type="radio"]{
    width:18px !important;
    height:18px !important;
    margin:0 !important;
    flex:0 0 auto !important;
}

.exam-input,
.exam-textarea{
    width:100% !important;
    border:1px solid #dbeafe !important;
    border-radius:16px !important;
    padding:15px !important;
    font-size:16px !important;
    margin-top:10px !important;
    background:#f8fbff !important;
    color:#0f172a !important;
}

.exam-textarea{
    resize:vertical !important;
    min-height:130px !important;
}

.working-label{
    display:block !important;
    margin-top:18px !important;
    margin-bottom:8px !important;
    font-weight:900 !important;
    color:#061b4d !important;
}

.working-box{
    background:#fffdf5 !important;
    border-color:#f5d16b !important;
}

.exam-material-image,
.exam-question-image{
    max-width:100% !important;
    height:auto !important;
    border-radius:16px !important;
    border:1px solid #e5e7eb !important;
    margin:16px 0 !important;
    display:block !important;
}

.submit-exam-btn{
    display:block !important;
    width:100% !important;
    background:linear-gradient(135deg,#075eea,#06b6d4) !important;
    color:white !important;
    border:0 !important;
    padding:18px !important;
    border-radius:18px !important;
    font-size:18px !important;
    font-weight:900 !important;
    cursor:pointer !important;
    margin:30px 0 20px !important;
    box-shadow:0 12px 30px rgba(7,94,234,.25) !important;
}

.submit-exam-btn:hover{
    transform:translateY(-2px) !important;
}

.student-main > a{
    display:inline-block !important;
    color:#075eea !important;
    font-weight:900 !important;
    text-decoration:none !important;
    margin-top:10px !important;
}

/* Tamil keyboard */
.keyboard-toggle-group{
    display:flex !important;
    gap:10px !important;
    margin-top:18px !important;
    flex-wrap:wrap !important;
}

.keyboard-toggle-btn{
    border:0 !important;
    padding:10px 14px !important;
    border-radius:12px !important;
    font-weight:900 !important;
    cursor:pointer !important;
    background:#e5e7eb !important;
    color:#061b4d !important;
}

.keyboard-toggle-btn.active{
    background:#075eea !important;
    color:white !important;
}

.tamil-pro-keyboard{
    background:#f8fbff !important;
    border:1px solid #dbeafe !important;
    border-radius:18px !important;
    padding:16px !important;
    margin-top:14px !important;
}

.keyboard-title{
    font-weight:900 !important;
    color:#061b4d !important;
    margin-bottom:6px !important;
}

.keyboard-help,
.keyboard-section-label{
    color:#64748b !important;
    font-size:13px !important;
    margin:10px 0 !important;
    font-weight:700 !important;
}

.tamil-row{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin-bottom:10px !important;
}

.tamil-key,
.tamil-ctrl-btn{
    border:1px solid #dbeafe !important;
    background:white !important;
    color:#061b4d !important;
    padding:9px 12px !important;
    border-radius:10px !important;
    font-weight:900 !important;
    cursor:pointer !important;
}

.tamil-key:hover,
.tamil-ctrl-btn:hover{
    background:#eef6ff !important;
}

.tamil-controls{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin-top:12px !important;
}

.tamil-ctrl-btn.danger{
    background:#fee2e2 !important;
    color:#dc2626 !important;
}

/* Mobile */
@media(max-width:700px){
    .student-main{
        margin:20px auto !important;
        padding:0 14px 30px !important;
    }

    .student-main .mission-card{
        padding:24px !important;
        border-radius:22px !important;
    }

    .student-main .mission-card h2{
        font-size:26px !important;
    }

    .exam-question-card{
        padding:20px !important;
        border-radius:20px !important;
    }

    .question-header{
        display:block !important;
    }

    .question-header span{
        display:inline-block !important;
        margin-top:10px !important;
    }

    .option-box{
        font-size:15px !important;
        padding:14px !important;
    }
}