/* Modern Minimalist Design System (Apple/Samsung Style) */
:root {
  /* Color Palette */
  --primary-color: #0071e3; /* Apple Blue */
  --secondary-color: #5e5ce6; /* Soft Purple */
  --accent-color: #34c759; /* Apple Green */
  --warning-color: #ff9f0a; /* Apple Orange */
  --danger-color: #ff3b30; /* Apple Red */
  --success-color: #34c759;
  
  /* Backgrounds */
  --bg-primary: #eef1f5; /* Darker, cooler background */
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7); /* More transparent for glass effect */
  --bg-glass-dark: rgba(28, 28, 30, 0.75);
  
  /* Text */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73; /* Darker secondary text for better contrast */
  --text-light: #ffffff;
  
  /* Borders & Shadows */
  --border-color: rgba(0, 0, 0, 0.0); 
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  
  /* Layout */
  --border-radius: 24px; /* Larger, smoother corners */
  --border-radius-lg: 32px;
  --header-height: 60px;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth Apple-like easing */
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { 
  height: 100%; 
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  /* Premium subtle gradient background to reduce whiteness */
  background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.08), transparent 40%), 
              radial-gradient(circle at bottom left, rgba(94, 92, 230, 0.08), transparent 40%),
              linear-gradient(135deg, #f2f6fa 0%, #e3e8ef 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Header - Glassmorphism */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-right: 12px;
}

/* Buttons - Pill Shape */
.header-btn, .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px; /* Pill shape */
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.header-btn.primary, .action-btn.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.header-btn.primary:hover, .action-btn.primary:hover {
  background-color: #0077ed; /* Slightly lighter blue */
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}

.header-btn.secondary, .action-btn.secondary {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.header-btn.secondary:hover, .action-btn.secondary:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Dashboard Layout */
.dashboard {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
}

/* Cards - Clean & Minimal */
.eeg-section, .info-card, .cell {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%); /* Subtle gradient */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.6); /* Glassy border */
  overflow: hidden;
}

.eeg-section:hover, .info-card:hover, .cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* EEG Section */
.eeg-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header i {
  color: var(--primary-color);
  font-size: 24px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--success-color);
  font-weight: 600;
  background: rgba(52, 199, 89, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success-color);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}

.status-dot.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.eeg-container {
  /* flex: 1; Removed to prevent flex growth */
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%); /* Subtle gradient */
  border-radius: 20px;
  position: relative;
  height: 600px; /* Fixed height to prevent infinite loop */
  padding: 24px; /* Restore padding */
  overflow: hidden;
  display: block; /* Ensure block formatting context */
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.eeg-displays {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  width: 100%;
}

.eeg-display {
  position: relative;
  width: 100%;
  height: calc(50% - 12px); /* Explicit height accounting for gap */
  min-height: 0;
  flex: 0 0 auto; /* Prevent flex growing/shrinking */
  overflow: hidden;
}

.eeg-display canvas {
  display: block; /* Prevent inline spacing issues */
  width: 100% !important;
  height: 100% !important;
}

/* Info Panel */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.info-card i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 16px;
  background: rgba(0, 113, 227, 0.08);
  padding: 16px;
  border-radius: 50%;
}

.info-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card p {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.action-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
}

.action-btn i {
  font-size: 18px;
}

/* Focus Therapy Grid */
.health-interface.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
  max-width: 1200px; /* Increased from 1000px to match dashboard */
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: pointer;
  position: relative;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 32px;
  height: 300px; /* Fixed height for consistency */
}

.cell:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.icon-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: var(--transition);
}

.cell i {
  font-size: 48px;
  transition: var(--transition);
}

/* Category Colors - Subtle Pastels */
.hydration .icon-container { background-color: rgba(0, 113, 227, 0.08); }
.hydration i { color: var(--primary-color); }

.climate .icon-container { background-color: rgba(94, 92, 230, 0.08); }
.climate i { color: var(--secondary-color); }

.toilet .icon-container { background-color: rgba(255, 159, 10, 0.08); }
.toilet i { color: var(--warning-color); }

.sos .icon-container { background-color: rgba(255, 59, 48, 0.08); }
.sos i { color: var(--danger-color); }

.cell h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.cell p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* Progress Bar */
.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  background: var(--primary-color);
  width: 0%;
  transition: width 0.3s ease;
}

