/* ================= RESET ================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html{
  scroll-behavior: smooth;
}

body{
  background: #0b1a22;
  color: #fff;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ================= SIDEBAR ================= */

.sidebar{
  position: fixed;
  left: 0;
  top: 0;

  width: 260px;
  height: 100vh;

  background: rgba(5, 18, 26, 0.88);
  backdrop-filter: blur(18px);

  border-right: 1px solid rgba(255,255,255,0.08);

  display: flex;
  flex-direction: column;

  padding: 20px;

  transition: 0.4s ease;
  z-index: 1000;
}

/* LOGO */
.logo-area{
  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 40px;
}

.logo-area img{
  width: 80px;
  transition: 0.3s ease;
}

.logo-area img:hover{
  transform: scale(1.05);
}

/* MENU */
.sidebar-menu{
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* LINKS */
.sidebar-menu a{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 12px;

  color: #cfd8dc;
  text-decoration: none;

  font-size: 0.95rem;

  transition: 0.3s ease;
}

.sidebar-menu a i{
  font-size: 1.2rem;
}

.sidebar-menu a:hover{
  background: rgba(255, 204, 0, 0.12);
  color: #ffcc00;
  transform: translateX(5px);
}

/* ACTIVE */
.sidebar-menu a.active{
  background: #ffcc00;
  color: #0b1a22;
  font-weight: 600;
}

/* LOGOUT */
.logout-btn{
  margin-top: auto;

  padding: 12px;

  border: none;
  border-radius: 12px;

  background: rgba(255,0,0,0.1);
  color: #ff4d4d;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 0.95rem;
  font-weight: 500;

  transition: 0.3s ease;
}

.logout-btn:hover{
  background: #ff4d4d;
  color: #fff;
}

/* ================= MAIN ================= */

.main-content{
  margin-left: 260px;
  width: calc(100% - 260px);

  padding: 30px;
  padding-top: 40px;
}

/* TOPBAR */
.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-bottom: 30px;
}

.topbar h1{
  font-size: 1.9rem;
  font-weight: 700;
}

.topbar p{
  color: #9fb3bd;
  font-size: 0.95rem;
  margin-top: 5px;
}

.topbar-right{
  display: flex;
  align-items: center;
  gap: 18px;
}

/* SEARCH */
.search-box{
  display: flex;
  align-items: center;
  gap: 10px;

  background: rgba(255,255,255,0.06);

  padding: 12px 16px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.08);

  min-width: 250px;
}

.search-box i{
  color: #ffcc00;
  font-size: 1.1rem;
}

.search-box input{
  background: transparent;
  border: none;
  outline: none;

  color: #fff;
  width: 100%;
}

.search-box input::placeholder{
  color: #8ea2ac;
}

/* PROFILE */
.profile img{
  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: 2px solid #ffcc00;

  object-fit: cover;
}

/* ================= STATS ================= */

.stats-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;

  margin-bottom: 40px;
}

.stat-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  padding: 22px;
  border-radius: 18px;

  display: flex;
  align-items: center;
  gap: 15px;

  transition: 0.3s ease;
}

.stat-card:hover{
  transform: translateY(-5px);
  background: rgba(255,204,0,0.08);
  border-color: rgba(255,204,0,0.3);
}

.stat-card h3{
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.stat-card p{
  color: #9fb3bd;
  font-size: 0.92rem;
}

.stat-icon{
  width: 50px;
  height: 50px;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i{
  font-size: 1.5rem;
}

.yellow{
  background: rgba(255,204,0,0.15);
  color: #ffcc00;
}

.blue{
  background: rgba(0,150,255,0.15);
  color: #00aaff;
}

.dark{
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ================= COURSES ================= */

.section-title{
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.section-title h2{
  font-size: 1.4rem;
}

.section-title a{
  color: #ffcc00;
  text-decoration: none;
  font-weight: 500;
}

.section-title a:hover{
  text-decoration: underline;
}

.courses-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* COURSE CARD */
.course-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  padding: 20px;
  border-radius: 18px;

  transition: 0.3s ease;

  position: relative;
  overflow: hidden;
}

.course-card::before{
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: #ffcc00;
}

.course-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,204,0,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.course-card img{
  width: 100%;
  height: 170px;

  object-fit: cover;

  border-radius: 14px;

  margin-bottom: 16px;
}

.course-card h3{
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.course-card p{
  font-size: 0.92rem;
  color: #9fb3bd;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* PROGRESS */
.progress-area{
  margin-bottom: 18px;
}

.progress-text{
  display: flex;
  justify-content: space-between;

  margin-bottom: 8px;

  font-size: 0.85rem;
  color: #cfd8dc;
}

.progress-bar{
  width: 100%;
  height: 8px;

  background: rgba(255,255,255,0.08);
  border-radius: 999px;

  overflow: hidden;
}

.progress{
  height: 100%;
  width: 35%;

  background: #ffcc00;
  border-radius: 999px;
}

/* BUTTON */
.course-card .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 11px 16px;
  border-radius: 12px;

  background: #ffcc00;
  color: #0b1a22;

  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;

  transition: 0.3s ease;
}

.course-card .btn:hover{
  transform: scale(1.05);
}

/* EMPTY STATE */
.empty-course{
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);

  padding: 40px 20px;
  border-radius: 18px;

  text-align: center;
}

.empty-course i{
  font-size: 3rem;
  color: #ffcc00;

  margin-bottom: 15px;
}

.empty-course h3{
  margin-bottom: 10px;
}

.empty-course p{
  color: #9fb3bd;
  margin-bottom: 20px;
}

.empty-course a{
  display: inline-block;

  padding: 12px 18px;

  background: #ffcc00;
  color: #0b1a22;

  text-decoration: none;
  border-radius: 12px;

  font-weight: 700;
}

/* ================= MOBILE TOGGLE ================= */

.menu-toggle{
  display: none;

  position: fixed;
  top: 18px;
  left: 18px;

  width: 48px;
  height: 48px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;

  align-items: center;
  justify-content: center;

  font-size: 1.7rem;
  color: #ffcc00;

  z-index: 1002;

  cursor: pointer;

  transition: 0.3s ease;
}

.menu-toggle:hover{
  transform: scale(1.05);
}

/* OVERLAY */
.overlay{
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  z-index: 998;
}

.overlay.active{
  opacity: 1;
  visibility: visible;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px){

  .sidebar{
    left: -260px;
  }

  .sidebar.active{
    left: 0;
  }

  .menu-toggle{
    display: flex;
  }

  .main-content{
    margin-left: 0;
    width: 100%;

    padding: 20px;
    padding-top: 90px;
  }

  .topbar{
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right{
    width: 100%;
    justify-content: space-between;
  }

  .search-box{
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 600px){

  .topbar h1{
    font-size: 1.5rem;
  }

  .stats-grid{
    grid-template-columns: 1fr;
  }

  .courses-grid{
    grid-template-columns: 1fr;
  }

  .profile img{
    width: 42px;
    height: 42px;
  }
}

.continue-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;

  background: #ffcc00;
  color: #0b1a22;

  border-radius: 12px;

  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;

  transition: 0.3s ease;
}

.continue-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 204, 0, 0.25);
}

