@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f7f7fb;
  display: flex;
  color: #111;
}

/* SIDEBAR */

.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;
}



/* ACTIVE COURSE */

.active-course-link{
  text-decoration:none;
  display:block;
  margin-top:20px;
}

.active-course-card{
  background:#ffffff;
  border:2px solid #ede9fe;
  border-radius:24px;
  padding:28px;
  transition:0.3s ease;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

.active-course-card:hover{
  transform:translateY(-4px);
  border-color:#7c3aed;
  box-shadow:0 20px 40px rgba(124,58,237,0.12);
}

.course-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:22px;
}

.course-icon{
  width:65px;
  height:65px;
  border-radius:20px;
  background:#f3e8ff;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7c3aed;
  font-size:30px;
}

.course-progress{
  background:#ede9fe;
  color:#7c3aed;
  padding:10px 18px;
  border-radius:50px;
  font-size:14px;
  font-weight:700;
}

.active-course-card h3{
  font-size:30px;
  color:#111827;
  margin-bottom:14px;
}

.active-course-card p{
  color:#6b7280;
  line-height:1.7;
  margin-bottom:24px;
}

.progress-bar{
  width:100%;
  height:12px;
  background:#f3f4f6;
  border-radius:50px;
  overflow:hidden;
  margin-bottom:24px;
}

.progress-fill{
  width:65%;
  height:100%;
  background:linear-gradient(90deg,#7c3aed,#a855f7);
  border-radius:50px;
}

.course-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.course-footer span{
  color:#6b7280;
  font-weight:600;
}

.course-footer button{
  background:linear-gradient(90deg,#7c3aed,#9333ea);
  border:none;
  color:white;
  padding:12px 24px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  transition:0.3s;
}

.course-footer button:hover{
  transform:scale(1.04);
}


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%;
}

/* MAIN */

.main {
  margin-left: 260px;
  width: calc(100% - 260px);
  padding: 24px 34px;
}

/* TOPBAR */

.topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.xp-pill {
  background: white;
  border: 1px solid #eee;
  padding: 10px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
}

/* HERO */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
}

.hero p {
  color: #777;
  margin-top: 8px;
}

.explore-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(90deg,#7c3aed,#9333ea);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease;
}

.explore-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.25);
}

/* STATS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
}

.stat-card p {
  color: #777;
  margin-bottom: 10px;
}

.stat-card h2 {
  font-size: 42px;
}

.icon {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.blue {
  background: #dbeafe;
  color: #2563eb;
}

.green {
  background: #d1fae5;
  color: #10b981;
}

.orange {
  background: #ffedd5;
  color: #f97316;
}

.purple {
  background: #ede9fe;
  color: #7c3aed;
}

/* ACHIEVEMENT */

.achievement-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid #eee;
  margin-bottom: 30px;
}

.achievement-left h3 {
  margin-bottom: 8px;
}

.achievement-left p {
  color: #777;
}

.level-box {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.level-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.xp-text {
  color: #8b5cf6;
  font-weight: 700;
}

.badges {
  display: flex;
  gap: 12px;
}

.badge {
  width: 100px;
  height: 100px;
  background: #f5f5f5;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  gap: 8px;
}

.active-badge {
  border: 2px solid #8b5cf6;
  background: white;
  color: #7c3aed;
}

/* CONTENT */

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.continue-card,
.chart-card,
.job-pref,
.jobs,
.rank-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #eee;
}

.continue-card {
  padding: 28px;
}

.continue-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.continue-header a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
}

.continue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 30px;
  text-align: center;
}

.continue-empty i {
  font-size: 70px;
  color: #64748b;
  margin-bottom: 20px;
}

.continue-empty p {
  color: #777;
  max-width: 400px;
  margin: 15px 0 25px;
}

.continue-empty button {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
}

/* EVENTS */

.events-section {
  margin-top: 30px;
}

.events-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tabs button {
  border: none;
  background: transparent;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.active-tab {
  background: #ede9fe !important;
  color: #7c3aed;
}

#map {
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #eee;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  padding: 18px;
}

.event-tag {
  padding: 6px 12px;
  border-radius: 30px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.online {
  background: #2563eb;
}

.offline {
  background: #ea580c;
}

.event-content h3 {
  margin: 16px 0 10px;
}

.event-content p {
  color: #777;
  margin-bottom: 16px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #777;
  font-size: 14px;
}

.chips {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.chips span {
  background: #f3f4f6;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 13px;
}

/* RIGHT */

.rank-card {
  padding: 28px;
  background: linear-gradient(180deg, #f3e8ff, #ede9fe);
}

.rank-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #111827;
  color: white;
  font-size: 40px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  border: 6px solid #9333ea;
}

.rank-card h2 {
  text-align: center;
}

.rank-card p {
  color: #666;
  text-align: center;
  margin-top: 12px;
}

.rank-stats {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rank-stats div {
  display: flex;
  justify-content: space-between;
}

.rank-card button,
.job-pref button {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white;
  padding: 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
}

.job-pref {
  margin-top: 24px;
  padding: 24px;
}

.job-pref p {
  color: #777;
  margin: 8px 0 20px;
}

.job-pref label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
  font-size: 14px;
}

.job-pref select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.jobs {
  margin-top: 24px;
  padding: 24px;
}

.jobs h3 {
  margin-bottom: 18px;
}

.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 16px;
  margin-bottom: 16px;
}

.job-card p {
  color: #777;
  margin: 6px 0;
}

.job-card span {
  color: #10b981;
  font-weight: 700;
}

/* CHART */

.chart-card {
  margin-top: 30px;
  padding: 28px;
}

.chart-head p {
  color: #777;
  margin-top: 8px;
}

canvas {
  margin-top: 30px;
}

/* RESPONSIVE */

@media(max-width:1400px) {

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-cards {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media(max-width:1100px) {

  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

}

@media(max-width:768px) {

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .event-cards {
    grid-template-columns: 1fr;
  }

  .achievement-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .badges {
    flex-wrap: wrap;
  }

}

/* SEARCH */

.search-wrapper {
  width: 450px;
  background: white;
  border-radius: 14px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 18px;
  position: relative;
}

.search-wrapper i {
  color: #777;
  font-size: 20px;
}

.search-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  padding: 16px;
  font-size: 15px;
  background: transparent;
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 18px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 999;
  display: none;
}

.search-item {
  padding: 16px 18px;
  border-bottom: 1px solid #f3f3f3;
  cursor: pointer;
  transition: 0.2s;
}

.search-item:hover {
  background: #f7f3ff;
}

.search-item h4 {
  margin-bottom: 5px;
}

.search-item p {
  font-size: 13px;
  color: #777;
}

/* HYBRID */

.hybrid {
  background: #7c3aed;
}

.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;
    position: relative;
    z-index: 2;
}

.course-name{
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.learner-id{
    color: #facc15;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.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;
    position: relative;
    z-index: 2;
}

@keyframes goldshine{
    0%{
        background-position: 0%;
    }
    100%{
        background-position: 300%;
    }
}