/* =========================
   BODY
========================= */

body{
  margin:0;
  background:#07132C;
  color:white;
  font-family:'Open Sans',sans-serif;
}

/* =========================
   LAYOUT
========================= */

.student-dashboard{
  display:flex;
  min-height:100vh;
}

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

.student-sidebar{
  width:280px;
  background:#081028;
  border-right:1px solid rgba(255,255,255,0.06);
  position:fixed;
  height:100vh;
  padding:35px 20px;
  overflow-y:auto;
}

.sidebar-logo{
  font-size:42px;
  font-weight:700;
  margin-bottom:40px;
}

.sidebar-logo span{
  color:#6C63FF;
}

.sidebar-menu{
  list-style:none;
  padding:0;
  margin:0;
}

.sidebar-menu li{
  margin-bottom:15px;
}

.sidebar-menu a,
.profile-sidebar-btn,
.sidebar-logout-btn{
  width:100%;
  height:58px;
  border:none;
  display:flex;
  align-items:center;
  padding:0 18px;
  border-radius:18px;
  text-decoration:none;
  color:white;
  background:transparent;
  cursor:pointer;
  font-size:15px;
  transition:0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu .active{
  background:#6C63FF;
}

.profile-sidebar-btn:hover{
  background:#1E293B;
}

.sidebar-logout-btn:hover{
  background:#EF4444;
}

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

.sidebar-footer{
  margin-top:40px;
  background:#13203B;
  padding:25px;
  border-radius:24px;
}

.sidebar-footer h3{
  margin-bottom:12px;
}

.sidebar-footer p{
  color:#CBD5E1;
  line-height:1.7;
}

/* =========================
   MAIN
========================= */

.student-main{
  flex:1;
  margin-left:280px;
  padding:35px;
}

/* =========================
   TOPBAR
========================= */

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

.topbar-search{
  flex:1;
  max-width:500px;
}

.topbar-search input{
  width:100%;
  height:58px;
  border:none;
  outline:none;
  background:#13203B;
  border-radius:18px;
  padding:0 20px;
  color:white;
  font-size:15px;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:25px;
}

.notification-bell{
  position:relative;
  font-size:28px;
  cursor:pointer;
}

.notification-bell span{
  position:absolute;
  top:-10px;
  right:-12px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#EF4444;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
}

.topbar-profile{
  display:flex;
  align-items:center;
  gap:15px;
  cursor:pointer;
}

.topbar-profile img{
  width:60px;
  height:60px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid #6C63FF;
}

.topbar-profile p{
  color:#CBD5E1;
  font-size:14px;
}

/* =========================
   HERO
========================= */

.student-hero{
  background:
  linear-gradient(
    135deg,
    #6C63FF,
    #4F46E5
  );

  border-radius:35px;
  padding:50px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:35px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:38px;
  padding:0 18px;
  border-radius:50px;
  background:rgba(255,255,255,0.18);
  margin-bottom:22px;
}

.hero-left h1{
  font-size:52px;
  margin-bottom:18px;
}

.hero-left p{
  max-width:650px;
  line-height:2;
  color:#E2E8F0;
}

.hero-actions{
  display:flex;
  gap:20px;
  margin-top:35px;
}

.hero-btn{
  height:58px;
  padding:0 28px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:600;
}

.primary-btn{
  background:white;
  color:#111827;
}

.secondary-btn{
  background:rgba(255,255,255,0.15);
  color:white;
}

/* =========================
   HERO PROGRESS
========================= */

.hero-progress{
  width:240px;
  height:240px;
  border-radius:50%;
  background:rgba(255,255,255,0.12);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.progress-circle{
  width:150px;
  height:150px;
  border-radius:50%;
  border:10px solid white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  font-weight:700;
  margin-bottom:20px;
}

/* =========================
   STATS
========================= */

.student-stats{
  display:grid;
  grid-template-columns:
  repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
  margin-bottom:35px;
}

.student-stat-card{
  background:#13203B;
  border-radius:28px;
  padding:30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.student-stat-card h3{
  font-size:42px;
  margin-bottom:10px;
}

.student-stat-card p{
  color:#CBD5E1;
}

.student-stat-card span{
  font-size:42px;
}

/* =========================
   DASHBOARD CARD
========================= */

.dashboard-card{
  background:#13203B;
  border-radius:30px;
  padding:35px;
  margin-bottom:35px;
}

.dashboard-card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
}

.dashboard-card-header h2{
  font-size:34px;
}

.view-all-btn{
  text-decoration:none;
  color:#6C63FF;
  font-weight:600;
}

/* =========================
   COURSE GRID
========================= */

.dashboard-courses-grid,
.continue-learning-grid{
  display:grid;
  grid-template-columns:
  repeat(auto-fit,minmax(320px,1fr));
  gap:25px;
}

/* =========================
   COURSE CARD
========================= */

.dashboard-course-card{
  background:#0F172A;
  border-radius:24px;
  overflow:hidden;
  transition:0.3s;
}

.dashboard-course-card:hover{
  transform:translateY(-8px);
}

.dashboard-course-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.course-content{
  padding:25px;
}

.course-content h3{
  font-size:24px;
  margin-bottom:15px;
}

.course-content p{
  color:#CBD5E1;
  line-height:1.8;
  margin-bottom:20px;
}

.course-progress-bar{
  width:100%;
  height:12px;
  background:#1E293B;
  border-radius:50px;
  overflow:hidden;
  margin-bottom:15px;
}

.course-progress-fill{
  height:100%;
  background:#6C63FF;
}

.course-btn{
  width:100%;
  height:54px;
  border:none;
  border-radius:16px;
  background:#6C63FF;
  color:white;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

/* =========================
   QUICK ACCESS
========================= */

.quick-access-grid{
  display:grid;
  grid-template-columns:
  repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}

.quick-access-card{
  background:#0F172A;
  border-radius:24px;
  padding:35px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  text-decoration:none;
  color:white;
  transition:0.3s;
  font-size:42px;
}

.quick-access-card:hover{
  transform:translateY(-8px);
  background:#6C63FF;
}

.quick-access-card span{
  font-size:16px;
  font-weight:600;
}

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

.profile-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.profile-modal-content{

width:95%;

max-width:700px;

height:85vh;

overflow-y:auto;

background:#13203B;

border-radius:30px;

padding:40px;

position:relative;

display:block !important;

}

/* FORCE SHOW NEW FIELDS */

#studentDob,
#studentCourse,
#studentSkills,
#studentBio{

display:block !important;

visibility:visible !important;

opacity:1 !important;

}

#studentDob,
#studentCourse{

width:100%;

height:58px;

margin-bottom:16px;

}

#studentSkills{

width:100%;

height:90px;

margin-bottom:16px;

}

