body {
  background: #f4f7fb;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.sidebar {
  height: 100vh;
  background: linear-gradient(180deg, #111827, #1f2937);
  color: white;
  position: fixed;
  width: 260px;
  padding: 25px;
}

.sidebar h2 {
  font-weight: bold;
  margin-bottom: 40px;
}

.sidebar .nav-link {
  color: #d1d5db;
  margin-bottom: 12px;
  border-radius: 12px;
  padding: 12px 16px;
  transition: 0.3s ease;
  font-size: 15px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(255,255,255,0.1);
  color: white;
  transform: translateX(4px);
}

.main-content {
  margin-left: 260px;
  padding: 30px;
}

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

.search-box {
  background: white;
  border-radius: 15px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  width: 320px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  margin-left: 10px;
}

.card-dashboard {
  border: none;
  border-radius: 24px;
  padding: 22px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.bg-purple {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.bg-blue {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.bg-green {
  background: linear-gradient(135deg, #059669, #10b981);
}

.bg-orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.chart-card {
  background: white;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-box img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

@media(max-width: 992px){

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

  .main-content {
    margin-left: 0;
  }

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

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