*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  min-height:100vh;
  background:#0f172a;
  color:white;
}

.navbar{
  width:100%;
  height:70px;
  background:#111827;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 8%;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.logo{
  font-size:30px;
  font-weight:bold;
  color:#22c55e;
}

.nav-links{
  display:flex;
  gap:30px;
  color:#cbd5e1;
}

.nav-links span{
  cursor:pointer;
  transition:0.3s;
}

.nav-links span:hover{
  color:#22c55e;
}

.container{
  width:1200px;
  max-width:95%;
  margin:50px auto;
  display:flex;
  border-radius:25px;
  overflow:hidden;
  background:#111827;
  box-shadow:0 10px 40px rgba(0,0,0,0.4);
}

.left-panel{
  width:55%;
  padding:70px;
  background:linear-gradient(135deg,#111827,#1e293b);
}

.tag{
  background:#22c55e20;
  color:#22c55e;
  display:inline-block;
  padding:10px 18px;
  border-radius:30px;
  margin-bottom:25px;
}

.left-panel h1{
  font-size:60px;
  margin-bottom:25px;
  line-height:1.2;
}

.left-panel span{
  color:#22c55e;
}

.left-panel p{
  color:#cbd5e1;
  line-height:1.8;
  font-size:18px;
}

.feature-box{
  margin-top:40px;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.feature-card{
  background:#1e293b;
  padding:18px 25px;
  border-radius:15px;
  transition:0.3s;
}

.feature-card:hover{
  transform:translateY(-5px);
}

.right-panel{
  width:45%;
  padding:70px 50px;
}

.right-panel h2{
  font-size:38px;
  margin-bottom:10px;
}

.small-text{
  color:#94a3b8;
  margin-bottom:30px;
}

form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

input,
select{
  padding:16px;
  background:#1e293b;
  border:none;
  border-radius:12px;
  color:white;
  font-size:16px;
}

input::placeholder{
  color:#94a3b8;
}

button{
  padding:16px;
  background:#22c55e;
  border:none;
  border-radius:12px;
  color:white;
  font-size:17px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

button:hover{
  background:#16a34a;
}

.switch-page{
  margin-top:20px;
  color:#94a3b8;
}

.switch-page span{
  color:#22c55e;
  cursor:pointer;
  font-weight:bold;
}

.hidden{
  display:none;
}

#dashboard,
#adminDashboard{
  display:none;
  padding:50px;
}

.dashboard-container{
  display:flex;
  gap:30px;
  flex-wrap:wrap;
  justify-content:center;
}

.profile-card{
  width:300px;
  background:#111827;
  padding:40px 30px;
  border-radius:25px;
  text-align:center;
}

.profile-circle{
  width:100px;
  height:100px;
  margin:auto;
  border-radius:50%;
  background:#22c55e20;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:45px;
  margin-bottom:20px;
}

.profile-card h2{
  margin-bottom:10px;
}

.profile-card p{
  color:#94a3b8;
  margin-bottom:25px;
}

.dashboard-main{
  width:700px;
}

.dashboard-main h1{
  font-size:55px;
  margin-bottom:10px;
}

.dashboard-main p{
  color:#94a3b8;
  margin-bottom:30px;
}

.streak-card{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  padding:35px;
  border-radius:25px;
  margin-bottom:30px;
}

.stats-box{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
}

.stat-card{
  background:#111827;
  padding:30px;
  border-radius:20px;
}

.stat-card h2{
  margin-top:15px;
  color:#22c55e;
}

.analytics-box{
  margin-top:40px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}

.analytics-card{
  background:#111827;
  padding:35px;
  border-radius:20px;
}

.analytics-card h2{
  margin-top:15px;
  font-size:40px;
  color:#22c55e;
}

#userList{
  margin-top:40px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.user-card{
  background:#111827;
  padding:25px;
  border-radius:20px;
}

.delete-btn{
  margin-top:20px;
  background:#ef4444;
}

.delete-btn:hover{
  background:#dc2626;
}

@media(max-width:900px){

  .container{
    flex-direction:column;
  }

  .left-panel,
  .right-panel{
    width:100%;
  }

  .left-panel{
    text-align:center;
  }

  .feature-box{
    justify-content:center;
  }

}
@media(max-width:768px){

  .navbar{
    flex-direction:column;
    height:auto;
    padding:20px;
    gap:15px;
    text-align:center;
  }

  .nav-links{
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
  }

  .container{
    flex-direction:column;
  }

  .left-panel,
  .right-panel{
    width:100%;
    padding:40px 25px;
  }

  .left-panel h1{
    font-size:38px;
  }

  .right-panel h2{
    font-size:30px;
  }

  .dashboard-main h1{
    font-size:38px;
  }

  .profile-card{
    width:100%;
  }

  .dashboard-main{
    width:100%;
  }

  .stats-box{
    grid-template-columns:1fr;
  }

  .analytics-box{
    grid-template-columns:1fr;
  }

  #dashboard,
  #adminDashboard{
    padding:20px;
  }

}

@media(max-width:480px){

  .left-panel h1{
    font-size:30px;
  }

  .left-panel p{
    font-size:15px;
  }

  .feature-card{
    width:100%;
    text-align:center;
  }

  input,
  select,
  button{
    font-size:15px;
    padding:14px;
  }

  .dashboard-main h1{
    font-size:30px;
  }

  .streak-card h1{
    font-size:35px;
  }

  .analytics-card h2{
    font-size:30px;
  }

}
.dashboard-container{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
}

.profile-card{
  width:240px;
  background:#111827;
  padding:25px 20px;
  border-radius:20px;
  text-align:center;
  border:1px solid rgba(255,255,255,0.06);
}

.profile-circle{
  width:70px;
  height:70px;
  margin:auto;
  border-radius:50%;
  background:#22c55e20;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:30px;
  margin-bottom:15px;
}

.profile-card h2{
  font-size:22px;
  margin-bottom:8px;
}

.profile-card p{
  color:#94a3b8;
  margin-bottom:18px;
  font-size:14px;
}

.dashboard-main{
  width:700px;
  max-width:100%;
}

.dashboard-main h1{
  font-size:38px;
  margin-bottom:8px;
}

.dashboard-main p{
  color:#94a3b8;
  margin-bottom:20px;
  font-size:15px;
}

/* SMALL STREAK CARD TOP LEFT */
.streak-card{
  width:220px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  padding:18px;
  border-radius:18px;
  margin-bottom:25px;
}

.streak-card h2{
  font-size:18px;
}

.streak-card h1{
  font-size:28px;
  margin-top:8px;
}

/* STATS */
.stats-box{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:15px;
}

.stat-card{
  background:#111827;
  padding:22px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.06);
  font-size:15px;
}

