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

body{
    min-height:100vh;
    color:white;
    overflow-x:hidden;
    background:#0f0f0f;
}

/* ================= MOBILE ================= */

@media screen and (max-width:768px){
body{
background-size:cover;
background-position:center;
padding:0 12px;
}
}

/* Splash Screen */

.splash-page{

display:flex;
justify-content:center;
align-items:center;
min-height:100vh;
background-image:url("../images/bg.png");
background-size:cover;
background-position:center;
background-repeat:no-repeat;
background-attachment:fixed;
position:relative;
overflow:hidden;
color:white;
text-align:center;
padding:20px;
}

.logo-container{

display:flex;
flex-direction:column;
align-items:center;
padding:35px;
background:rgba(0,0,0,.35);
backdrop-filter:blur(12px);
border:2px solid rgba(220,20,60,.45);
border-radius:28px;
box-shadow:
0 0 35px rgba(220,20,60,.25);
animation:zoomIn 1.2s ease;
}

.logo{
font-size:72px;
font-weight:800;
letter-spacing:4px;
margin:0;
text-shadow:
0 0 15px crimson,
0 0 35px rgba(255,0,0,.45);
}

.logo-img{
width:180px;
margin-bottom:22px;
filter:
drop-shadow(0 0 25px crimson);
animation:
logoFloat 3s ease-in-out infinite;
}

.tagline{
margin-top:18px;
font-size:24px;
font-weight:600;
color:#ffb3b3;
}

.subtitle{
margin-top:14px;
font-size:18px;
color:#dddddd;
max-width:550px;
line-height:1.7;
}

.welcome-text{
font-size:20px;
letter-spacing:4px;
text-transform:uppercase;
color:#bbbbbb;
margin-bottom:15px;
}

.hero-quote{
margin-top:28px;
font-size:17px;
font-style:italic;
color:#d8d8d8;
max-width:500px;
line-height:1.7;
}

/*================ Loading Bar ================*/

.loading-container{

width:220px;
height:6px;
margin:40px auto 0;
background:rgba(255,255,255,.15);
border-radius:30px;
overflow:hidden;
}

