.dashboard {
  display: flex;
  min-height: 100vh;
  margin: 0;
}

.dashboard-menu {
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: #ffffff;
  padding: 30px 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-menu button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dashboard-menu button:hover {
  background: #f5f7fa;
}

.dashboard-menu button.active {
  background: #111827;
  color: white;
}

.dashboard-content {
  margin-left: 250px;
  padding: 40px;
  flex: 1;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.section input {
  display: block;
  width: 100%;
  margin: 8px 0 15px;
  padding: 10px;
}

.data-list {
  list-style: none;
  padding-left: 0;
}

.data-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.table-container {
  margin-top: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  text-align: left;
  font-size: 14px;
  color: #666;
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
}

table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 14px;
}

.badge {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-success { background: #e6f7ec; color: #1e8e3e; }
.badge-warning { background: #fff4e5; color: #e67e22; }
.badge-secondary { background: #f0f0f0; color: #555; }
.badge-danger { background: #fdecea; color: #d93025; }

.empty-state {
  margin-top: 15px;
  color: #888;
}
.dashboard-header {
  margin-bottom: 30px;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 22px;
}

.subtext {
  color: #6b7280;
  font-size: 14px;
}
.table-container h3 {
  margin-bottom: 20px;
}

table tr:hover {
  background: #fafafa;
}
.logout-btn {
  margin-top: auto;
  background: #fee2e2;
  color: #b91c1c;
  padding: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.logout-btn:hover {
  background: #fecaca;
}
.sidebar-logo h2 {
  color: black;
  margin-bottom: 40px;
  font-size: 20px;
}

.sidebar-logo span {
  color: #3b82f6;
}
/* Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sidebar-nav button,
.nav-link {
  text-decoration: none;
  color: #d1d5db;
  padding: 12px 14px;
  border-radius: 6px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar-nav button:hover,
.nav-link:hover {
  background: #1f2937;
  color: white;
}

.sidebar-nav button.active {
  background: #3b82f6;
  color: white;
}
.actions {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.actions button {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
/* ===== TOPBAR ===== */
.topbar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  margin: -40px -40px 30px -40px;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Search */
.search-box {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  padding: 8px 14px;
  border-radius: 8px;
  width: 300px;
}

.search-box i {
  margin-right: 8px;
  color: #6b7280;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/* Right side */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Icon buttons */
.icon-btn {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: #4b5563;
  transition: 0.2s;
}

.icon-btn:hover {
  background: #f3f4f6;
}

/* Profile mini */
.profile-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
body.dark {
  background: #111827;
  color: #f3f4f6;
}

body.dark .dashboard-menu {
  background: #1f2937;
}

body.dark .dashboard-menu button,
body.dark .nav-link {
  color: #d1d5db;
}

body.dark .dashboard-menu button.active {
  background: #2563eb;
}

body.dark .dashboard-content {
  background: #111827;
}

body.dark .topbar {
  background: #1f2937;
  border-color: #374151;
}

body.dark .service-card,
body.dark .table-container,
body.dark .actions {
  background: #1f2937;
  color: white;
}

body.dark table tr:hover {
  background: #1f2937;
}
/* ===== RESPONSIVE ===== */

.menu-toggle {
  display: none;
  font-size: 20px;
  border: none;
  background: none;
  cursor: pointer;
  margin-right: 15px;
}

/* Tablet */
@media (max-width: 1024px) {
  .dashboard-menu {
    width: 220px;
  }

  .dashboard-content {
    margin-left: 220px;
    padding: 25px;
  }

  .search-box {
    width: 200px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .dashboard-menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 260px;
    transition: 0.3s ease;
    z-index: 100;
  }

  .dashboard-menu.active {
    left: 0;
  }

  .dashboard-content {
    margin-left: 0;
    padding: 20px;
  }

  .search-box {
    width: 100%;
  }

  .topbar {
    padding: 0 15px;
  }

  .service-grid {
    grid-template-columns: 1fr !important;
  }

  table {
    font-size: 12px;
  }
}
form input,
form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.track-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.track-box input {
  flex: 1;
  padding: 10px;
}

.track-box button {
  padding: 10px 20px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
}

.tracking-card {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
}
.dashboard-menu {
  overflow-y: auto;
}
/* ===== Layout ===== */

.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  margin-bottom: 25px;
}

body.dark .card {
  background: #1f2937;
}

/* ===== Buttons ===== */

.btn-primary {
  background: #2563eb;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger {
  background: #dc2626;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* ===== Profile ===== */

.profile-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.form-section input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* ===== Data Grid ===== */

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

.data-item {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

body.dark .data-item {
  background: #111827;
}

/* ===== Preferences ===== */

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

/* ===== Billing ===== */

.plan-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

body.dark .plan-badge {
  background: #1e3a8a;
  color: #93c5fd;
}

/* ===== Danger Zone ===== */

.danger-zone {
  border: 1px solid #fee2e2;
  background: #fff5f5;
}

body.dark .danger-zone {
  background: #3f1d1d;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

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