.stat-card h2{
  margin-top:12px;
  color:#22c55e;
  font-size:24px;
}

/* ADMIN */
.analytics-box{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:15px;
}

.analytics-card{
  background:#111827;
  padding:25px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.06);
  font-size:16px;
}

.analytics-card h2{
  margin-top:12px;
  font-size:30px;
  color:#22c55e;
}

#dashboard,
#adminDashboard{
  padding:35px;
}

#dashboard h1,
#adminDashboard h1{
  font-size:40px;
}

.user-card{
  background:#111827;
  padding:20px;
  border-radius:18px;
  font-size:14px;
}
/* ===== NEW STUDENT DASHBOARD ===== */

#dashboard{
  display:none;
  min-height:100vh;
  background:#0f172a;
  position:relative;
  padding:40px;
}

/* TOP RIGHT PROFILE */
.top-profile{
  position:absolute;
  top:25px;
  right:30px;
  display:flex;
  gap:15px;
  align-items:center;
}

.profile-btn{
  width:55px;
  height:55px;
  border-radius:50%;
  background:#1e293b;
  border:2px solid #22c55e;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:22px;
}

.profile-btn:hover{
  transform:scale(1.08);
}

/* CENTER PAGE */
.dashboard-home{
  min-height:80vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.dashboard-home h1{
  font-size:42px;
  margin-bottom:12px;
}

.dashboard-home p{
  color:#94a3b8;
  font-size:18px;
}

/* SIDEBAR */
.profile-sidebar{
  position:fixed;
  top:0;
  right:-360px;
  width:340px;
  height:100%;
  background:#111827;
  border-left:1px solid rgba(255,255,255,0.08);
  padding:35px 25px;
  transition:0.4s;
  z-index:999;
  overflow:auto;
}

.profile-sidebar.active{
  right:0;
}

.sidebar-top{
  text-align:center;
  margin-bottom:30px;
}

.profile-big{
  width:90px;
  height:90px;
  border-radius:50%;
  background:#22c55e20;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:40px;
  margin:auto;
  margin-bottom:18px;
}

.sidebar-top h2{
  font-size:24px;
}

.sidebar-top p{
  color:#94a3b8;
  margin-top:6px;
}

.profile-stats{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.sidebar-card{
  background:#1e293b;
  padding:20px;
  border-radius:18px;
}

.sidebar-card h3{
  font-size:16px;
  margin-bottom:10px;
}

.sidebar-card p{
  font-size:22px;
  color:#22c55e;
  font-weight:bold;
}

.profile-sidebar button{
  width:100%;
  margin-top:25px;
}

/* MOBILE */
@media(max-width:768px){

  .profile-sidebar{
    width:100%;
    right:-100%;
  }

  .dashboard-home h1{
    font-size:30px;
  }

  .dashboard-home p{
    font-size:15px;
  }

  .profile-btn{
    width:52px;
    height:52px;
    font-size:24px;
  }

}
.resource-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
  margin-top:40px;
}

.resource-card{
  background:#111827;
  border-radius:20px;
  padding:25px;
  text-align:left;
  border:1px solid rgba(255,255,255,0.08);
  transition:0.3s;
}

.resource-card:hover{
  transform:translateY(-5px);
}

.resource-card h2{
  margin-bottom:15px;
  font-size:22px;
}

.resource-card p{
  color:#94a3b8;
  margin-bottom:20px;
  line-height:1.6;
}

.resource-card button{
  width:100%;
}
/* ===========================
   MOBILE RESPONSIVE DESIGN
=========================== */

@media (max-width:768px){

/* Navbar */

.navbar{
    flex-direction:column;
    gap:10px;
    padding:15px;
    text-align:center;
}

.nav-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

/* Login/Register */

.container{
    flex-direction:column;
    width:100%;
    padding:15px;
}

.left-panel,
.right-panel{
    width:100%;
}

.left-panel{
    text-align:center;
    margin-bottom:25px;
}

.feature-box{
    grid-template-columns:1fr;
}

/* Dashboard */

.resource-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

/* Sidebar */

.sidebar{
    width:100%;
    position:relative;
}

.main-content{
    margin-left:0;
    width:100%;
}

/* Tables */

.table-box{
    overflow-x:auto;
}

table{
    min-width:700px;
}

/* Admin Cards */

.analytics-box{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
}

/* Profile */

.profile-sidebar{
    width:100%;
}

/* Buttons */

button{
    width:100%;
}

/* Inputs */

input,
select{
    width:100%;
    box-sizing:border-box;
}

}
/* ===========================
   FOOTER
=========================== */

.footer{
    width:100%;
    background:#111827;
    padding:30px 20px;
    text-align:center;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:15px;

    border-top:1px solid rgba(255,255,255,.08);
}

.footer p{
    margin:0;
    color:#cbd5e1;
    font-size:15px;
    text-align:center;
}

.footer b{
    color:#22c55e;
}

.creatorBtn{
    display:inline-flex;
    justify-content:center;
    align-items:center;

    width:auto;
    min-width:240px;

    padding:14px 28px;

    background:#22c55e;
    color:#fff;

    border:none;
    border-radius:12px;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;
    transition:.3s;
}

.creatorBtn:hover{
    background:#16a34a;
    transform:translateY(-3px);
}

@media(max-width:768px){

.footer{
    padding:25px 15px;
}

.creatorBtn{
    width:90%;
    max-width:300px;
}

}
.creatorModal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.creatorBox{
    width:90%;
    max-width:900px;
    background:#111827;
    border-radius:20px;
    padding:30px;
    text-align:center;
    position:relative;
}

.closeCreator{
    position:absolute;
    top:15px;
    right:20px;
    font-size:35px;
    cursor:pointer;
    color:white;
}

.creatorBox h1{
    color:#22c55e;
}
/* ===== CREATOR POPUP ===== */

.creatorModal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.creatorBox{
    width:90%;
    max-width:1000px;
    max-height:90vh;
    overflow-y:auto;
    background:#111827;
    border-radius:20px;
    padding:30px;
    text-align:center;
}

.closeCreator{
    float:right;
    font-size:35px;
    cursor:pointer;
    color:white;
}

.creatorBox h1{
    color:#22c55e;
    margin-bottom:25px;
}

.sectionTitle{
    color:#38bdf8;
    margin:25px 0 20px;
}

/* Faculty */

.facultyCard{
    width:260px;
    margin:0 auto 40px;
    background:#1e293b;
    padding:20px;
    border-radius:20px;
}

.facultyCard img{
    width:130px;
    height:130px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #22c55e;
}

.facultyCard h3{
    margin-top:15px;
}

.facultyCard p{
    color:#94a3b8;
}

/* Students */

.teamGrid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    justify-items:center;
}