.loading-bar{

height:100%;
width:0%;
background:linear-gradient(
90deg,
crimson,
#ff4d4d);
border-radius:30px;
animation:loading 2.5s linear forwards;
}
.login-container select{

width:100%;
padding:15px;
margin:12px 0;
font-size:17px;
border:none;
border-radius:12px;
outline:none;
background:white;
color:#222;
}

@keyframes loading{
from{
width:0%;
}
to{
width:100%;
}
}
.fade-out{
animation:fadeOut .8s forwards;
}

@keyframes fadeOut{
to{
opacity:0;
transform:scale(.98);
}
}

@keyframes logoFloat{
0%{
transform:translateY(0);
}
50%{
transform:translateY(-10px);
}
100%{
transform:translateY(0);
}
}

@keyframes zoomIn{
    from{
        transform:scale(0);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
/* ================= Splash Mobile ================= */

@media(max-width:768px){
.logo-container{
width:92%;
padding:25px;
border-radius:22px;
}
.logo-img{
width:120px;
margin-bottom:18px;
}
.logo{
font-size:46px;
letter-spacing:2px;
}
.tagline{
font-size:18px;
}
.subtitle{
font-size:15px;
line-height:1.6;
max-width:300px;
}
.welcome-text{
font-size:14px;
letter-spacing:2px;
margin-bottom:12px;
}
}

/* Register / Login */

/*================ SUCCESS TOAST ================*/

.toast{
position:fixed;
top:25px;
left:50%;
transform:translateX(-50%) translateY(-80px);
min-width:320px;
max-width:90%;
padding:18px 30px;
border-radius:18px;
background:rgba(25,25,25,.45);
backdrop-filter:blur(18px);
-webkit-backdrop-filter:blur(18px);
border:2px solid rgba(255,255,255,.15);
color:white;
font-size:18px;
font-weight:600;
text-align:center;
box-shadow:
0 0 25px rgba(220,20,60,.35);
opacity:0;
z-index:99999;
transition:.55s ease;
}

.toast.show{
opacity:1;
transform:
translateX(-50%)
translateY(0);
}

.toast.success{
border-left:6px solid #00ff88;
}

.toast.error{
border-left:6px solid crimson;
}

/*================ BACK BUTTON ================*/

.back-btn{
position:fixed;
top:20px;
left:20px;
padding:10px 20px;
border:none;
border-radius:12px;
background:#b22222;
color:white;
font-size:16px;
font-weight:600;
cursor:pointer;
transition:.3s;
z-index:1000;
box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.back-btn:hover{
background:#d62d2d;
transform:translateY(-2px);
}

@media (max-width:768px){
.back-btn{
top:15px;
left:15px;
padding:9px 16px;
font-size:14px;
}
}

/*================ THEME BUTTON ================*/

.theme-btn{
position:fixed;
top:20px;
right:20px;
width:50px;
height:50px;
border:none;
border-radius:50%;
background:#444;
color:white;
font-size:22px;
cursor:pointer;
transition:.3s;
z-index:1000;
box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.theme-btn:hover{
transform:scale(1.08);
background:#666;
}

@media (max-width:768px){
.theme-btn{
top:15px;
right:15px;
width:45px;
height:45px;
font-size:20px;
}
}

/* Login */
.login-container h1{

    color:white;
    text-shadow:
    0 0 10px red,
    0 0 20px red;
}

.login-page{

    min-height:100dvh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:
    linear-gradient(
    135deg,
    #000000,
    #3a0000,
    #7a0000
    );

    color:white;
}

.login-container{
    width:90%;
    max-width:350px;
    background:
    rgba(0,0,0,0.85);
    color:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    border:2px solid #ff0000;
    box-shadow:
    0 0 20px rgba(255,0,0,0.5);
}

.login-container input{

    width:100%;
    padding:12px;
    margin:10px 0;
    border:none;
    border-radius:10px;
    font-size:16px;
}

.login-container button{

    width:100%;
    padding:12px;
    background:
    linear-gradient(
    45deg,
    #8b0000,
    #ff0000
    );

    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
    transition:0.3s;
}
.login-container p{

    margin-top:25px;
    font-size:16px;
    color:#dddddd;
    text-align:center;
}

.login-container a{

    color:crimson;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
}

.login-container a:hover{

    color:#ff4d4d;
    text-decoration:underline;
}

.login-container button:hover{
    transform:scale(1.05);
}
/*================ LOGIN MOBILE ================*/

@media (max-width:768px){
.login-container{
padding:25px 20px;
border-radius:18px;
}
.login-container h1{
font-size:32px;
}
.login-container input{
padding:11px;
font-size:15px;
}
.login-container button{
padding:11px;
font-size:15px;
}
}

/* Dashboard */ 

.dashboard-page{

    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:30px;
    background-image:url("../images/dashboard-bg.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.dashboard{

    text-align:center;
    background:
    rgba(0,0,0,0.7);
    padding:50px 40px;
    border-radius:25px;
    width:90%;
    max-width:700px;
    backdrop-filter:blur(5px);
    box-shadow:
    0 0 25px rgba(255,0,0,0.5);
}

#welcomeText{

    font-size:50px;
    color:white;
    text-shadow:
    0 0 10px red,
    0 0 20px red,
    0 0 40px red;
}
.dashboard p{

    margin-top:20px;
    font-size:22px;
    line-height:1.8;
    text-shadow:
    0 0 8px white;
}

/*================ DASHBOARD MOBILE ================*/

@media (max-width:768px){
.dashboard{
padding:30px 20px;
border-radius:20px;
}
#welcomeText{
font-size:34px;
}
.dashboard p{
font-size:17px;
line-height:1.6;
}
}

/*stream file*/

.stream-page{

    min-height:100vh;
    background:
    linear-gradient(
    135deg,
    #000000,
    #2b0000,
    #700000
    );
    display:flex;
    justify-content:center;
    align-items:center;
}

.stream-container{

    min-height:100dvh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    width:90%;
    max-width:1200px;
    margin:30px auto;
    padding:20px;
}

.stream-container h1{

    font-size:50px;
    color:white;
    margin-bottom:50px;
    text-shadow:
    0 0 10px red,
    0 0 20px red,
    0 0 40px red;
}

.stream-grid{

    display:grid;
    grid-template-columns:
    repeat(3,minmax(220px,250px));
    justify-content:center;
    gap:30px;
}

.stream-grid button{

    height:180px;
    font-size:28px;
    font-weight:bold;
    color:white;
    border:none;
    border-radius:25px;
    cursor:pointer;

    background:
    linear-gradient(
    135deg,
    #1a1a1a,
    #8b0000
    );
    box-shadow:
    0 0 15px rgba(255,0,0,0.4);
    transition:all 0.3s ease;
}

.stream-grid button:hover{

    transform:
    scale(1.08)
    translateY(-8px);
    box-shadow:
    0 0 25px red,
    0 0 50px darkred;
    background:
    linear-gradient(
    135deg,
    #8b0000,
    #ff0000
    );
}

.stream-grid button:active{
    transform:scale(0.95);
}

.stream-btn{

    padding:18px 40px;
    font-size:22px;
    font-weight:bold;
    border:none;
    border-radius:50px;
    cursor:pointer;
    color:white;
    background:
    linear-gradient(
    45deg,
    #8b0000,
    #ff0000,
    #ff4d4d
    );
    box-shadow:
    0 0 15px red,
    0 0 30px darkred;

    transition:all 0.3s ease;
    letter-spacing:1px;
    animation:pulse 2s infinite;
}
.stream-btn:hover{

    transform:
    translateY(-5px)
    scale(1.08);
    box-shadow:
    0 0 25px red,
    0 0 50px red,
    0 0 80px darkred;
}
.stream-btn:active{
    transform:scale(0.96);
}
/* Message box : */

.message-box{

    width:90%;
    max-width:750px;
    margin:50px auto;
    background:rgba(20,20,20,0.85);
    color:#f5f5f5;
    padding:30px;
    border-radius:20px;
    border-left:4px solid #b22222;
    text-align:left;
    line-height:1.8;
    box-shadow:
    0 0 15px rgba(0,0,0,0.4);
    transition:0.3s ease;
    backdrop-filter:blur(4px);
}
.message-box:hover{
    transform:translateY(-4px);
    box-shadow:
    0 0 20px rgba(255,0,0,0.15);
}

.message-box h2{

    font-size:38px;
    font-weight:700;
    letter-spacing:1px;
    color:#ffffff;
    margin-bottom:20px;
    border-bottom:2px solid #b22222;
    padding-bottom:10px;
}
.message-box p{

    color:#dcdcdc;
    font-size:19px;
    line-height:1.9;
    letter-spacing:0.5px;
    font-weight:400;
}
#streamTitle{

    text-transform:uppercase;
    text-shadow:
    0 0 5px rgba(255,255,255,0.3);
}

.continue-btn{

    margin-top:50px;
    padding:14px 35px;
    background:#b22222;
    color:white;
    border:none;
    border-radius:12px;
    font-size:18px;
    cursor:pointer;
    transition:0.3s;
}
.continue-btn:hover{

    background:#d32f2f;
    transform:translateY(-2px);
}

@keyframes pulse{

    0%{
        box-shadow:
        0 0 15px red;
    }
    50%{
        box-shadow:
        0 0 35px red,
        0 0 60px darkred;
    }
    100%{
        box-shadow:
        0 0 15px red;
    }
}

/* MOBILE MEDIA : */

@media (max-width:768px){
.stream-container{
padding:20px 10px;
}
.stream-container h1{
font-size:34px;
margin-bottom:35px;
}
.stream-grid{
grid-template-columns:1fr;
width:100%;
gap:20px;
}
.stream-grid button{
width:100%;
height:140px;
font-size:22px;
}
.stream-btn{
padding:16px 30px;
font-size:18px;
}
.message-box{
    width:95%;
    padding:22px;
}
.message-box h2{
    font-size:28px;
    margin-bottom:15px;
}
.message-box p{
    font-size:16px;
   line-height:1.7;
}
.continue-btn{
    width:100%;
    padding:14px;
    font-size:17px;
    margin-top:35px;
}
}

/* info card*/

.info-card{

    width:850px;
    max-width:90%;
    margin:110px auto 40px;
    background:
    rgba(45,45,45,0.92);
    color:white;
    padding:45px;
    border-radius:25px;
    text-align:left;
    border-left:5px solid #cc3333;
    box-shadow:
    0 0 20px rgba(255,0,0,0.15);
    transition:0.3s ease;
}
.info-card:hover{

    transform:translateY(-5px);
    box-shadow:
    0 0 25px rgba(255,0,0,0.25);
}

.info-card h1{

    font-size:38px;
    color:white;
    margin-bottom:20px;
    letter-spacing:2px;
    text-transform:uppercase;
    border-bottom:2px solid #b22222;
    padding-bottom:12px;
}

.info-card p{

    margin-top:20px;
    line-height:2;
    font-size:19px;
    color:#e0e0e0;
    letter-spacing:0.4px;
}
/* MOBILE MEDIA : */
@media (max-width:768px){
.info-card{
width:95%;
margin:90px auto 30px;
margin:35px auto;
padding:25px 20px;
border-radius:18px;
}
.info-card h1{
font-size:28px;
letter-spacing:1px;
padding-bottom:10px;
margin-bottom:15px;
}
.info-card p{
font-size:16px;
line-height:1.7;
margin-top:15px;
}
}

/* semester blocks*/

.semester-page{

    min-height:100vh;
    background:
    linear-gradient(
    135deg,
    #000000,
    #2b0000,
    #700000
    );
    padding:50px 20px;
}
.semester-container{

    width:90%;
    max-width:1200px;
    margin:30px auto;
    padding:20px;
}

.semester-container h1{

    text-align:center;
    color:white;
    font-size:45px;
    margin-bottom:50px;
    text-shadow:
    0 0 10px red;
}

.semester-grid{

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.semester-card{

    background:
    rgba(40,40,40,0.95);
    color:white;
    padding:22px;
    border-radius:25px;
    border-left:5px solid #cc3333;
    transition:0.3s;
    text-align:center;
}

.semester-card:hover{

    transform:
    translateY(-8px);
    box-shadow:
    0 0 20px rgba(255,0,0,0.3);
}

.semester-card h2{

    font-size:32px;
    margin-bottom:20px;
    color:white;
}

.semester-card p{

    font-size:18px;
    line-height:2;
    color:#dddddd;
}

.semester-btn{

    margin-top:18px;
    padding:10px 22px;
    font-size:16px;
    font-weight:600;
    border:none;
    border-radius:10px;
    background:#b22222;
    color:white;
    cursor:pointer;
    transition:0.3s;
}

.semester-btn:hover{

    background:#d62d2d;
    transform:scale(1.05);
}
/* MOBILE : */

@media (max-width:768px){
.semester-page{
padding:90px 15px 30px;
}
.semester-container{
width:100%;
padding:10px;
margin:0 auto;
}
.semester-container h1{
font-size:32px;
margin-bottom:30px;
}
.semester-grid{
grid-template-columns:1fr;
gap:20px;
}
.semester-card{
padding:20px;
border-radius:18px;
}
.semester-card h2{
font-size:26px;
margin-bottom:15px;
}
.semester-card p{
font-size:16px;
line-height:1.7;
}
.semester-btn{
width:100%;
padding:14px;
font-size:17px;
margin-top:18px;
}
}

/*light mode specifications : */

body.light-mode{
    background:#f5f5f5 !important;
    color:#222 !important;
}
body.light-mode .dashboard{
    color:#222;
}
body.light-mode .login-container{
    background:white;
    color:#222;
    border:2px solid #cccccc;
}
body.light-mode .stream-grid button{
    background:
    linear-gradient(
    135deg,
    #ffffff,
    #e6e6e6
    );
    color:#222;
    border:1px solid #ccc;
}
body.light-mode .info-card{
    background:white;
    color:#222;
    border-left:5px solid #2563eb;
}
body.light-mode .semester-card{
    background:white;
    color:#222;
    border-left:5px solid #2563eb;
}
body.light-mode .semester-card h2{
    color:#111;
}
body.light-mode .semester-card p,
body.light-mode .info-card p{
    color:#444;
}
body.light-mode .info-card h1{
    color:#111;
}

/* subject */

.subjects-page{

    min-height:100vh;
    background:
    linear-gradient(
    135deg,
    #000000,
    #2b0000,
    #700000
    );
    padding:40px 20px;
}
.subjects-container{

    width:90%;
    max-width:1200px;
    margin:30px auto;
    padding:20px;
}

.subjects-container h1{

    text-align:center;
    color:white;
    font-size:45px;
    margin-bottom:50px;
    text-shadow:
    0 0 10px red;
}
.subject-grid{

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
    max-width:1200px;
    margin:auto;
}
.subject-card{

    background:
    rgba(45,45,45,0.95);
    color:white;
    padding:25px;
    font-size:20px;
    font-weight:600;
    border:none;
    border-left:5px solid #cc3333;
    border-radius:20px;
    cursor:pointer;
    transition:0.3s;
    text-align:left;
}
.subject-card:hover{

    transform:
    translateY(-6px);
    box-shadow:
    0 0 20px rgba(255,0,0,0.3);
}
/* MOBILE : */

@media (max-width:768px){
.subjects-page{
padding:90px 15px 30px;
}
.subjects-container{
width:100%;
margin:0 auto;
padding:10px;
}
.subjects-container h1{
font-size:32px;
margin-bottom:30px;
}
.subject-grid{
grid-template-columns:1fr;
gap:18px;
}
.subject-card{
padding:20px;
font-size:18px;
border-radius:18px;
line-height:1.5;
}
}

/*light mode*/
body.light-mode .subject-card{
    background:white;
    color:#111;
    border-left:5px solid #2563eb;
}

body.light-mode .subjects-container > h1{
color:#111;
text-shadow:none;
}

.subject-section{

    margin-bottom:80px;
}

/*subject details*/

.resource-grid{

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    max-width:1000px;
    margin:auto;
}

.resource-card{

    background:
    rgba(45,45,45,0.95);
    color:white;
    padding:40px;
    text-align:center;
    font-size:24px;
    font-weight:bold;
    border-left:5px solid #cc3333;
    border-radius:20px;
    cursor:pointer;
    transition:0.3s;
}
.resource-card:hover{
    transform:translateY(-6px);
    box-shadow:
    0 0 20px rgba(255,0,0,0.3);
}
body.light-mode .resource-card{
    background:white;
    color:#111;
    border-left:5px solid #2563eb;
}
/* MOBILE */

@media (max-width:768px){
.resource-grid{
grid-template-columns:1fr;
gap:20px;
}
.resource-card{
padding:25px;
font-size:20px;
border-radius:18px;
}
}

/*================ QUIZ =================*/

#questionBox{

    width:90%;
    max-width:750px;
    margin:25px auto;
    padding:30px;
    font-size:25px;
    font-weight:bold;
    color:white;
    text-align:center;
    background:#1b1b1b;
    border-left:6px solid #c1121f;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.45);
}

.option-btn{

    display:block;
    width:90%;
    max-width:700px;
    margin:15px auto;
    padding:18px;
    font-size:18px;
    font-weight:600;
    color:white;
    background:#202020;
    border:2px solid #3a3a3a;
    border-radius:15px;
    cursor:pointer;
    transition:.3s;
    text-align:left;
}

.option-btn:hover{

    border-color:#ff3b3b;
    background:#2b2b2b;
    transform:translateX(8px);
    box-shadow:0 0 18px rgba(255,0,0,.25);
}

#questionNo{

    text-align:center;
    margin-top:20px;
    color:gray;
}

#resultMessage{

    text-align:center;
    font-size:22px;
    font-weight:bold;
    margin-top:20px;
    min-height:35px;
}

.next-btn{

    display:block;
    width:260px;
    margin:35px auto;
    padding:16px;
    font-size:20px;
    font-weight:bold;
    letter-spacing:1px;
    color:white;
    background:linear-gradient(135deg,#7a0000,#c1121f);
    border:2px solid #ff4d4d;
    border-radius:50px;
    cursor:pointer;
    box-shadow:
    0 0 10px rgba(255,0,0,.35),
    0 0 25px rgba(255,0,0,.15);
    transition:.35s;
}

.next-btn:hover{

    background:linear-gradient(135deg,#c1121f,#ff3b3b);
    transform:translateY(-5px) scale(1.04);
    box-shadow:
    0 0 18px rgba(255,0,0,.6),
    0 0 40px rgba(255,0,0,.35);
}

.next-btn:active{

    transform:scale(.95);
    box-shadow:none;
}

.progress-box{

    width:90%;
    max-width:700px;
    height:12px;
    margin:auto;
    background:#ddd;
    border-radius:10px;
    overflow:hidden;
}

#progressBar{

    width:0%;
    height:100%;
    background:#4CAF50;
    transition:0.5s;
}
/* ----- Quiz Bar ----- */

.quizStats{

    width:90%;
    max-width:700px;
    margin:20px auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:inherit;
    font-size:18px;
    font-weight:bold;
}
/* MOBILE */

@media (max-width:768px){
#questionBox{
width:95%;
padding:22px;
font-size:21px;
border-radius:15px;
}
.option-btn{
width:95%;
padding:16px;
font-size:16px;
}
.option-btn:hover{
transform:none;
}
#questionNo{
font-size:15px;
}
#resultMessage{
font-size:19px;
padding:0 10px;
}
.next-btn{
width:95%;
padding:15px;
font-size:18px;
}
.progress-box{
width:95%;
}
.quizStats{
width:95%;
font-size:15px;
}
}

