* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
}

.top-navbar {
  background: rgba(0, 0, 0, 0.95);
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.top-navbar .navbar-brand {
  font-size: 28px;
  font-weight: bold;
  color: #ffc107 !important;
  letter-spacing: 2px;
}

.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  transition: 0.3s ease-in-out;
  z-index: 1001;
  padding-top: 80px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.show {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.sidebar-header h4 {
  color: #ffc107;
  margin: 0;
}

.sidebar-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 5px 0 0;
}

.sidebar .nav-item {
  margin: 5px 0;
}

.sidebar .nav-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  transition: all 0.3s;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 10px;
}

.sidebar .nav-link i {
  width: 25px;
  margin-right: 15px;
  font-size: 18px;
}

.sidebar .nav-link:hover {
  background: #ffc107;
  color: #000;
  transform: translateX(5px);
}

.sidebar .logout-btn {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.sidebar-toggle {
  position: fixed;
  left: 20px;
  top: 80px;
  z-index: 1002;
  background: #ffc107;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
  background: #ffca2c;
  transform: scale(1.05);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.overlay.show {
  display: block;
}

main {
  margin-left: 0;
  padding-top: 80px;
  min-height: 100vh;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

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

.stat-card {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.1),
    rgba(255, 193, 7, 0.05)
  );
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.stat-card h2 {
  color: #ffc107;
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-card h6 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-card h5 {
  color: #ffc107;
  margin-bottom: 20px;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.custom-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.custom-table thead {
  background: #ffc107;
}

.custom-table th {
  color: #1a1a2e;
  border: none;
  padding: 15px;
  font-weight: 700;
  font-size: 14px;
}

.custom-table td {
  color: #1a1a2e;
  border-color: #e0e0e0;
  padding: 12px 15px;
  background: white;
}

.custom-table tbody tr:hover {
  background: #fff8e1;
}

.custom-table tbody tr:hover td {
  background: #fff8e1;
}

footer {
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media (min-width: 992px) {
  main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .sidebar-toggle {
    top: 70px;
    left: 10px;
    width: 40px;
    height: 40px;
  }
  .stat-card h2 {
    font-size: 1.8rem;
  }
}
