/* Algebras AI Brand Colors and Typography */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f8f9fa;
  --accent-color: #0066cc;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --border-color: #e9ecef;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Header Styling */
.header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.header h1 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 2rem;
  margin: 0;
  text-align: center;
}

/* Logo Styling */
.logo {
  max-height: 60px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: brightness(1) contrast(1);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.button, .btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, #0052a3 100%);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.3);
  background: linear-gradient(135deg, #0052a3 0%, var(--accent-color) 100%);
}

/* Endpoint Cards */
.endpoint {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.endpoint:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.endpoint-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.endpoint-group {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Status Indicators */
.status-up {
  color: var(--success-color);
  font-weight: 600;
}

.status-down {
  color: var(--danger-color);
  font-weight: 600;
}

.status-unknown {
  color: var(--warning-color);
  font-weight: 600;
}

/* Response Time and Uptime */
.response-time {
  background: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
  margin: 0.5rem 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

.uptime {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

/* Charts and Graphs */
.chart {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--secondary-color);
  border-radius: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .button, .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .endpoint {
    margin: 0.5rem 0;
    padding: 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #ffffff;
    --secondary-color: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
  }
  
  body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  }
  
  .header {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
  }
  
  .endpoint {
    background: #2d2d2d;
    border-color: var(--border-color);
  }
  
  .logo {
    filter: brightness(1.2) contrast(1.1);
  }
}