/* result of quiz */
.result-card{

    width:90%;
    max-width:650px;
    margin:35px auto;
    padding:35px;
    border-radius:20px;
    text-align:center;
    background:var(--card-color);
    border:3px solid crimson;
    box-shadow:0 0 20px rgba(220,20,60,.4);
    color:inherit;
    animation:fadeIn .6s;
}

.result-card hr{
    border:1px solid crimson;
    margin:20px 0;
}

.result-card h1{
    font-size:55px;
    margin:10px;
}

.result-card h2{
    font-size:34px;
    margin:10px;
}

.result-card h3{
    margin:15px;
    font-size:25px;
}

#performanceMessage{
    margin-top:25px;
    font-size:24px;
    color:#ffb347;
    font-weight:bold;
}

#resultButtons{

    width:90%;
    max-width:650px;
    margin:auto;
    text-align:center;
}

.result-btn{

    width:100%;
    margin:15px 0;
    font-size:20px;
    border-radius:15px;
    transition:.3s;
}

.result-btn:hover{
    transform:scale(1.02);

}

#nextButton{

    display:block;
    margin:25px auto;
    width:180px;
}

/*================ RESULT CARD MOBILE =================*/

@media (max-width:768px){
.result-card{
width:95%;
margin:25px auto;
padding:28px 20px;
border-radius:18px;
}
.result-card hr{
margin:18px 0;
}
.result-card h1{
font-size:42px;
line-height:1.2;
margin:8px 0;
word-break:break-word;
}
.result-card h2{
font-size:28px;
line-height:1.3;
margin:10px 0;
word-break:break-word;
}
.result-card h3{
font-size:21px;
line-height:1.5;
margin:12px 0;
word-break:break-word;
}
#performanceMessage{
font-size:20px;
line-height:1.6;
margin-top:18px;
padding:0 8px;
word-break:break-word;
}
#resultButtons{
width:95%;
}
.result-btn{
width:100%;
padding:15px;
font-size:18px;
margin:12px 0;
border-radius:14px;
}
.result-btn:hover{
transform:none;
}
#nextButton{
width:100%;
max-width:280px;
padding:15px;
font-size:18px;
margin:20px auto;
}
}

