*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#f8fafc;
}

/* ================= HEADER ================= */

.main-header{
    width:100%;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 40px;
}

.logo-left img{
    width:100px;
}

/* ================= NAVBAR ================= */

.navbar{
    display:flex;
    align-items:center;
    gap:35px;
}

.navbar ul{
    display:flex;
    gap:28px;
    list-style:none;
}

.navbar ul li a{
    text-decoration:none;
    color:#555;
    font-weight:bold;
    font-size:14px;
    transition:0.3s;
}

.navbar ul li a:hover{
    color:#2f8ab7;
}

.get-started a{
    text-decoration:none;
    background:#2f8ab7;
    color:white;
    padding:10px 22px;
    border-radius:10px;
    font-weight:bold;
    font-size:14px;
    transition:0.3s;
}

.get-started a:hover{
    background:#236d90;
}

/* ================= HERO ================= */

.hero{
    width:100%;
    height:78vh;
    display:flex;
}

/* LEFT SIDE */

.left{
    width:50%;
    background:linear-gradient(
        135deg,
        #2f8ab7,
        #3ea0d0
    );

    padding:55px 45px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.tag{
    background:rgba(255,255,255,0.2);
    width:max-content;
    color:white;
    padding:8px 18px;
    border-radius:35px;
    margin-bottom:25px;
    font-size:12px;
}

.left h1{
    color:white;
    font-size:52px;
    line-height:1.1;
    margin-bottom:22px;
}

.left p{
    color:white;
    font-size:17px;
    line-height:1.7;
    margin-bottom:30px;
}

/* BUTTONS */

.buttons{
    display:flex;
    gap:15px;
}

.discover{
    background:white;
    color:#2f8ab7;
    border:none;
    padding:14px 28px;
    border-radius:10px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.discover:hover{
    transform:translateY(-2px);
}

.contact{
    background:transparent;
    border:2px solid white;
    color:white;
    padding:14px 28px;
    border-radius:10px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.contact:hover{
    background:white;
    color:#2f8ab7;
}

/* RIGHT SIDE */

.right{
    width:50%;
}

.right img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ================= LOGIN ================= */

.login-container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f1f5f9;
    padding:30px;
}

.login-card{
    background:white;
    width:320px;
    padding:30px;
    border-radius:18px;
    box-shadow:0 8px 18px rgba(0,0,0,0.08);
}

.login-card h1{
    color:#2f8ab7;
    margin-bottom:8px;
    text-align:center;
    font-size:28px;
}

.login-card p{
    text-align:center;
    color:#666;
    margin-bottom:15px;
    font-size:14px;
}

.login-card input,
.login-card select{
    width:100%;
    padding:12px;
    margin-top:12px;
    border:none;
    background:#f1f5f9;
    border-radius:10px;
    font-size:13px;
}

.login-card button{
    width:100%;
    margin-top:18px;
    padding:12px;
    border:none;
    background:#2f8ab7;
    color:white;
    border-radius:10px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
}

.login-card button:hover{
    background:#236d90;
}

.links{
    margin-top:15px;
    display:flex;
    justify-content:space-between;
}

.links a{
    text-decoration:none;
    color:#2f8ab7;
    font-size:12px;
}

/* ================= FOOTER ================= */

.footer{
    background:#06132b;
    padding:50px 50px 25px;
    color:white;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    gap:50px;
    flex-wrap:wrap;
}

/* LEFT */

.footer-logo-section{
    width:300px;
}

.footer-logo-section h1{
    font-size:36px;
    color:#c7e7ff;
    margin-bottom:18px;
    font-weight:800;
}

.footer-logo-section p{
    font-size:14px;
    line-height:1.7;
    color:#d7e2f0;
    margin-bottom:18px;
}

.footer-logo-section span{
    color:#d7e2f0;
    font-size:14px;
}

/* RIGHT LINKS */

.footer-links{
    display:flex;
    gap:50px;
    flex-wrap:wrap;
}

.footer-column h3,
.newsletter h3{
    font-size:18px;
    margin-bottom:18px;
    font-weight:700;
}

.footer-column ul{
    list-style:none;
}

.footer-column ul li{
    margin-bottom:14px;
}

.footer-column ul li a{
    text-decoration:none;
    color:#edf4ff;
    font-size:14px;
    transition:0.3s;
}

.footer-column ul li a:hover{
    color:#4db8ec;
}

/* NEWSLETTER */

.newsletter-box{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.newsletter-box input{
    width:200px;
    background:#13233f;
    border:none;
    outline:none;
    border-radius:35px;
    padding:14px 18px;
    color:white;
    font-size:13px;
}

.newsletter-box input::placeholder{
    color:#a8b4c9;
}

.newsletter-box button{
    background:#3194c5;
    color:white;
    border:none;
    border-radius:35px;
    padding:14px 18px;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
}

.newsletter p{
    color:#b7c3d9;
    font-size:12px;
}

/* BOTTOM */

.footer-bottom{
    border-top:1px solid #1c2d4a;
    margin-top:35px;
    padding-top:18px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.footer-bottom p{
    color:#9eacc4;
    font-size:12px;
}

.socials{
    display:flex;
    gap:18px;
}

.socials a{
    text-decoration:none;
    color:#cfd8e6;
    font-size:22px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){

    .hero{
        flex-direction:column;
        height:auto;
    }

    .left,
    .right{
        width:100%;
    }

    .left h1{
        font-size:38px;
    }

    .left p{
        font-size:15px;
    }

    .main-header{
        flex-direction:column;
        gap:15px;
    }

    .navbar{
        flex-direction:column;
    }

    .footer-container{
        flex-direction:column;
    }

    .newsletter-box{
        flex-direction:column;
    }

    .newsletter-box input{
        width:100%;
    }
}
/* ================= DASHBOARD ================= */

.dashboard{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:230px;
    background:#06132b;
    color:white;
    padding:30px 20px;
}

.sidebar h2{
    margin-bottom:35px;
    font-size:24px;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    margin-bottom:18px;
}

.sidebar ul li a{
    color:white;
    text-decoration:none;
    font-size:15px;
    display:block;
    padding:12px 15px;
    border-radius:10px;
    transition:0.3s;
}

.sidebar ul li a:hover{
    background:#2f8ab7;
}

/* CONTENT */

.content{
    flex:1;
    padding:40px;
}

.content h1{
    margin-bottom:30px;
    color:#0f172a;
}

/* CARDS */

.cards{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.card{
    background:white;
    width:230px;
    padding:25px;
    border-radius:18px;
    box-shadow:0 5px 15px rgba(0,0,0,0.06);
}

.card h3{
    color:#555;
    margin-bottom:15px;
    font-size:16px;
}

.card p{
    font-size:28px;
    font-weight:bold;
    color:#2f8ab7;
}
/* ================= TEACHER FORM ================= */

.content form{
    background:white;
    padding:30px;
    border-radius:18px;
    box-shadow:0 5px 15px rgba(0,0,0,0.06);
    max-width:700px;
}

.content form input{
    width:100%;
    padding:14px;
    margin-bottom:15px;
    border:none;
    background:#f1f5f9;
    border-radius:10px;
    font-size:14px;
}

.content form input:focus{
    outline:none;
    border:2px solid #2f8ab7;
    background:white;
}

.content form button{
    background:#2f8ab7;
    color:white;
    border:none;
    padding:14px 22px;
    border-radius:10px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.content form button:hover{
    background:#236d90;
    transform:translateY(-2px);
}

/* ================= QUESTION PAGE ================= */

.question-page{
    padding:40px;
}

.question-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.question-header h2{
    background:#eaf3fb;
    padding:16px 25px;
    border-radius:12px;
    color:#2f5f87;
    font-size:28px;
    font-weight:bold;
}

.add-question-btn{
    background:linear-gradient(to right,#4c7ef3,#5ca9ff);
    color:white;
    padding:14px 30px;
    border-radius:30px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.add-question-btn:hover{
    transform:translateY(-2px);
}

/* FILTERS */

.filters{
    display:flex;
    gap:20px;
    margin-bottom:25px;
    flex-wrap:wrap;
}

.filters input,
.filters select{
    padding:12px 18px;
    border:none;
    background:#f1f5f9;
    border-radius:30px;
    min-width:200px;
}

/* TABLE */

.question-table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.06);
}

.question-table th{
    background:#eef4fb;
    padding:18px;
    text-align:left;
}

.question-table td{
    padding:18px;
    border-bottom:1px solid #eee;
}

.action-icons{
    display:flex;
    gap:15px;
}

.edit{
    color:#f59e0b;
    cursor:pointer;
}

.delete{
    color:#16a34a;
    cursor:pointer;
}

/* ================= ADD QUESTION FORM ================= */

.add-question-form{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 5px 18px rgba(0,0,0,0.06);
    max-width:900px;
}

.add-question-form h2{
    margin-bottom:25px;
    color:#2f5f87;
}

.form-row{
    display:flex;
    gap:20px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.form-group{
    flex:1;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}

.add-question-form input,
.add-question-form select,
.add-question-form textarea{
    width:100%;
    padding:14px;
    border:none;
    background:#f1f5f9;
    border-radius:14px;
}

.add-question-form textarea{
    height:120px;
    resize:none;
}

.level-buttons{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.level-buttons button{
    border:none;
    padding:10px 18px;
    border-radius:20px;
    background:#dbeafe;
    color:#2f5f87;
    font-weight:bold;
    cursor:pointer;
}

.level-buttons button.active{
    background:#5ca9ff;
    color:white;
}

.form-actions{
    display:flex;
    gap:20px;
    margin-top:25px;
}

.save-btn,
.cancel-btn{
    flex:1;
    padding:14px;
    border:none;
    border-radius:30px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
}

.save-btn{
    background:linear-gradient(to right,#4c7ef3,#74b0ff);
    color:white;
}

.cancel-btn{
    background:#e2e8f0;
    color:#333;
}

/* DASHBOARD BUTTON */

.dashboard-btn{
    display:inline-block;
    margin-top:15px;
    text-decoration:none;
    background:#2f8ab7;
    color:white;
    padding:12px 22px;
    border-radius:10px;
    font-size:14px;
    font-weight:bold;
}
/* ================= RESULT PAGE ================= */

.result-container{

    max-width:700px;
    margin:80px auto;
    background:white;
    padding:45px;
    border-radius:25px;
    text-align:center;

    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.result-container h1{

    color:#2f8ab7;
    margin-bottom:25px;
    font-size:38px;
}

.result-container h2{

    background:#f1f5f9;
    padding:18px;
    border-radius:15px;
    margin-bottom:20px;

    color:#0f172a;
    font-size:30px;
}

.result-container h3{

    color:#16a34a;
    font-size:28px;
    margin-bottom:25px;
}

.warning{

    background:#fee2e2;
    color:#b91c1c;

    padding:18px;
    border-radius:15px;

    font-size:16px;
    font-weight:bold;

    margin-top:20px;
}

/* PASS / FAIL COLORS */

.pass{

    color:#16a34a;
}

.fail{

    color:#dc2626;
}

/* RESPONSIVE */

@media(max-width:768px){

    .result-container{

        margin:40px 20px;
        padding:30px 20px;
    }

    .result-container h1{
        font-size:30px;
    }

    .result-container h2{
        font-size:24px;
    }

    .result-container h3{
        font-size:22px;
    }
}
/* ================= QUIZ PAGE ================= */

main{
    padding:40px;
}

main h2{
    color:#2f8ab7;
    margin-bottom:25px;
    font-size:32px;
}

form{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.06);
    margin-bottom:30px;
}

label{
    font-weight:bold;
    color:#334155;
    display:block;
    margin-top:15px;
    margin-bottom:8px;
}

select{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#f1f5f9;
    font-size:14px;
    margin-bottom:15px;
}

.btn,
input[type="submit"]{
    background:#2f8ab7;
    color:white;
    border:none;
    padding:14px 24px;
    border-radius:12px;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.btn:hover,
input[type="submit"]:hover{
    background:#236d90;
}

/* QUESTION BOX */

.question{
    background:#f8fafc;
    padding:25px;
    border-radius:18px;
    margin-bottom:25px;
    border:1px solid #e2e8f0;
}

.question strong{
    color:#0f172a;
    font-size:18px;
}

.question label{
    display:block;
    background:white;
    padding:14px;
    border-radius:12px;
    margin-top:12px;
    cursor:pointer;
    transition:0.3s;
    border:1px solid transparent;
}

.question label:hover{
    border:1px solid #2f8ab7;
    background:#eef7fc;
}

.question input[type="radio"]{
    margin-right:10px;
}

/* RESULT SUMMARY */

.result-summary{
    background:#ecfcca;
    padding:25px;
    border-radius:18px;
    margin-top:30px;
    line-height:2;
    font-size:17px;
}

.correct-box{
    background:#16a34a;
    color:white;
    padding:10px;
    border-radius:10px;
    margin-top:10px;
}

.incorrect-box{
    background:#dc2626;
    color:white;
    padding:10px;
    border-radius:10px;
    margin-top:10px;
}