/* Nuusletta editor - Base Styles */

:root { 
  /* Brand Colors */
  --hsbc-red: #0B2647;
  --hsbc-red-dark: #041121;
  --hsbc-red-light: #4A6BA3;
  --hsbc-red-bg: #F0F4F8;
  
  /* Neutral Palette */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-150: #E8EDF4;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Semantic Colors */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --error: #EF4444;
  --error-bg: #FEF2F2;
  
  /* Gray Theme - Primary UI Color System */
  --primary: #1E293B;
  --primary-dark: #0F172A;
  --primary-light: #334155;
  --primary-bg: #F1F5F9;
  
  /* Typography */
  --font-sans: 'Segoe UI', 'Calibri', 'Arial', 'Helvetica', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius - Uniformly optimized */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;        /* Standard for all buttons */
  --radius-md: 0.5rem;     /* Unified with --radius */
  --radius-lg: 0.5rem;     /* Unified with --radius */
  --radius-xl: 1rem;       /* Only for special containers */
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body { 
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  padding: var(--space-8) var(--space-6) var(--space-6) var(--space-6);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Grid */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) 0 var(--space-4);
}

.main-grid { 
  display: grid; 
  grid-template-columns: 380px 1fr; 
  gap: var(--space-6); 
  align-items: start;
}

/* Utilities */
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.font-mono { font-family: var(--font-mono); }

.grid-2 { 
  display: grid; 
  grid-template-columns: 1fr auto; 
  gap: var(--space-3); 
  align-items: center;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Premium Focus-Styles for better accessibility */
*:focus-visible {
  outline: 2px solid var(--hsbc-red) !important;
  outline-offset: 2px !important;
  border-radius: var(--radius) !important;
}

/* Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined.size-16 {
  font-size: 16px;
}
.material-symbols-outlined.size-18 {
  font-size: 18px;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