/* MAIN DASHBOARD (HUB) : */

.hub-grid{

display:grid;
grid-template-columns:
repeat(auto-fit,minmax(260px,1fr));
gap:20px;
margin-top:30px;
}

.hub-card{

padding:25px;
border-radius:18px;
background:var(--card-color);
border:2px solid #8B0000;
cursor:pointer;
transition:.3s;
text-align:center;
color:inherit;
}

.hub-card:hover{

transform:translateY(-6px);
box-shadow:0 0 18px crimson;
}

.hub-card h2{
font-size:42px;
margin-bottom:12px;
}

.hub-card h3{
margin-bottom:10px;
}

.hub-card p{
opacity:.8;
font-size:15px;
}

.hub-banner{

    width:95%;
    max-width:900px;
    margin:0 auto 35px auto;
    padding:22px;
    text-align:center;
    border-radius:20px;
    background:linear-gradient(135deg,#2b0000,#550000);
    border:2px solid crimson;
    box-shadow:0 0 25px rgba(220,20,60,.4);
}

.hub-banner h1{

    font-size:42px;
    margin-bottom:12px;
    color:white;
}

.hub-banner p{

    font-size:20px;
    color:#f2f2f2;
    margin:0;
    letter-spacing:1px;
}

/* continue button for previous subject ...*/

/*================ CONTINUE CARD =================*/

.continue-card{

    position:relative;
    width:95%;
    max-width:900px;
    margin:18px auto 25px auto;
    padding:30px;
    overflow:hidden;
    border-radius:22px;
    background:linear-gradient(135deg,#150000,#2a0000,#150000);
    border:2px solid crimson;
    animation:borderGlow 3s infinite alternate;
    box-shadow:0 0 20px rgba(255,0,60,.35);
    transition:.4s;
    backdrop-filter:blur(12px);
    animation:cardEntry .8s ease;
}

@keyframes cardEntry{
from{
opacity:0;
transform:translateY(30px);
}
to{
opacity:1;
transform:translateY(0);
}
}

.continue-card:hover{

    transform:translateY(-5px);
    box-shadow:0 0 35px rgba(255,0,60,.55);
}

.continue-content{

    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    gap:25px;
}

.continue-icon{

    width:90px;
    height:90px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:45px;
    background:rgba(255,0,70,.15);
    border:2px solid crimson;
    box-shadow:0 0 18px crimson;
    animation:pulseIcon 2s infinite;
}

@keyframes pulseIcon{
0%{
transform:scale(1);
}
50%{
transform:scale(1.08);
box-shadow:0 0 35px crimson;
}
100%{
transform:scale(1);
}
}
.continue-btn{

    position:relative;
    overflow:hidden;
    margin-top:18px;
    padding:14px 34px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    color:white;
    background:linear-gradient(90deg,#ff003c,#ff4d4d);
    transition:.35s;
}

.continue-btn::before{

    content:"";
    position:absolute;
    width:60px;
    height:220%;
    background:rgba(255,255,255,.35);
    transform:rotate(25deg);
    top:-50%;
    left:-120px;
    transition:.6s;
}

.continue-btn:hover::before{
    left:250px;
}

.continue-btn:hover{
    transform:scale(1.07);
}

/*CONTINUE MOBILE : */
@media (max-width:768px){
.continue-card{
margin:85px auto 20px;
padding:18px;
border-radius:18px;
}
.continue-content{
flex-direction:row;
align-items:center;
gap:15px;
}
.continue-icon{
width:60px;
height:60px;
font-size:28px;
margin:0;
flex-shrink:0;
}
.continue-text{
text-align:left;
flex:1;
}
.continue-text h2{
font-size:22px;
}
.continue-text h3{
font-size:16px;
margin-top:6px;
}
.continue-text p{
display:none;
}
.continue-btn{
margin-top:12px;
padding:10px 20px;
font-size:15px;
}
/*================ HUB BANNER MOBILE =================*/

.hub-banner{
width:100%;
padding:18px;
margin:0 auto 20px auto;
border-radius:18px;
}
.hub-banner h1{
font-size:28px;
margin-bottom:8px;
line-height:1.2;
}
.hub-banner p{
font-size:15px;
letter-spacing:.3px;
line-height:1.5;
}
/*================ HUB CARDS MOBILE =================*/

.hub-grid{
grid-template-columns:repeat(2,1fr);
gap:14px;
margin-top:20px;
}
.hub-card{
padding:18px 12px;
border-radius:16px;
min-height:140px;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
.hub-card h2{
font-size:32px;
margin-bottom:8px;
}
.hub-card h3{
font-size:17px;
margin-bottom:6px;
line-height:1.3;
}
.hub-card p{
font-size:13px;
line-height:1.4;
opacity:.85;
}
}

/*================ BUBBLES ================*/

.bubble{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(3px);
    animation:float 8s infinite linear;
}

.b1{
    width:70px;
    height:70px;
    left:-15px;
    top:25px;
}

.b2{
    width:35px;
    height:35px;
    right:40px;
    top:20px;
    animation-duration:6s;
}

.b3{
    width:55px;
    height:55px;
    right:-15px;
    bottom:20px;
    animation-duration:9s;
}

.b4{
    width:25px;
    height:25px;
    left:60%;
    bottom:15px;
    animation-duration:5s;
}

@keyframes float{
0%{
transform:translateY(0px);
}
50%{
transform:translateY(-18px);
}
100%{
transform:translateY(0px);
}
}

.continue-text h2{

    margin:0;
    color:#ffffff;
    font-size:34px;
    font-weight:700;
    letter-spacing:1px;
}

.continue-text h3{

    margin-top:10px;
    color:#ffb6c1;
    font-size:24px;
    font-weight:500;
}

.continue-text p{

    margin-top:8px;
    color:#dddddd;
    font-size:17px;
}

/*================ MOVING GLOW ================*/

.glow{
    position:absolute;
    width:350px;
    height:350px;
    border-radius:50%;
    background:radial-gradient(circle,
    rgba(255,0,60,.35),
    transparent 70%);
    top:-120px;
    left:-120px;
    animation:moveGlow 10s linear infinite;
}

@keyframes moveGlow{
0%{
transform:translate(0,0);
}
25%{
transform:translate(250px,40px);
}
50%{
transform:translate(450px,140px);
}
75%{
transform:translate(180px,180px);
}
100%{
transform:translate(0,0);
}
}

@keyframes borderGlow{

0%{
box-shadow:
0 0 15px crimson;
}

50%{
box-shadow:
0 0 25px crimson,
0 0 45px red;
}

100%{
box-shadow:
0 0 18px darkred;
}
}

/* star effect : */
.star{

position:absolute;
width:5px;
height:5px;
background:white;
border-radius:50%;
animation:twinkle 2s infinite;
z-index:1;
}

.s1{
top:30px;
left:30%;
}

.s2{
top:80px;
right:18%;
animation-delay:.5s;
}

.s3{
bottom:35px;
left:20%;
animation-delay:1s;
}

.s4{
right:40px;
bottom:80px;
animation-delay:1.5s;
}

.s5{
top:50%;
left:65%;
animation-delay:.8s;
}

@keyframes twinkle{

0%,100%{
opacity:.2;
transform:scale(.8);
}

50%{
opacity:1;
transform:scale(1.8);
}
}
/* arrow with continue : */

.arrow{
display:inline-block;
animation:arrowMove 1s infinite;
}

@keyframes arrowMove{
0%{
transform:translateX(0);
}
50%{
transform:translateX(6px);
}
100%{
transform:translateX(0);
}
}

button,
.stream-btn,
.semester-btn,
.continue-btn,
.back-btn,
.theme-btn{
    transition:transform .15s ease;
}

button:active,
.stream-btn:active,
.semester-btn:active,
.continue-btn:active,
.back-btn:active,
.theme-btn:active{
    transform:scale(.95);
}

/* Navigatin bar */

/* ================= SIDEBAR ================= */

#overlay{

position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.55);
display:none;
z-index:998;
backdrop-filter:blur(4px);
}

#sidebar{
    
position:fixed;
top:0;
left:-320px;
width:300px;
height:100dvh;
background:#121212;
box-shadow:8px 0 30px rgba(0,0,0,.45);
padding:25px;
transition:.4s ease;
z-index:999;
overflow-y:auto;
overflow-x:hidden;
-webkit-overflow-scrolling:touch;
}

.sidebar-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 20px;
}

