:root {
  --primary: #0d8fd8;
  --accent: #00bcd4;
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
  --bg-light: #f5f7fa;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --border-color: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(135deg, var(--primary) 0%, #0a6fb8 100%);
  min-height: 100vh;
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h5 {
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.sidebar-header p {
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0 0;
  font-size: 12px;
}

.nav-section {
  padding: 10px 0 20px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid transparent;
  transition: background 0.2s ease, border 0.2s ease;
  font-size: 14px;
}

.nav-link i {
  width: 20px;
  text-align: center;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.16);
  border-left-color: var(--accent);
  color: #fff;
}

/* Topbar */
.topbar {
  background: #fff;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  margin-left: 250px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-left h2 {
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* Main content */
.main-content {
  margin-left: 250px;
  padding: 15px;
}

/* Cards */
.card {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card-header {
  border-bottom: 1px solid var(--bg-light);
  background: #fff;
  border-radius: 12px 12px 0 0;
}

.kpi-card h3, .kpi-card h4 {
  margin: 0;
}

.kpi-icon {
  font-size: 28px;
}

/* Tables */
.table {
  font-size: 13px;
}

.table th {
  font-weight: 600;
  color: var(--text-dark);
}

/* Activity list */
.activity-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.activity-item i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 991.98px) {
  .topbar, .main-content {
    margin-left: 250px;
  }
}

@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .topbar, .main-content {
    margin-left: 0;
  }
  .hamburger {
    display: inline-flex;
  }
}

/* Small utility tweaks */
.badge {
  font-weight: 500;
}
