*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, sans-serif;
}

body{
  background:#f4f5f7;
  display:flex;
  color:rgb(11, 11, 11);
}

/* SIDEBAR */

.sidebar{
  width:290px;
  height:100vh;
  position:fixed;
  left:0;
  top:0;
  background:#111827;
  padding:20px;
  overflow-y:auto;
  border-right:1px solid rgba(255,255,255,0.06);
}

/* LOGO */

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.logo-img{
  width:50px;
  height:50px;
  border-radius:12px;
  object-fit:cover;
}

.logo span{
  font-size:22px;
  font-weight:700;
}

/* PROFILE CARD */

.student-profile-card{
  width:100%;
  background:linear-gradient(145deg,#111827,#1f2937);
  border-radius:22px;
  padding:22px 15px;
  margin:18px 0 24px;
  text-align:center;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.profile-glow{
  position:absolute;
  width:180px;
  height:180px;
  background:radial-gradient(circle, rgba(255,215,0,0.35), transparent 70%);
  top:-80px;
  right:-60px;
}

.student-img{
  width:82px;
  height:82px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid gold;
  margin-bottom:12px;
  position:relative;
  z-index:2;
}

.student-profile-card h3{
  color:white;
  font-size:18px;
  margin-bottom:5px;
}

.course-name{
  color:#cbd5e1;
  font-size:13px;
  margin-bottom:16px;
}

.learner-id{
  color:#facc15;
  font-size:11px;
  letter-spacing:2px;
  margin-bottom:6px;
}

.gold-id{
  font-size:20px;
  font-weight:800;
  background:linear-gradient(
      90deg,
      #ffd700,
      #fff4b0,
      #ffd700,
      #ffcc00
  );
  background-size:300%;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:goldshine 4s linear infinite;
}

@keyframes goldshine{
  0%{
      background-position:0%;
  }
  100%{
      background-position:300%;
  }
}

/* SIDEBAR NAV */

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.sidebar-nav a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  border-radius:16px;
  text-decoration:none;
  color:#d1d5db;
  font-size:15px;
  font-weight:500;
  transition:all .35s ease;
  position:relative;
  overflow:hidden;
}

.sidebar-nav a i{
  font-size:20px;
}

.sidebar-nav a:hover{
  background:rgba(255,215,0,0.08);
  color:#ffd700;
  transform:translateX(6px);
  box-shadow:
      0 0 10px rgba(255,215,0,0.35),
      0 0 25px rgba(255,215,0,0.18),
      inset 0 0 12px rgba(255,215,0,0.08);
}

.sidebar-nav a.active{
  background:linear-gradient(135deg,#ffd700,#ffb700);
  color:#111827;
  font-weight:700;
}

/* MAIN */

.main-content{
  margin-left:290px;
  width:calc(100% - 290px);
  padding:35px;
}

.page-header{
  margin-bottom:40px;
}

.page-header h1{
  font-size:38px;
  margin-bottom:10px;
}

.page-header p{
  color:#94a3b8;
}

/* TOP 3 */

.top-three{
  display:flex;
  justify-content:center;
  align-items:end;
  gap:25px;
  margin-bottom:45px;
}

.top-card{
  width:260px;
  background:#f4f4f5;
  border-radius:28px;
  padding:28px 20px;
  text-align:center;
  position:relative;
  transition:.4s;
  border:1px solid rgba(255,255,255,0.08);
}

.top-card:hover{
  transform:translateY(-10px);
}

.top-card img{
  width:95px;
  height:95px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:15px;
}

.top-card h3{
  margin-bottom:6px;
}

.top-card p{
  color:#94a3b8;
  margin-bottom:15px;
}

.top-card span{
  color:#ffd700;
  font-weight:700;
}

.first{
  transform:scale(1.08);
  border:2px solid gold;
  box-shadow:0 0 30px rgba(255,215,0,0.35);
}

.second{
  border:2px solid silver;
}

.third{
  border:2px solid #cd7f32;
}

.rank-badge{
  position:absolute;
  top:18px;
  right:18px;
  padding:8px 14px;
  border-radius:30px;
  font-size:13px;
  font-weight:700;
}

.gold{
  background:gold;
  color:black;
}

.silver{
  background:silver;
  color:black;
}

.bronze{
  background:#cd7f32;
  color:white;
}

.crown{
  position:absolute;
  top:-18px;
  left:50%;
  transform:translateX(-50%);
  font-size:34px;
  color:gold;
}

/* LIST */

.leaderboard-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.rank-row{
  background:#ffffff;
  border-radius:22px;
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition:.3s;
  border:1px solid rgba(255,255,255,0.06);
}

.rank-row:hover{
  transform:translateX(8px);
  border-color:rgba(255,215,0,0.4);
  box-shadow:0 0 18px rgba(255,215,0,0.15);
}

.rank-left{
  display:flex;
  align-items:center;
  gap:18px;
}

.rank-number{
  width:48px;
  height:48px;
  border-radius:50%;
  background:#bdbdbe;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

.rank-user{
  display:flex;
  align-items:center;
  gap:15px;
}

.rank-user img{
  width:58px;
  height:58px;
  border-radius:50%;
  object-fit:cover;
}

.rank-info h4{
  margin-bottom:4px;
}

.rank-info p{
  color:#94a3b8;
  font-size:14px;
}

.rank-score{
  color:#ffd700;
  font-size:20px;
  font-weight:700;
}

.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #eaeaea;
  height: 100vh;
  position: fixed;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img{
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
}

.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.logo span {
  font-size: 28px;
  font-weight: 700;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

nav a {
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  color: #666;
  font-weight: 500;
  cursor: pointer;
}

nav a.active {
  background: #f2e9ff;
  color: #7c3aed;
}

.profile-box {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.profile h4 {
  font-size: 15px;
}

.profile p {
  font-size: 13px;
  color: #777;
}

.logout {
  width: 100%;
  margin-top: 18px;
  border: 1px solid #e5e5e5;
  background: white;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}

.sidebar-nav{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.sidebar-nav a{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #0c0c0c;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.sidebar-nav a i{
    font-size: 20px;
}

.sidebar-nav a:hover{
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    transform: translateX(6px);
    box-shadow:
        0 0 10px rgba(255,215,0,0.35),
        0 0 25px rgba(255,215,0,0.18),
        inset 0 0 12px rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.25);
}

.sidebar-nav a.active{
    background: linear-gradient(135deg,#ffd700,#ffb700);
    color: #111827;
    font-weight: 700;
    box-shadow:
        0 0 15px rgba(255,215,0,0.45),
        0 0 35px rgba(255,215,0,0.25);
}

.sidebar-nav a::before{
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transition: 0.7s;
}

.sidebar-nav a:hover::before{
    left: 130%;
}