/* Notifications Pane */
.notification-pane {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-pane[style*="display: block"] {
  transform: translateX(0);
  display: flex !important;
}

.notification-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-notification {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.close-notification:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.notification-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.notification-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 16px;
  position: relative;
  transition: var(--transition);
}

.notification-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.notification-item i {
  font-size: 20px;
  margin-top: 2px;
}

.notification-success i { color: var(--success-color); }
.notification-info i { color: var(--primary-color); }
.notification-warning i { color: var(--warning-color); }
.notification-danger i { color: var(--danger-color); }

.notification-text {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

.notification-time {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.notification-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.notification-item:hover .notification-remove {
  opacity: 1;
}

.notification-clear-all {
  padding: 20px;
  text-align: center;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--danger-color);
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  
  .eeg-container {
    min-height: 400px;
  }
  
  .health-interface.grid-2x2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cell {
    aspect-ratio: auto;
    padding: 32px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 24px;
  }
  
  .icon-container {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .cell i {
    font-size: 28px;
  }
  
  .subtitle {
    display: none;
  }
  
  .notification-pane {
    width: 100%;
  }
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(180%);
  padding: 20px 32px;
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 5000;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  width: auto;
  min-width: 320px;
  max-width: 90%;
}

.pwa-install-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.install-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.install-icon {
  background: var(--primary-color);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.install-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.install-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

.install-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.install-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.install-btn.primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.install-btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

/* Notification Button in Header */
.notification-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.5); /* Glassy background */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  padding: 10px 20px; /* Larger padding */
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notification-btn i {
  font-size: 18px;
  color: var(--text-primary);
}

.notification-btn span {
  display: inline-block;
}

@media (max-width: 768px) {
  .notification-btn span {
    display: none; /* Hide text on mobile */
  }
  .notification-btn {
    padding: 12px;
    border-radius: 50%; /* Circle on mobile */
  }
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--danger-color);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Universal Modal System */
.modern-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  animation: fadeInModal 0.4s ease-out;
}

.modern-modal-content {
  background: rgba(255, 255, 255, 0.95); /* More opaque */
  backdrop-filter: blur(50px) saturate(180%);
  border-radius: 32px; /* More rounded */
  padding: 0; /* Reset padding for internal layout */
  max-width: 440px;
  width: 90%;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: slideInModal 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modern-modal-header {
  padding: 40px 40px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.modern-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.modern-modal-icon.info { background: rgba(0, 113, 227, 0.1); color: var(--primary-color); }
.modern-modal-icon.success { background: rgba(52, 199, 89, 0.1); color: var(--success-color); }
.modern-modal-icon.warning { background: rgba(255, 159, 10, 0.1); color: var(--warning-color); }
.modern-modal-icon.error { background: rgba(255, 59, 48, 0.1); color: var(--danger-color); }
.modern-modal-icon.question { background: rgba(94, 92, 230, 0.1); color: var(--secondary-color); }

.modern-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modern-modal-body {
  padding: 0 40px 32px 40px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modern-modal-footer {
  padding: 24px 40px 40px 40px;
  width: 100%;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.modern-modal-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modern-modal-btn.primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.modern-modal-btn.primary:hover {
  background: #0077ed;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

.modern-modal-btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.modern-modal-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

.modern-modal-btn.danger {
  background: var(--danger-color);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.modern-modal-btn.danger:hover {
  background: #ff453a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4);
}

.modern-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modern-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInModal {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Startup Overlay */
.startup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.15), transparent 50%), 
              radial-gradient(circle at bottom left, rgba(94, 92, 230, 0.15), transparent 50%),
              linear-gradient(135deg, #f2f6fa 0%, #e3e8ef 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.startup-overlay.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

.startup-content {
  text-align: center;
  max-width: 600px;
  padding: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.startup-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  animation: pulse-icon 2s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(0, 113, 227, 0.4); }
}

.startup-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.startup-content p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-weight: 400;
}

.startup-btn {
  background: var(--primary-color);
  border: none;
  color: white;
  padding: 18px 48px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
  font-family: inherit;
}

.startup-btn:hover {
  background: #0077ed;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.4);
}

.startup-btn:active {
  transform: translateY(0) scale(0.98);
}

.startup-status {
  margin-bottom: 40px;
  margin-top: 40px;
}

.startup-status p {
  margin-bottom: 0;
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 500;
}

.calibration-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 113, 227, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
