@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root, html[data-theme="light"] {
  --bg-base: #f4f5f7;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8f9fa;

  --text-primary: #111214;
  --text-secondary: #4c525d;
  --text-muted: #788190;

  --accent-primary: #e53935;
  --accent-hover: #c62828;
  
  --status-critical: #e53935;
  --status-warning: #ffb300;
  --status-success: #00a859;
  --status-info: #0073e6;
  --status-inactive: #97a0af;

  --border-color: #dcdfe4;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;

  --font-family-base: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Courier New', monospace;

  --card-shadow: 0 15px 35px rgba(9, 30, 66, 0.12);
  --input-bg: #ffffff;
  --btn-google-bg: #ffffff;
  --btn-google-text: #3c4043;
  --btn-google-border: #dadce0;
  --btn-google-hover: #f8f9fa;
  --modal-overlay: rgba(9, 30, 66, 0.4);
  --loading-overlay: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] {
  --bg-base: #0a0a0c;
  --bg-surface: #141418;
  --bg-surface-elevated: #1e1e24;

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0ab;
  --text-muted: #6b6b76;

  --accent-primary: #ff4d4d;
  --accent-hover: #ff6666;
  
  --status-critical: #ff4d4d;
  --status-warning: #ffca28;
  --status-success: #00cc6a;
  --status-info: #32ade6;
  --status-inactive: #8e8e93;

  --border-color: #2c2c35;

  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  --input-bg: #0a0a0c;
  --btn-google-bg: #1e1e24;
  --btn-google-text: #ffffff;
  --btn-google-border: #2c2c35;
  --btn-google-hover: #26262e;
  --modal-overlay: rgba(10, 10, 12, 0.85);
  --loading-overlay: rgba(10, 10, 12, 0.85);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-family-base);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.5px;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.font-mono {
  font-family: var(--font-family-mono);
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}