.memberCard{
    width:230px;
    background:#1e293b;
    padding:20px;
    border-radius:20px;
    transition:.3s;
}

.memberCard:hover{
    transform:translateY(-8px);
}

.memberCard img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #22c55e;
}

.memberCard h3{
    margin-top:15px;
    color:white;
}

.memberCard p{
    color:#94a3b8;
}

.creatorFooter{
    margin-top:30px;
    color:#94a3b8;
}

@media(max-width:768px){

.teamGrid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:500px){

.teamGrid{
    grid-template-columns:1fr;
}

}
/* ===== MOBILE RESPONSIVE CREATOR POPUP ===== */

@media (max-width:768px){

    .creatorModal{
        padding:15px;
    }

    .creatorBox{
        width:100%;
        max-width:100%;
        max-height:90vh;
        padding:20px 15px;
        border-radius:15px;
        overflow-y:auto;
    }

    .closeCreator{
        font-size:30px;
        top:10px;
        right:15px;
    }

    .creatorBox h1{
        font-size:28px;
    }

    .sectionTitle{
        font-size:22px;
    }

    .facultyCard{
        width:100%;
        max-width:280px;
        margin:0 auto 25px;
    }

    .facultyCard img{
        width:110px;
        height:110px;
    }

    .teamGrid{
        display:grid;
        grid-template-columns:1fr;
        gap:18px;
    }

    .memberCard{
        width:100%;
        max-width:300px;
        margin:auto;
    }

    .memberCard img{
        width:100px;
        height:100px;
    }

    .memberCard h3{
        font-size:20px;
    }

    .memberCard p{
        font-size:14px;
    }

    .creatorFooter{
        font-size:14px;
    }

}
/* ===========================
   SPLASH SCREEN
=========================== */