.sidebar-header h2{

color:crimson;
font-size:28px;
}

.sidebar-title{
margin:0;
font-size:24px;
font-weight:700;
}

.close-btn{
background:rgba(255,255,255,.08);
border:1px solid rgba(255,255,255,.12);
border-radius:12px;
padding:8px 18px;
color:white;
font-size:15px;
cursor:pointer;
transition:.3s;
}

.close-btn:hover{
background:crimson;
transform:translateY(-2px);
}

#sidebar button{

width:100%;
padding:15px;
margin-bottom:15px;
border:none;
border-radius:12px;
background:#1d1d1d;
color:white;
font-size:17px;
cursor:pointer;
transition:.3s;
text-align:left;
}

#sidebar button:hover{

background:crimson;
transform:translateX(8px);
box-shadow:0 0 18px rgba(220,20,60,.4);
}

/*================ SIDEBAR BRAND ================*/

.sidebar-header{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
padding:25px 0;
gap:18px;
border-bottom:1px solid rgba(255,255,255,.08);
margin-bottom:20px;
}

.sidebar-logo{
width:50px;
height:50px;
object-fit:contain;
filter:drop-shadow(0 0 18px rgba(255,0,0,.35));
}

.sidebar-header h2{
margin:0;
font-size:28px;
font-weight:700;
letter-spacing:1px;
color:white;
}

/*================ MENU BUTTON ================*/

.menu-btn{

position:fixed;
top:20px;
right:90px;
width:55px;
height:55px;
border:none;
border-radius:50%;
background:crimson;
color:white;
font-size:28px;
font-weight:bold;
cursor:pointer;
z-index:1200;
transition:.3s;
box-shadow:0 0 20px rgba(220,20,60,.4);
}

.menu-btn:hover{

transform:scale(1.08);
background:#ff1744;
}

/*================ SIDEBAR MOBILE =================*/

@media (max-width:768px){
#sidebar{
width:260px;
left:-280px;
padding:18px;
}
.sidebar-header{
margin-bottom:25px;
}
.sidebar-header h2{
font-size:22px;
}
.close-btn{
font-size:24px;
}
#sidebar button{
padding:12px;
font-size:15px;
margin-bottom:10px;
border-radius:10px;
}
.menu-btn{
top:15px;
right:70px;
width:46px;
height:46px;
font-size:22px;
}
}