#studentBio{

width:100%;

height:120px;

margin-bottom:16px;

}

.close-profile-btn{
  position:absolute;
  top:20px;
  right:20px;
  width:45px;
  height:45px;
  border:none;
  border-radius:50%;
  background:#EF4444;
  color:white;
  cursor:pointer;
}

.profile-modal-content h2{
  margin-bottom:30px;
}

.profile-image-wrap{
  text-align:center;
  margin-bottom:30px;
}

.profile-modal-content{

  display:flex;

  flex-direction:column;

}

.profile-image-wrap{

  flex-shrink:0;

}

.profile-grid{

  display:grid !important;

  grid-template-columns:1fr 1fr !important;

  width:100%;

  margin-top:14px;

}

#studentDob,
#studentCourse,
#studentSkills,
#studentBio{

  visibility:visible !important;

  opacity:1 !important;

  position:relative !important;

  z-index:10 !important;

}

#studentDob,
#studentCourse{

  height:58px !important;

}

#studentSkills{

  min-height:90px !important;

}

#studentBio{

  min-height:120px !important;

}

.profile-image-wrap img{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid #6C63FF;
  margin-bottom:20px;
}

.profile-grid{

  display:grid;

  grid-template-columns:1fr 1fr;

  gap:16px;

  margin-bottom:16px;

}

.profile-grid input{

  width:100%;

}

#studentSkills{

  width:100%;

  min-height:90px;

  margin-bottom:16px;

}

#studentBio{

  width:100%;

  min-height:120px;

}

.profile-grid input,
.profile-modal-content textarea{
  width:100%;
  border:none;
  outline:none;
  background:#0F172A;
  border-radius:18px;
  padding:18px;
  color:white;
}

.profile-grid input{
  height:58px;
}

.profile-modal-content textarea{

  width:100%;

  min-height:90px;

  resize:vertical;

  margin-bottom:16px;

}

#studentDob,
#studentCourse{

  display:block !important;

  height:58px !important;

}

#studentSkills{

  display:block !important;

  min-height:90px !important;

}

.profile-grid{

  display:grid !important;

  grid-template-columns:1fr 1fr !important;

  gap:16px !important;

  margin-bottom:16px;

}

.save-profile-btn{
  width:100%;
  height:58px;
  border:none;
  border-radius:18px;
  background:#6C63FF;
  color:white;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

  .student-sidebar{
    display:none;
  }

  .student-main{
    margin-left:0;
    padding:20px;
  }

  .student-hero{
    flex-direction:column;
    gap:40px;
    align-items:flex-start;
  }

}

@media(max-width:768px){

  .student-topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
  }

  .hero-left h1{
    font-size:38px;
  }

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

}

/* ===================== */
/* EXPLORE COURSES */
/* ===================== */

.explore-grid{

display:grid;

grid-template-columns:
repeat(
auto-fill,
minmax(
300px,
1fr
)
);

gap:25px;

margin-top:30px;

}

.explore-card{

background:#071b57;

border-radius:20px;

overflow:hidden;

}

.explore-card img{

width:100%;

height:220px;

object-fit:cover;

}

.explore-content{

padding:20px;

}

.explore-content h3{

margin-bottom:12px;

}

.explore-content p{

color:#bfc8ff;

margin-bottom:20px;

}

.explore-btn{

width:100%;

height:52px;

border:none;

border-radius:12px;

background:#6c63ff;

color:white;

cursor:pointer;

font-size:15px;

font-weight:700;

}


.phone-wrap{
display:flex;
gap:12px;
align-items:center;
width:100%;
}

.phone-wrap input{
flex:1;
}

.verify-btn{

min-width:120px;

height:48px;

border:none;

border-radius:12px;

background:#6C63FF;

color:#fff;

font-weight:700;

cursor:pointer;

}

.verify-btn:hover{

opacity:.9;

}

.otp-wrap{

display:flex;

gap:12px;

margin-top:15px;

}

.otp-wrap input{

flex:1;

}

.phone-status{

margin-top:10px;

font-size:14px;

font-weight:700;

color:#10B981;

}

#recaptcha-container{

margin-top:10px;

}


.phone-row{

display:flex;

gap:12px;

align-items:center;

}

.phone-row input{

flex:1;

}

.verify-btn{

width:120px;

height:50px;

border:none;

border-radius:12px;

background:#6C63FF;

color:#fff;

cursor:pointer;

}

.otp-row{

display:flex;

gap:12px;

}

.otp-row input{

flex:1;

}

#phoneStatus{

color:#1ED760;

font-size:14px;

font-weight:700;

margin-top:10px;

}