/* CSS Custom Properties - Global Variables */
:root {
  /* Colors */
  --primary-blue: #9BDDFF;
  --primary-blue-dark: #8BD3FF;
  --primary-blue-light: rgba(155, 221, 255, 0.1);

  /* Workbench palette — the "lab record" system used on the project library.
     accent-ink is a readable blue for text/links/active states, since the pale
     --primary-blue fails contrast when used as a foreground color. */
  --ink: #16181d;
  --ink-soft: #3d434d;
  --ink-mute: #6b7280;
  --canvas: #f4f6f8;
  --paper: #ffffff;
  --line: #e7eaee;
  --accent: var(--primary-blue);
  --accent-ink: #0b6fa4;
  --accent-ink-dark: #095c88;
  --accent-wash: #eaf7ff;
  /* Grays */
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #adb5bd;
  --gray-400: #6c757d;
  --gray-500: #495057;
  --gray-600: #333;
  --gray-700: #212529;

  /* Status Colors */
  --success: #28a745;
  --success-light: #d4edda;
  --success-dark: #155724;
  --warning: #ffc107;
  --warning-light: #fff3cd;
  --warning-dark: #856404;
  --danger: #dc3545;
  --danger-light: #f8d7da;
  --danger-dark: #721c24;
  --info: #17a2b8;
  --info-light: #d1ecf1;
  --info-dark: #0c5460;

  /* Background */
  /*--bg-body: radial-gradient(circle, rgba(155, 221, 255, 1) 0%, rgba(238, 242, 243, 1) 75%);*/
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;

  /* Typography */
  --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-mono: "Courier New", "Consolas", "Monaco", monospace;
  --font-family-base: var(--font-family-sans); /* Default font for the app */
  --font-size-tiny: 0.7rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 1.75rem;
  --font-size-huge: 4rem;
  --line-height-base: 1.5;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-xxl: 2rem;
  --spacing-huge: 4rem;

  /* Small pixel measurements */
  --size-tiny: 4px;
  --size-small: 10px;
  --size-medium: 12px;
  --size-icon: 24px;
  --size-button: 40px;

  /* Component widths */
  --width-sidebar-narrow: 180px;
  --width-sidebar-medium: 200px;
  --width-sidebar-wide: 250px;

  /* Borders */
  --border-width: 1px;
  --border-color: var(--gray-200);
  --border-radius: 0.375rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-pill: 50rem;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-primary: 0 4px 8px rgba(155, 221, 255, 0.3);
  --shadow-dropdown: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-base: all 0.2s ease;

  /* Z-index */
  --z-index-sticky: 1020;
  --z-index-modal: 1050;

  /* Layout */
  --container-max-width: 1200px;
  --container-wide-max-width: 1400px;
  --sidebar-width: 280px;

  /* Animation */
  --animation-spin: spin 1s linear infinite;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