/*=============== TOP NAVBAR ===============*/

.top-navbar{

position:fixed;
top:0;
left:0;
width:100%;
height:75px;
background:#141414;
display:flex;
justify-content:space-between;
align-items:center;
padding:0 25px;
box-sizing:border-box;
z-index:1500;
box-shadow:0 5px 20px rgba(0,0,0,.4);
}

.top-navbar h2{

color:crimson;
font-size:28px;
font-weight:bold;
}

.nav-left{

    display:flex;
    gap:12px;
    align-items:center;
}

.nav-menu-btn,
.nav-back-btn,
.nav-theme-btn{

width:50px;
height:50px;
border:none;
border-radius:50%;
background:#222;
color:white;
font-size:25px;
cursor:pointer;
transition:.3s;
}

.nav-menu-btn:hover,
.nav-back-btn:hover,
.nav-theme-btn:hover{

background:crimson;
transform:scale(1.08);
}

body{

    margin:0;
    padding-top:80px;
}

/*================ NAVBAR MOBILE =================*/

@media (max-width:768px){
.top-navbar{
height:65px;
padding:0 12px;
}
.top-navbar h2{
font-size:19px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
max-width:130px;
text-align:center;
}
.nav-left{
gap:8px;
}
.nav-menu-bt,
.nav-back-btn
.nav-theme-btn{
width:42px;
height:42px;
font-size:20px;
flex-shrink:0;
}
body{
padding-top:70px;
}
}

/*Quote : */
.quote-card{

    width:95%;
    max-width:900px;
    margin:25px auto;
    padding:25px;
    text-align:center;
    border-radius:20px;
    background:linear-gradient(135deg,#181818,#242424);
    border:2px solid crimson;
    box-shadow:0 0 20px rgba(220,20,60,.25);
    transition:.3s;
}

.quote-card:hover{

    transform:translateY(-4px);
    box-shadow:0 0 30px rgba(220,20,60,.45);
}

.quote-card h3{

    color:crimson;
    margin-bottom:15px;
    font-size:24px;
}

.quote-card p{

    color:white;
    font-size:19px;
    font-style:italic;
    line-height:1.6;
    min-height:60px;
}
.fadeQuote{
animation:fadeQuote .8s ease;
}

@keyframes fadeQuote{
from{
opacity:0;
transform:translateY(15px);
}
to{
opacity:1;
transform:translateY(0);
}
}
#dailyQuote{
transition:.4s;
}
#dailyQuote::after{
content:"|";
animation:blink .7s infinite;
color:crimson;
}
@keyframes blink{
50%{
opacity:0;
}
}
/*================ QUOTE CARD MOBILE =================*/

.quote-card{
width:100%;
padding:18px;
margin:20px auto;
border-radius:16px;
}
.quote-card h3{
font-size:20px;
margin-bottom:10px;
}
.quote-card p{
font-size:15px;
line-height:1.5;
min-height:auto;
}
#dailyQuote::after{
display:none;
}

/*Bookmark Button : */

.bookmark-btn{
margin:20px 0;
padding:14px 25px;
font-size:18px;
border:none;
border-radius:12px;
background:#1f1f1f;
color:white;
cursor:pointer;
transition:.3s;
}
.bookmark-btn:hover{
background:crimson;
transform:scale(1.05);
}
.bookmarked{
background:gold;
color:black;
font-weight:bold;
}

