:root {
/* Enhanced color palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;

  --surface-primary: #ffffff;
  --surface-secondary: #f8fafc;
  --surface-tertiary: #f1f5f9;

  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;

  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;

  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
    }

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

  html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
    }

  /* Background effects */
  body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: 
  radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
  radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
  radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
    }

  /* Layout */
  .dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
    }

  .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
    }

  /* Header */
  .header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-md) 0;
    }

  .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
    }

  .brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
    }

  .logo {
  height: 48px;
  width: auto;
  object-fit: contain;
    }

  .brand-info h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
    }

  .brand-info p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
    }

  .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
    }

  /* Navigation */
  .nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: auto;
    }

  .btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  text-decoration: none;
    }

  /* Main Content */
  .main-content {
  flex: 1;
  padding: var(--spacing-xl) 0;
    }

  .content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--spacing-xl);
    }

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

  /* Cards Section */
  .section {
  margin-bottom: var(--spacing-xl);
    }

  .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
    }

  .section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
    }

  .section-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
    }

  /* Services Grid */
  .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
    }

  .service-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
    }

  .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
    }

  .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
    }

  .service-card:hover::before {
  opacity: 1;
    }

  .service-card.green::before {
  background: var(--gradient-success);
    }

  .service-card.orange::before {
  background: var(--gradient-warning);
    }

  .service-card.red::before {
  background: var(--gradient-danger);
    }
    
  .service-card.construction {
  position: relative;
  opacity: 0.85;
    }
    
  .service-card.construction::after {
  content: 'UNDER CONSTRUCTION';
  position: absolute;
  top: 10px;
  right: -30px;
  background: var(--accent-warning);
  color: white;
  padding: 4px 30px;
  font-size: 11px;
  font-weight: 700;
  transform: rotate(45deg);
  box-shadow: var(--shadow-md);
    }

  .service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--spacing-md);
  color: white;
  box-shadow: var(--shadow-md);
    }

  .service-icon.blue {
  background: var(--gradient-primary);
    }

  .service-icon.green {
  background: var(--gradient-success);
    }

  .service-icon.orange {
  background: var(--gradient-warning);
    }

  .service-icon.red {
  background: var(--gradient-danger);
    }

  .service-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
    }

  .service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
    }

  .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--spacing-md);
    }

  .tag {
  padding: 4px 10px;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-tertiary);
    }

  .service-url {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 8px 12px;
  background: var(--surface-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  word-break: break-all;
  margin-top: var(--spacing-sm);
    }

  /* Sidebar */
  .sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
    }

  .widget {
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
    }

  .widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
    }

  .widget-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
    }

  /* Status Widget */
  .status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid var(--border-primary);
  transition: all var(--transition-fast);
    }

  .status-item:hover {
  background: var(--surface-tertiary);
  border-color: var(--border-secondary);
    }

  .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 12px;
  background: var(--accent-success);
  position: relative;
    }

  .status-indicator.online {
  background: var(--accent-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

  .status-indicator.offline {
  background: var(--accent-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }

  .status-indicator.checking {
  background: var(--accent-warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  animation: pulse 2s ease-in-out infinite;
    }

  /* Blinking green status indicator */
  .status-indicator.blink-online {
  background: var(--accent-success);
  animation: blink-success 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 1);
    }

  .status-indicator.blink-online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-success);
  opacity: 0.4;
  animation: pulse 2s infinite;
    }

  .status-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
    }

  .status-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
    }

  /* Uptime Bar */
  .uptime-bar {
  height: 8px;
  background: var(--surface-tertiary);
  border-radius: var(--radius-full);
  margin: var(--spacing-lg) 0 var(--spacing-md);
  overflow: hidden;
    }

  .uptime-fill {
  height: 100%;
  background: var(--gradient-success);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  width: 98%;
    }

  .uptime-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
    }

  /* Info Box */
  .info-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
    }

  .info-box.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.2);
    }

  .info-box h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
    }

  .info-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
    }

  /* Footer */
  .footer {
  background: var(--surface-primary);
  border-top: 1px solid var(--border-primary);
  padding: var(--spacing-xl) 0;
  margin-top: auto;
    }

  .footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
    }

  .footer-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
    }

  .footer-info p {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 400px;
    }

  .footer-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
    }

  /* Animations */
  @keyframes blink-success {
  0%, 100% { 
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}
  50% { 
  opacity: 0.7;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
}
    }

  @keyframes pulse {
  0%, 100% {
  opacity: 0.4;
  transform: scale(1);
}
  50% {
  opacity: 0.2;
  transform: scale(1.2);
}
    }

  @keyframes shimmer {
  0% {
  transform: translateX(-100%);
}
  100% {
  transform: translateX(200%);
}
    }

  /* Responsive */
  @media (max-width: 768px) {
.container {
  padding: 0 var(--spacing-md);
}

.header-content {
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-md);
}

.nav {
  margin-left: 0;
  justify-content: center;
}

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

.footer-content {
  flex-direction: column;
  text-align: center;
  gap: var(--spacing-md);
}
    }
