.dashboard {
  min-height: 100vh;
  background: var(--primary);
  color: white;
}

.dashboard-header {
  background: var(--primary-dark);
  border-bottom: 1px solid var(--primary-light);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-brand i {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.dashboard-brand h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.dashboard-clock {
  font-size: 1.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.dashboard-main {
  padding: 32px;
}

.view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--primary-light);
  border-radius: var(--radius);
  width: fit-content;
}

.view-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-tab:hover {
  color: white;
}

.view-tab.active {
  background: var(--accent);
  color: white;
}

.view-tab i {
  width: 16px;
  height: 16px;
}

/* Grid View */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.station-card {
  background: var(--primary-light);
  border: 1px solid var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
}

.station-card:hover {
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.station-card.online {
  border-color: var(--success);
}

.station-card.offline {
  border-color: var(--danger);
}

.station-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.station-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.station-card.online .station-icon {
  background: var(--success-bg);
  color: var(--success);
}

.station-card.offline .station-icon {
  background: var(--danger-bg);
  color: var(--danger);
}

.station-icon i {
  width: 24px;
  height: 24px;
}

.station-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.station-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.station-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.video-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--primary-dark);
  margin-top: 16px;
}

/* List View */
.list-view .data-table {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.list-view .data-table th {
  background: var(--primary-dark);
  color: var(--text-muted);
  border-bottom-color: var(--primary-dark);
}

.list-view .data-table td {
  color: white;
  border-bottom-color: var(--primary-dark);
}

.list-view .data-table tr:hover td {
  background: var(--primary-dark);
}

/* Map View */
.map-view {
  height: calc(100vh - 200px);
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
}

#map {
  width: 100%;
  height: 100%;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--primary-light);
  border: 1px solid var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  color: var(--accent);
}

.stat-icon i {
  width: 24px;
  height: 24px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 16px 20px;
  }
  
  .dashboard-main {
    padding: 20px;
  }
  
  .dashboard-brand h1 {
    font-size: 1rem;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
  }
  
  .stations-grid {
    grid-template-columns: 1fr;
  }
}
