/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #404040; /* Changed to proper gray background */
  color: #ffffff; /* Only white text throughout */
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Dashboard Layout */
.dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-header .header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-header .header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.stat-icon {
  font-size: 2rem;
  color: #ffffff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.stat-icon.online {
  color: #ffffff; /* All icons are white */
}

.stat-icon.offline {
  color: #ffffff; /* All icons are white */
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #ffffff;
  margin-top: 0.25rem;
}

/* Status Grid */
.status-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.status-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.online-count {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
}

.status-text {
  color: #ffffff;
  font-size: 0.9rem;
}

/* Node Cards */
.node-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.node-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.node-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.node-title h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.node-url {
  color: #ffffff;
  font-size: 0.85rem;
  opacity: 0.8;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse 2s infinite;
}

.status-indicator.online .status-dot {
  background: #ffffff;
  animation: none;
}

.status-indicator.offline .status-dot {
  background: #ffffff;
  animation: pulse 1s infinite;
}

/* Node Metrics */
.node-metrics {
  margin-bottom: 1.5rem;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric i {
  color: #ffffff;
  width: 16px;
}

.metric-label {
  font-size: 0.85rem;
  color: #ffffff;
  flex: 1;
}

.metric-value {
  font-weight: 600;
  color: #ffffff;
}

/* Uptime Section */
.uptime-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.uptime-label {
  color: #ffffff;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.uptime-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.uptime-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.uptime-value {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Node Actions */
.node-actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: #000000;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Network Overview */
.network-overview {
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.overview-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.time-selector {
  display: flex;
  gap: 0.5rem;
}

.time-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.time-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.time-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.health-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.health-metric .metric-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.2rem;
}

.metric-info {
  flex: 1;
}

.metric-title {
  color: #ffffff;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.health-metric .metric-value {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.metric-change {
  color: #ffffff;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Recent Activity */
.recent-activity {
  padding: 1.5rem;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.activity-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
}

.activity-icon i {
  color: #ffffff;
}

.activity-content {
  flex: 1;
}

.activity-text {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.activity-time {
  color: #ffffff;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem;
}

.test-loading {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.test-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.test-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
}

.test-result-item.error {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.test-error {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: #ffffff;
  font-size: 0.9rem;
}

.connection-signal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse 2s infinite;
}

.signal-dot.connected {
  background: #ffffff;
  animation: none;
}

.signal-dot.disconnected {
  background: #ffffff;
  animation: pulse 1s infinite;
}

/* Header */
.header {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link i {
  font-size: 0.9rem;
}

/* Analytics Page Styles */
.analytics-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-header .header-left {
  flex: 1;
}

.analytics-header .header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
  opacity: 1;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 500;
}

.analytics-header h1 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.node-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.node-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.node-detail i {
  color: #ffffff;
  width: 16px;
}

.current-status {
  margin-bottom: 0.5rem;
}

.last-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.2rem;
  color: #ffffff;
}

.metric-icon.uptime {
  background: rgba(255, 255, 255, 0.1);
}

.metric-icon.response {
  background: rgba(255, 255, 255, 0.1);
}

.metric-icon.block {
  background: rgba(255, 255, 255, 0.1);
}

.metric-icon.sync {
  background: rgba(255, 255, 255, 0.1);
}

.metric-title {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
}

.metric-value {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-subtitle {
  color: #ffffff;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.metric-trend {
  font-size: 0.8rem;
  font-weight: 500;
}

.metric-trend.positive {
  color: #ffffff;
}

.metric-trend.neutral {
  color: #ffffff;
}

.metric-trend.negative {
  color: #ffffff;
}

/* Time Range Selector */
.time-range-selector {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.selector-header h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: rgba(255, 255, 255, 0.4);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.time-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-container {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.chart-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.chart-container.full-width {
  grid-column: 1 / -1;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-header h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.chart-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.chart-wrapper {
  position: relative;
  height: 300px;
  margin-bottom: 1rem;
}

.chart-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  color: #ffffff;
  font-size: 0.8rem;
  opacity: 0.8;
}

.stat-value {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-value.success {
  color: #ffffff;
}

.stat-value.error {
  color: #ffffff;
}

/* Performance Heatmap */
.heatmap-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #ffffff;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.excellent {
  background: rgba(255, 255, 255, 0.9);
}

.legend-color.good {
  background: rgba(255, 255, 255, 0.7);
}

.legend-color.fair {
  background: rgba(255, 255, 255, 0.5);
}

.legend-color.poor {
  background: rgba(255, 255, 255, 0.3);
}

.legend-color.offline {
  background: rgba(255, 255, 255, 0.1);
}

.heatmap-wrapper {
  margin-top: 1rem;
}

.heatmap-container {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 20px;
}

.heatmap-cell:hover {
  transform: scale(1.1);
  z-index: 10;
  position: relative;
}

.heatmap-cell.excellent {
  background: rgba(255, 255, 255, 0.9);
}

.heatmap-cell.good {
  background: rgba(255, 255, 255, 0.7);
}

.heatmap-cell.fair {
  background: rgba(255, 255, 255, 0.5);
}

.heatmap-cell.poor {
  background: rgba(255, 255, 255, 0.3);
}

.heatmap-cell.offline {
  background: rgba(255, 255, 255, 0.1);
}

.heatmap-empty {
  text-align: center;
  color: #ffffff;
  opacity: 0.6;
  padding: 2rem;
  font-style: italic;
}

/* Detailed Statistics */
.detailed-stats {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stats-section {
  padding: 1.5rem;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-header h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats-period {
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stats-group h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-label {
  color: #ffffff;
  font-size: 0.85rem;
}

.stats-value {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Events Section */
.events-section {
  padding: 1.5rem;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.events-header h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.events-filter select {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.85rem;
}

.events-filter select option {
  background: #404040;
  color: #ffffff;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
}

.event-icon.info {
  background: rgba(255, 255, 255, 0.1);
}

.event-icon.warning {
  background: rgba(255, 255, 255, 0.1);
}

.event-icon.success {
  background: rgba(255, 255, 255, 0.1);
}

.event-icon.error {
  background: rgba(255, 255, 255, 0.1);
}

.event-icon.loading {
  background: rgba(255, 255, 255, 0.1);
}

.event-content {
  flex: 1;
}

.event-text {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.event-time {
  color: #ffffff;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Export Modal */
.export-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .node-cards {
    grid-template-columns: 1fr;
  }

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

  .network-overview {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    flex-wrap: wrap;
  }

  .analytics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

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

  .node-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .heatmap-legend {
    flex-direction: column;
    gap: 0.5rem;
  }

  .heatmap-container {
    grid-template-columns: repeat(12, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }

  .node-card,
  .stat-card {
    padding: 1rem;
  }

  .header {
    padding: 1rem 0;
  }

  .dashboard {
    padding: 1rem 0;
  }

  .analytics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

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

  .node-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .heatmap-legend {
    flex-direction: column;
    gap: 0.5rem;
  }

  .heatmap-container {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
