/* import modern premium typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Dynamic Branding Colors - Fallbacks */
  --primary-color: #0052cc;
  --secondary-color: #e6f0ff;
  --primary-rgb: 0, 82, 204;
  --secondary-rgb: 230, 240, 255;
  
  /* System Colors */
  --emergency-color: #e11d48;
  --emergency-rgb: 225, 29, 72;
  --success-color: #10b981;
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --border-color: #e2e8f0;
  
  /* Cards & Roundness */
  --radius-lg: 1.5rem; /* 24px */
  --radius-md: 1rem;  /* 16px */
  --radius-sm: 0.5rem; /* 8px */
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadow Elevation */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

/* Page Preloader styling */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--secondary-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

/* Utility buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  outline: none;
  font-size: 0.95rem;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background-color: rgba(var(--primary-rgb), 0.9);
  box-shadow: 0 6px 20px 0 rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(var(--primary-rgb), 0.15);
}

.btn-emergency {
  background-color: var(--emergency-color);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(var(--emergency-rgb), 0.3);
}

.btn-emergency:hover {
  background-color: rgba(var(--emergency-rgb), 0.9);
  box-shadow: 0 6px 20px 0 rgba(var(--emergency-rgb), 0.4);
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