/* on hub bookmark : */
.bookmark-preview{
    width:95%;
    max-width:900px;
    margin:25px auto;
    padding:25px;
    border-radius:20px;
    background:linear-gradient(135deg,#1a1a1a,#252525);
    border:2px solid crimson;
    box-shadow:0 0 20px rgba(220,20,60,.25);
}

.bookmark-preview h2{
    color:crimson;
    margin-bottom:20px;
}

.bookmark-item{
    background:#202020;
    color:white;
    padding:15px;
    margin-bottom:12px;
    border-radius:12px;
    cursor:pointer;
    transition:.3s;
}

.bookmark-item:hover{
    background:crimson;
    transform:translateX(8px);
}
/*================ BOOKMARK MOBILE =================*/

@media (max-width:768px){
.bookmark-btn{
width:100%;
padding:12px 18px;
font-size:16px;
border-radius:10px;
margin:15px 0;
}
.bookmark-preview{
width:100%;
padding:18px;
margin:20px auto;
border-radius:16px;
}
.bookmark-preview h2{
font-size:22px;
margin-bottom:15px;
}
.bookmark-item{
padding:12px;
font-size:15px;
border-radius:10px;
margin-bottom:10px;
}
.bookmark-item:hover{
transform:none;
}
}

/* Attractive splash / MAIN page : */

.hero{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
min-height:100vh;
padding:30px;
}

.hero-logo{
width:180px;
margin-bottom:25px;
filter:
drop-shadow(0 0 25px crimson);
animation:
logoFloat 3s infinite ease-in-out;
}

.hero h1{
font-size:70px;
color:white;
margin-bottom:15px;
letter-spacing:2px;
}

.hero-tagline{
font-size:28px;
color:#ff4d4d;
margin-bottom:18px;
font-weight:600;
}

.hero-subtitle{
font-size:20px;
color:#dddddd;
max-width:650px;
line-height:1.7;
margin-bottom:45px;
}

.hero-btn{
padding:18px 45px;
font-size:20px;
border:none;
border-radius:50px;
background:crimson;
color:white;
cursor:pointer;
transition:.3s;
}

.hero-btn:hover{
transform:translateY(-5px);
box-shadow:
0 0 25px crimson;
}

@keyframes logoFloat{
0%{
transform:translateY(0);
}
50%{
transform:translateY(-10px);
}
100%{
transform:translateY(0);
}
}
@media(max-width:768px){

.hero-logo{
width:120px;
margin-bottom:18px;
}
.hero h1{
font-size:46px;
}
.hero-tagline{
font-size:20px;
}
.hero-subtitle{
font-size:16px;
padding:0 10px;
}
.hero-btn{
font-size:18px;
padding:15px 35px;
}
}

/* ---------- Welcome Card ---------- */

.welcome-card{
background:rgba(255,255,255,0.08);
backdrop-filter:blur(12px);
border:1px solid rgba(255,255,255,.15);
border-radius:18px;
padding:22px;
margin-bottom:25px;
text-align:left;
}

.welcome-card h2{
font-size:30px;
margin-bottom:8px;
color:white;
}

.welcome-card p{
font-size:17px;
color:#ddd;
}

/*================ PROFILE =================*/

.profile-card{
width:95%;
max-width:700px;
margin:30px auto;
padding:35px;
background:linear-gradient(135deg,#170000,#2b0000);
border:2px solid crimson;
border-radius:22px;
box-shadow:0 0 25px rgba(255,0,60,.35);
display:flex;
flex-direction:column;
gap:18px;
animation:cardEntry .7s ease;
}

.profile-card h1{
text-align:center;
font-size:38px;
color:white;
margin-bottom:15px;
}

.profile-card input{
padding:14px 18px;
font-size:17px;
border-radius:12px;
border:none;
outline:none;
background:rgba(255,255,255,.08);
color:white;
}

.profile-card input::placeholder{
color:#cccccc;
}

.profile-card button{
padding:15px;
font-size:18px;
font-weight:600;
border:none;
border-radius:14px;
background:crimson;
color:white;
cursor:pointer;
transition:.3s;
}

.profile-card button:hover{
transform:translateY(-3px);
box-shadow:0 10px 20px rgba(220,20,60,.35);
}

/*================ PREMIUM LOADER ================*/

.loader-page{
margin:0;
height:100vh;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;
background:linear-gradient(-45deg,#120000,#250000,#3a0000,#120000);
background-size:400% 400%;
animation:bgMove 8s ease infinite;
}

.premium-loader{
text-align:center;
}

.loader-logo{
width:120px;
height:120px;
object-fit:contain;
animation:loaderLogoFloat 2s ease-in-out infinite;
filter:drop-shadow(0 0 25px crimson);
}

.premium-loader h1{
margin:20px 0 10px;
font-size:46px;
letter-spacing:3px;
color:white;
}

#loadingText{
color:#ddd;
font-size:18px;
margin-bottom:25px;
}

.loader-progress-bar{
width:320px;
height:10px;
background:#333;
border-radius:50px;
overflow:hidden;
margin:auto;
}

.loader-progress-fill{
width:0;
height:100%;
background:linear-gradient(90deg,crimson,#ff5050);
transition:.6s;
}

@keyframes bgMove{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}
@keyframes loaderLogoFloat{
0%,100%{
transform:translateY(0);
}
50%{
transform:translateY(-12px);
}
}

/*=============== ADMIN DASHBOARD ===============*/

.admin-container{
display:flex;
min-height:100vh;
background:#0f0f0f;
}

.admin-sidebar{
width:260px;
background:#121212;
padding:18px;
display:flex;
flex-direction:column;
border-right:1px solid rgba(255,255,255,.08);
}

.admin-logo{
padding:12px 0 28px;
text-align:center;
border-bottom:1px solid rgba(255,255,255,.06);
margin-bottom:22px;
}

.admin-logo img{
width:72px;
transition:.3s;
}
.admin-logo img:hover{
transform:scale(1.08);
}

.admin-logo h2{
color:white;
margin:0;
}

.admin-logo span{
color:crimson;
font-size:15px;
}

.admin-sidebar button{
height:56px;
padding:0 20px;
display:flex;
align-items:center;
gap:15px;
background:#1d1d1d;
border:none;
border-radius:14px;
margin-bottom:12px;
font-size:17px;
color:white;
transition:.3s;
cursor:pointer;
}

.admin-sidebar button:hover{
transform:translateX(6px);
background:#2b2b2b;
}

.admin-sidebar .active{
background:linear-gradient(135deg,#e8124b,#ff295e);
box-shadow:0 0 20px rgba(232,18,75,.35);
}

.admin-main{
flex:1;
padding:35px;
}

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:45px;
}

.top-left h1{
font-size:54px;
font-weight:800;
letter-spacing:-1px;
}

.top-left p{
margin-top:8px;
font-size:22px;
color:#8b8b8b;
}

#adminName{
color:crimson;
font-weight:bold;
}

.top-right{
display:flex;
align-items:center;
gap:20px;
}

.search-box{
display:flex;
align-items:center;
background:#1c1c1c;
padding:0 18px;
width:340px;
height:55px;
border-radius:16px;
border:1px solid rgba(255,255,255,.08);
}

.search-box input{
flex:1;
background:none;
border:none;
outline:none;
color:white;
font-size:16px;
}

.search-box input::placeholder{
color:#888;
}

.search-box span{
font-size:20px;
color:#888;
}

.notification-btn{
position:relative;
width:56px;
height:56px;
border-radius:18px;
background:#1d1d1d;
border:none;
font-size:24px;
cursor:pointer;
transition:.3s;
}

.notification-btn small{
position:absolute;
top:-5px;
right:-5px;
width:22px;
height:22px;
background:crimson;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:12px;
color:white;
}

.notification-btn:hover{
background:crimson;
}

.profile-box{
display:flex;
align-items:center;
gap:15px;
padding:8px 18px;
background:#1d1d1d;
border-radius:18px;
cursor:pointer;
transition:.3s;
}

.profile-box:hover{
background:#252525;
}
.profile-box h4{
margin:0;
font-size:17px;
}
.profile-box p{
margin:2px 0 0;
color:crimson;
font-size:14px;
}

.profile-img{
width:58px;
height:58px;
border-radius:50%;
object-fit:cover;
border:3px solid crimson;
background:#222;
}

.stats-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
margin-top:40px;
}

.stat-card{
background:#181818;
border:1px solid rgba(255,255,255,.08);
border-radius:22px;
padding:35px;
transition:.35s;
cursor:pointer;
}

.stat-card:hover{
transform:translateY(-10px);
box-shadow:0 18px 35px rgba(0,0,0,.35);
border-color:#ff295e;
}

.stat-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}

.stat-icon{
width:58px;
height:58px;
border-radius:16px;
display:flex;
justify-content:center;
align-items:center;
font-size:30px;
background:rgba(232,18,75,.12);
}

.stat-growth{
padding:8px 14px;
border-radius:30px;
background:rgba(0,255,150,.12);
color:#3cff8c;
font-size:14px;
font-weight:bold;
}

.stat-card h3{
font-size:18px;
font-weight:500;
color:#9d9d9d;
margin-bottom:18px;
}

.stat-card h1{
font-size:48px;
margin-bottom:15px;
color:white;
}

.stat-card p{
font-size:15px;
color:#6d6d6d;
}

.quick-actions h2{
color:white;
margin-bottom:20px;
}

.quick-grid{
    
display:grid;
grid-template-columns:repeat(2,1fr);
gap:22px;
margin-top:45px;
}

.action-card{

display:flex;
align-items:center;
gap:18px;
padding:22px;
background:#181818;
border:1px solid rgba(255,255,255,.08);
border-radius:20px;
cursor:pointer;
transition:.3s;
}

.action-card:hover{
transform:translateY(-6px);
border-color:crimson;
}

.action-icon{

width:58px;
height:58px;
display:flex;
justify-content:center;
align-items:center;
font-size:28px;
background:rgba(232,18,75,.12);
border-radius:16px;
}

.action-info{
flex:1;
}

.action-info h3{

margin:0 0 6px;
font-size:18px;
color:white;
}

.action-info p{

margin:0;
font-size:14px;
color:#8a8a8a;
}

.action-card span{

font-size:26px;
color:crimson;
font-weight:bold;
}

/*================ ADMIN PAGE ================*/

body.admin-page{
background:#0f0f0f !important;
background-image:none !important;
}

body.admin-page::before{
display:none !important;
}