#splashScreen{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;
    transition:opacity .6s ease, visibility .6s ease;
}

#splashScreen.hide{
    opacity:0;
    visibility:hidden;
}

.splashContent{
    text-align:center;
    animation:zoomIn .8s ease;
}

.splashLogo{
    width:120px;
    height:120px;
    border-radius:25px;
    margin-bottom:20px;
    box-shadow:0 0 35px rgba(34,197,94,.45);
}

.splashContent h1{
    font-size:48px;
    color:#22c55e;
    margin-bottom:10px;
}

.splashContent p{
    color:#cbd5e1;
    font-size:18px;
    margin-bottom:30px;
}

.loader{
    width:55px;
    height:55px;
    border:5px solid rgba(255,255,255,.2);
    border-top:5px solid #22c55e;
    border-radius:50%;
    margin:auto;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

@keyframes zoomIn{
    from{
        opacity:0;
        transform:scale(.8);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

@media(max-width:768px){

.splashLogo{
    width:90px;
    height:90px;
}

.splashContent h1{
    font-size:34px;
}

.splashContent p{
    font-size:15px;
}

.loader{
    width:45px;
    height:45px;
}

}
.notification-btn{
  width:55px;
  height:55px;
  border-radius:50%;
  background:#1e293b;
  border:2px solid #22c55e;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:22px;
}

.notification-btn:hover{
  transform:scale(1.08);
}

#notificationCount{
  position:absolute;
  top:-5px;
  right:-5px;
  background:red;
  color:white;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:12px;
  font-weight:bold;
}
.closeProfileBtn{
    position:absolute;
    top:15px;
    right:15px;
    width:34px;
    height:34px;
    border-radius:50%;
    border:none;
    background:#ef4444;
    color:#fff;
    font-size:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    z-index:1000;
}

.closeProfileBtn:hover{
    background:#dc2626;
}
@media (max-width:768px){

.top-profile{
  position:fixed;
  top:90px;
  right:15px;
  display:flex;
  gap:12px;
  align-items:center;
  z-index:9999;
}

.dashboard-home{
    padding-top:170px;
}

.dashboard-home h1{
    font-size:28px;
}

}
/* ==========================================
   PROFILE SIDEBAR - CLOSE BUTTON
========================================== */

.closeProfileBtn {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    max-width: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    position: absolute !important;
    top: 15px !important;
    right: 15px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #ef4444 !important;
    color: white !important;

    border: none !important;
    border-radius: 50% !important;

    font-size: 18px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 9999 !important;
}

.closeProfileBtn:hover {
    background: #dc2626 !important;
    transform: scale(1.05);
}