  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', sans-serif;
    }

 body {
  background: #f5f5f7;
  min-height: 100vh;
  color: #111827;
  overflow-x: hidden;
}

.main {
  margin-left: 240px;
  width: calc(100% - 240px);
  padding: 28px 40px;
  overflow-x: hidden;
}

html, body {
  overflow-x: hidden;
}

.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #0b1022 0%, #06091a 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;

overflow-y: auto;
}

.sidebar::-webkit-scrollbar{
   width: 6px;
}

.sidebar::-webkit-scrollbar-thumb{
   background: #374151;
   border-radius: 20px;
}

    .logo {
      padding: 0 24px 25px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .logo h2 {
      font-size: 28px;
      line-height: 1.1;
      font-weight: 800;
    }

    .logo p {
      margin-top: 6px;
      font-size: 13px;
      opacity: 0.7;
    }

    .nav-links {
      padding: 25px 12px;
      flex: 1;
    }

    .nav-links a {
      text-decoration: none;
      color: rgba(255,255,255,0.85);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-radius: 14px;
      margin-bottom: 10px;
      font-size: 15px;
      font-weight: 500;
      transition: 0.3s;
    }

    .nav-links a:hover,
    .nav-links a.active {
      background: linear-gradient(90deg, #2463ff, #377dff);
      box-shadow: 0 8px 20px rgba(37,99,255,0.4);
      color: white;
    }

    .logout {
      padding: 0 12px;
    }

    .logout a {
      text-decoration: none;
      color: rgba(255,255,255,0.8);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-radius: 14px;
      font-weight: 500;
    }

    .main {
      margin-left: 240px;
      width: calc(100% - 240px);
      padding: 28px 40px;
    }

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

    .search-box {
      width: 380px;
      background: white;
      border-radius: 16px;
      padding: 14px 18px;
      border: 1px solid #e5e7eb;
      color: #6b7280;
      font-size: 14px;
    }

    .profile-mini {
       width:42px;
    height:42px;
    border-radius:50%;
    background:#7c3aed;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    }

    .page-title h1 {
      font-size: 38px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .page-title p {
      color: #6b7280;
      font-size: 15px;
      margin-bottom: 28px;
    }

    .hero-card {
      background: linear-gradient(135deg,#2563eb 0%, #7c3aed 55%, #d946ef 100%);
      border-radius: 28px;
      padding: 34px;
      color: white;
      display: flex;
      align-items: center;
      gap: 28px;
      position: relative;
      overflow: hidden;
      min-height: 220px;
      box-shadow: 0 20px 40px rgba(124,58,237,0.25);
    }

    .hero-card::before {
      content: "";
      position: absolute;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: rgba(255,255,255,0.12);
      right: -70px;
      top: -60px;
    }

    .hero-card::after {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      left: -60px;
      bottom: -70px;
    }

    .avatar {
      width: 100px;
      height: 100px;
      border-radius: 24px;
      border: 3px solid rgba(255,255,255,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 42px;
      font-weight: 800;
      backdrop-filter: blur(10px);
      background: rgba(255,255,255,0.12);
      z-index: 2;
    }

    .hero-content {
      z-index: 2;
    }

    .hero-content h2 {
      font-size: 42px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .hero-content span {
      display: block;
      font-size: 16px;
      opacity: 0.85;
      margin-bottom: 5px;
    }

    .hero-content small {
      opacity: 0.7;
      display: block;
      margin-bottom: 24px;
      font-size: 14px;
    }

    .stats {
      display: flex;
      gap: 42px;
      margin-bottom: 22px;
    }

    .stat h3 {
      font-size: 34px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .stat p {
      font-size: 14px;
      opacity: 0.8;
    }

    .joined {
      font-size: 14px;
      opacity: 0.9;
    }

    .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: 28px;
    }

    .card {
      background: white;
      border-radius: 24px;
      padding: 28px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 22px;
    }

    .icon-box {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
    }

    .green { background: #10b981; }
    .pink { background: #d946ef; }
    .blue { background: #3b82f6; }
    .orange { background: #f97316; }

    .card-header h3 {
      font-size: 22px;
      margin-bottom: 4px;
    }

    .card-header p {
      color: #6b7280;
      font-size: 13px;
    }

    .progress-item {
      margin-bottom: 20px;
    }

    .progress-top {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 500;
    }

    .progress {
      width: 100%;
      height: 12px;
      border-radius: 30px;
      background: #ececec;
      overflow: hidden;
    }

    .bar {
      height: 100%;
      border-radius: 30px;
    }

    .bar.green { width: 82%; }
    .bar.blue { width: 68%; }
    .bar.pink { width: 94%; }

    .success-box {
      margin-top: 18px;
      background: #ecfdf5;
      padding: 16px;
      border-radius: 16px;
      color: #10b981;
      font-size: 14px;
      font-weight: 600;
    }

    .stats-list {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .stats-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 15px;
    }

    .stats-row strong {
      font-size: 28px;
    }

    .purple-box {
      margin-top: 20px;
      background: #faf5ff;
      color: #c026d3;
      padding: 16px;
      border-radius: 16px;
      font-size: 14px;
      font-weight: 600;
    }

    .large-card {
      margin-top: 24px;
      background: white;
      border-radius: 24px;
      padding: 28px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    }

    .report-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 0;
      border-bottom: 1px solid #f1f1f1;
    }

    .report-item:last-child {
      border-bottom: none;
    }

    .report-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .report-left h4 {
      font-size: 16px;
      margin-bottom: 6px;
    }

    .report-left p {
      color: #6b7280;
      font-size: 13px;
    }

    .view-btn {
      background: #f3f4f6;
      border: none;
      padding: 10px 18px;
      border-radius: 999px;
      font-weight: 600;
      cursor: pointer;
    }

    .saved-grid {
      margin-top: 24px;
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 20px;
    }

    .saved-card {
      background: white;
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    }

    .saved-card h4 {
      margin-top: 20px;
      font-size: 18px;
      margin-bottom: 10px;
    }

    .saved-card p {
      color: #6b7280;
      font-size: 14px;
    }

   @media (max-width: 992px) {

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

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

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

  .hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    flex-wrap: wrap;
    gap: 20px;
  }

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

  .search-box {
    width: 100%;
  }
}