body.admin-page::after{
display:none !important;
}

body.admin-page{
background:#0f0f0f;
}

/*================ MOBILE ADMIN =================*/

.mobile-header{
display:none;
}

.admin-overlay{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.55);
backdrop-filter:blur(4px);
z-index:998;
}

/*---------------- PHONE ----------------*/

@media(max-width:768px){
.mobile-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 20px;
background:#111;
border-bottom:1px solid rgba(255,255,255,.08);
position:sticky;
top:0;
z-index:999;
}

.mobile-header h2{
font-size:24px;
font-weight:700;
color:white;
}

.menu-btn{
width:46px;
height:46px;
border:none;
border-radius:12px;
background:#1d1d1d;
color:white;
font-size:24px;
cursor:pointer;
transition:.3s;
}

.menu-btn:hover{
background:crimson;
}

.mobile-profile{
width:42px;
height:42px;
border-radius:50%;
border:2px solid crimson;
object-fit:cover;
}

.admin-container{
display:block;
}

.admin-main{
padding:20px;
}

/* Sidebar */

.admin-sidebar{
position:fixed;
top:0;
left:-280px;
width:260px;
height:100vh;
overflow-y:auto;
transition:.35s;
z-index:1000;
box-shadow:8px 0 30px rgba(0,0,0,.45);
}

.admin-sidebar.show{
left:0;
}

/* Hide desktop topbar */

.topbar{
display:none;
}

/* Cards */

.stats-grid{
grid-template-columns:1fr;
}

.quick-grid{
grid-template-columns:1fr;
}

.search-box{
width:100%;
}
}

/*================ RECENT ACTIVITY ================*/

.recent-section{
margin-top:50px;
}

.section-title{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

.section-title h2{
font-size:28px;
color:white;
}

.section-title span{
color:crimson;
cursor:pointer;
font-size:15px;
}

.activity-card{
display:flex;
align-items:center;
gap:18px;
padding:18px 22px;
background:#181818;
border:1px solid rgba(255,255,255,.08);
border-radius:18px;
margin-bottom:15px;
transition:.3s;
}

.activity-card:hover{
border-color:crimson;
transform:translateY(-3px);
}

.activity-icon{
width:52px;
height:52px;
display:flex;
justify-content:center;
align-items:center;
font-size:24px;
background:rgba(232,18,75,.12);
border-radius:14px;
}

.activity-info{
flex:1;
}

.activity-info h3{
font-size:17px;
margin-bottom:5px;
color:white;
}

.activity-info p{
font-size:14px;
color:#8a8a8a;
}

.activity-card small{
color:#777;
font-size:13px;
}

/*========== COLLAPSIBLE SIDEBAR ==========*/

.collapse-btn{
width:46px;
height:46px;
margin-bottom:20px;
border:none;
border-radius:12px;
background:#1d1d1d;
color:white;
font-size:22px;
cursor:pointer;
transition:.3s;
}

.collapse-btn:hover{
background:crimson;
}

.admin-container{
transition:.35s;
}

.admin-sidebar{
transition:.35s;
}

.admin-main{
transition:.35s;
}

/* Collapsed */

.admin-container.collapsed .admin-sidebar{
width:90px;
}

.admin-container.collapsed .admin-logo{
display:none;
}

.admin-container.collapsed .admin-sidebar button{
font-size:0;
}

.admin-sidebar .icon{
font-size:22px;
width:28px;
display:flex;
justify-content:center;
align-items:center;
flex-shrink:0;
}

.admin-sidebar .label{
transition:.25s;
white-space:nowrap;
}

.admin-container.collapsed .label{
display:none;
}

.admin-container.collapsed .admin-sidebar button{
justify-content:center;
padding:0;
gap:0;
}

.admin-container.collapsed .collapse-btn{
margin-left:auto;
margin-right:auto;
}

.admin-container.collapsed .admin-main{
margin-left:0;
}

/*================ UPLOAD MODAL ================*/

.modal-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.65);
backdrop-filter:blur(6px);
display:none;
justify-content:center;
align-items:center;
z-index:5000;
}

.upload-modal{
width:min(430px,95%);
max-height:90vh;
overflow-y:auto;
background:#181818;
padding:30px;
border-radius:22px;
border:1px solid rgba(255,255,255,.08);
}

.upload-modal h2{
margin-bottom:25px;
text-align:center;
}

.upload-modal input,
.upload-modal select{
width:100%;
padding:14px;
margin-bottom:16px;
background:#242424;
border:none;
border-radius:12px;
color:white;
font-size:16px;
}

.modal-buttons{
display:flex;
justify-content:flex-end;
gap:12px;
margin-top:15px;
}

.modal-buttons button{
padding:12px 22px;
border:none;
border-radius:10px;
cursor:pointer;
}

#uploadPDF{
background:crimson;
color:white;
}

#closeUpload{
background:#333;
color:white;
}

.activity-actions{
display:flex;
align-items:center;
}

.delete-btn{
background:#2b2b2b;
border:none;
color:white;
padding:10px;
border-radius:10px;
cursor:pointer;
transition:.3s;
font-size:16px;
}

.delete-btn:hover{
background:crimson;
transform:scale(1.08);
}

.view-btn{
background:#2b2b2b;
border:none;
color:white;
padding:10px;
border-radius:10px;
cursor:pointer;
transition:.3s;
font-size:16px;
margin-right:8px;
}

.view-btn:hover{
background:#2563eb;
transform:scale(1.08);
}

.edit-btn{
background:#2b2b2b;
border:none;
color:white;
padding:10px;
border-radius:10px;
cursor:pointer;
transition:.3s;
font-size:16px;
margin-right:8px;
}

.edit-btn:hover{
background:#f59e0b;
transform:scale(1.08);
}

/* notes management : */

.notes-manager{
margin-top:35px;
background:#1a1a1a;
padding:25px;
border-radius:18px;
}

.notes-toolbar{
display:flex;
gap:15px;
margin:20px 0;
flex-wrap:wrap;
}

.notes-toolbar input,
.notes-toolbar select{
padding:12px;
background:#242424;
border:none;
border-radius:10px;
color:white;
font-size:15px;
flex:1;
min-width:220px;
}

.notes-table{
width:100%;
border-collapse:collapse;
margin-top:15px;
}

.notes-table th{
padding:15px;
background:#202020;
text-align:left;
}

.notes-table td{
padding:15px;
border-bottom:1px solid #2d2d2d;
}

.notes-table tr:hover{
background:#222;
}

.subjects-manager{
margin-top:35px;
background:#1a1a1a;
padding:25px;
border-radius:18px;
}

.table-wrapper{
overflow-x:auto;
border-radius:14px;
}

/* ========== PASSWORD SECURITY ==========*/

.forgot-password{
    text-align:right;
    margin-top:8px;
}

.forgot-password a{
    color:#3b82f6;
    text-decoration:none;
    cursor:pointer;
}

.forgot-password a:hover{
    text-decoration:underline;
}