/* Personal Site Color Palette */
/* 
 * Semantic Color Definitions:
 * 
 * LIGHT MODE:
 * - Light Shades (#F7F6F4 - Pampas): Background colors, light surfaces
 * - Light Accent (#DDC85F - Equator): Accent elements, highlights, secondary buttons
 * - Brand Primary (#7F65DC - Medium Purple): Main brand color, primary UI elements
 * - Dark Accent (#969EA5 - Regent Gray): Secondary text, muted content
 * - Dark Shades (#334388 - Chambray): Headers, navigation, primary dark elements
 * - Text Dark (#475569): Body text on white/light backgrounds
 * 
 * DARK MODE:
 * - Background Dark (#0f172a): Main background
 * - Surface Dark (#1e293b): Cards, elevated surfaces
 * - Text Light (#f1f5f9): Body text on dark backgrounds
 * - Text Muted (#94a3b8): Secondary text on dark
 * - Text Bright (#f8fafc): Headers, emphasized text on dark
 */

:root {
  /* Light Mode Color Variables (Default) */
  --color-light-shades: #F7F6F4;
  --color-light-accent: #DDC85F;
  --color-brand-primary: #7F65DC;
  --color-dark-accent: #969EA5;
  --color-dark-shades: #334388;
  --color-text-dark: #475569;
  
  /* Dark Mode Color Variables */
  --color-background-dark: #0f172a;
  --color-surface-dark: #1e293b;
  --color-text-light: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-bright: #f8fafc;
  
  /* Error Colors */
  --color-error: #ef4444;
  --color-error-light: #fca5a5;
  --color-error-bg: rgba(239, 68, 68, 0.1);
  --color-error-border: rgba(239, 68, 68, 0.3);
  
  /* Hover state variations */
  --color-dark-shades-hover: #2a3670;
  --color-light-accent-hover: #d4be50;
  --color-surface-dark-hover: #334155;
  
  /* Transparent variations */
  --color-brand-primary-light: rgba(127, 101, 220, 0.1);
  --color-brand-primary-hover: rgba(127, 101, 220, 0.2);
  --color-light-accent-transparent: rgba(221, 200, 95, 0.2);
  
  /* Dark mode transparent variations */
  --color-brand-primary-light-dark: rgba(127, 101, 220, 0.15);
  --color-brand-primary-hover-dark: rgba(127, 101, 220, 0.25);
}

/* Container max-width override for Tailwind CDN */
.container {
  max-width: 1280px !important;
}

/* Background Colors */
.bg-light-shades { background-color: var(--color-light-shades); }
.bg-light-accent { background-color: var(--color-light-accent); }
.bg-brand-primary { background-color: var(--color-brand-primary); }
.bg-dark-accent { background-color: var(--color-dark-accent); }
.bg-dark-shades { background-color: var(--color-dark-shades); }

/* Text Colors */
.text-light-shades { color: var(--color-light-shades); }
.text-light-accent { color: var(--color-light-accent); }
.text-brand-primary { color: var(--color-brand-primary); }
.text-dark-accent { color: var(--color-dark-accent); }
.text-dark-shades { color: var(--color-dark-shades); }
.text-dark { color: var(--color-text-dark); }

/* Border Colors */
.border-light-shades { border-color: var(--color-light-shades); }
.border-light-accent { border-color: var(--color-light-accent); }
.border-brand-primary { border-color: var(--color-brand-primary); }
.border-dark-accent { border-color: var(--color-dark-accent); }
.border-dark-shades { border-color: var(--color-dark-shades); }

/* Button Styles */
.btn-primary {
  background-color: var(--color-dark-shades);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  transform: scale(1);
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background-color: var(--color-dark-shades-hover);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--color-light-accent);
  color: var(--color-dark-shades);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  transform: scale(1);
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  background-color: var(--color-light-accent-hover);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark-shades);
}

/* Body Text Default */
body {
  background-color: var(--color-light-shades);
  color: var(--color-text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
.dark body {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: var(--color-text-bright);
}

/* Card Styles */
.card-primary {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border: 1px solid var(--color-light-accent);
  transition: all 0.3s;
}

.card-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .card-primary {
  background-color: var(--color-surface-dark);
  border-color: rgba(221, 200, 95, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .card-primary:hover {
  background-color: var(--color-surface-dark-hover);
  border-color: var(--color-light-accent);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.card-accent {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border: 1px solid var(--color-brand-primary);
  transition: all 0.3s;
}

.card-accent:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .card-accent {
  background-color: var(--color-surface-dark);
  border-color: rgba(127, 101, 220, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .card-accent:hover {
  border-color: var(--color-brand-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Nav Hover Underline Effect */
.nav-underline {
  position: relative;
  padding: 0.5rem 0.75rem;
}

.nav-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-underline:hover::after {
  transform: scaleX(1);
}

/* Gradient Backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-light-shades) 0%, var(--color-light-accent) 50%, var(--color-brand-primary) 100%);
}

.dark .gradient-primary {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(127, 101, 220, 0.2) 50%, rgba(221, 200, 95, 0.2) 100%);
}

.gradient-subtle {
  background: linear-gradient(135deg, rgba(247, 246, 244, 0.8) 0%, rgba(221, 200, 95, 0.15) 100%);
}

.dark .gradient-subtle {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(221, 200, 95, 0.1) 100%);
}

/* Icon Backgrounds */
.icon-bg-brand {
  background-color: var(--color-brand-primary-light);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.dark .icon-bg-brand {
  background-color: var(--color-brand-primary-light-dark);
}

.icon-bg-accent {
  background-color: var(--color-light-accent-transparent);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.dark .icon-bg-accent {
  background-color: rgba(221, 200, 95, 0.15);
}

/* Mobile Menu Hover */
.mobile-menu-item {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.mobile-menu-item:hover {
  background-color: var(--color-brand-primary-hover);
}

.dark .mobile-menu-item:hover {
  background-color: var(--color-brand-primary-hover-dark);
}

/* Utility: Full viewport height section */
.section-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Dark Mode Text Color Overrides */
.dark .text-dark {
  color: var(--color-text-light);
}

.dark .text-dark-accent {
  color: var(--color-text-muted);
}

.dark .text-dark-shades {
  color: var(--color-text-bright);
}

/* Dark Mode Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--color-brand-primary-hover);
}

.dark .theme-toggle:hover {
  background-color: var(--color-brand-primary-hover-dark);
}

/* Glassmorphism Navigation */
.nav-glass {
  background-color: rgba(51, 67, 136, 0.8); /* Dark Shades with transparency */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127, 101, 220, 0.2); /* Brand Primary subtle border */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.dark .nav-glass {
  background-color: rgba(15, 23, 42, 0.85); /* Background Dark with transparency */
  border-bottom: 1px solid rgba(127, 101, 220, 0.3);
}

/* ===================================== */
/* Scrollbar Styles */
/* ===================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
/* Light Mode Scrollbar */
::-webkit-scrollbar-track {
  background: var(--color-light-shades);
  border-radius: 10px;
  margin: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-dark-accent);
  border-radius: 10px;
  border: 2px solid var(--color-light-shades);
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark-shades);
}

::-webkit-scrollbar-thumb:active {
  background: var(--color-brand-primary);
}

/* Dark Mode Scrollbar */
.dark ::-webkit-scrollbar-track {
  background: var(--color-background-dark);
  border-radius: 10px;
  margin: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 10px;
  border: 2px solid var(--color-background-dark);
  transition: background-color 0.3s ease;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-primary);
}

.dark ::-webkit-scrollbar-thumb:active {
  background: var(--color-light-accent);
}

/* Corner where horizontal and vertical scrollbars meet */
::-webkit-scrollbar-corner {
  background: var(--color-light-shades);
}

.dark ::-webkit-scrollbar-corner {
  background: var(--color-background-dark);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-dark-accent) var(--color-light-shades);
}

.dark * {
  scrollbar-color: var(--color-text-muted) var(--color-background-dark);
}

/* Smooth scrolling for all elements */
html {
  scroll-behavior: smooth;
}

/* ===================================== */
/* Input Element Styles */
/* ===================================== */

/* Base Input Styles (Light Mode) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  background-color: white;
  color: var(--color-text-dark);
  border: 1px solid var(--color-dark-accent);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-primary-light);
  outline: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--color-dark-accent);
  opacity: 0.7;
}

/* Dark Mode Input Styles */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="tel"],
.dark input[type="url"],
.dark input[type="search"],
.dark textarea,
.dark select {
  background-color: var(--color-surface-dark);
  color: var(--color-text-light);
  border-color: rgba(127, 101, 220, 0.3); /* Brand Primary with transparency */
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="number"]:focus,
.dark input[type="tel"]:focus,
.dark input[type="url"]:focus,
.dark input[type="search"]:focus,
.dark textarea:focus,
.dark select:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px var(--color-brand-primary-light-dark);
  background-color: var(--color-surface-dark-hover);
}

.dark input[type="text"]::placeholder,
.dark input[type="email"]::placeholder,
.dark input[type="password"]::placeholder,
.dark input[type="number"]::placeholder,
.dark input[type="tel"]::placeholder,
.dark input[type="url"]::placeholder,
.dark input[type="search"]::placeholder,
.dark textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* Input hover states */
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
input[type="url"]:hover:not(:focus),
input[type="search"]:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
  border-color: var(--color-brand-primary);
}

.dark input[type="text"]:hover:not(:focus),
.dark input[type="email"]:hover:not(:focus),
.dark input[type="password"]:hover:not(:focus),
.dark input[type="number"]:hover:not(:focus),
.dark input[type="tel"]:hover:not(:focus),
.dark input[type="url"]:hover:not(:focus),
.dark input[type="search"]:hover:not(:focus),
.dark textarea:hover:not(:focus),
.dark select:hover:not(:focus) {
  border-color: rgba(127, 101, 220, 0.5);
  background-color: var(--color-surface-dark-hover);
}

/* ===================================== */
/* Project Card Styles */
/* ===================================== */

.project-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border: 2px solid var(--color-brand-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-brand-primary-light) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(127, 101, 220, 0.1);
  border-color: var(--color-brand-primary);
}

.project-card:active {
  transform: translateY(-2px);
}

.project-card > div {
  position: relative;
  z-index: 1;
}

/* Dark Mode Project Card */
.dark .project-card {
  background-color: var(--color-surface-dark);
  border-color: rgba(127, 101, 220, 0.4);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark .project-card::before {
  background: linear-gradient(135deg, var(--color-brand-primary-light-dark) 0%, transparent 100%);
}

.dark .project-card:hover {
  background-color: var(--color-surface-dark-hover);
  border-color: var(--color-brand-primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(127, 101, 220, 0.2);
}

/* Mobile-specific project card adjustments */
@media (max-width: 640px) {
  .project-card {
    padding: 1rem;
  }
  
  .project-card:hover {
    transform: translateY(-2px);
  }
}

/* Static Project Card (for non-clickable cards like "Coming Soon") */
.project-card-static {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border: 2px solid var(--color-brand-primary);
  opacity: 0.8;
}

.dark .project-card-static {
  background-color: var(--color-surface-dark);
  border-color: rgba(127, 101, 220, 0.4);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .project-card-static {
    padding: 1rem;
  }
}

/* ===================================== */
/* Badge Styles */
/* ===================================== */

/* Development Badge */
.badge-development {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
  transition: all 0.2s ease;
}

.dark .badge-development {
  background-color: var(--color-brand-primary-light-dark);
  color: var(--color-light-accent);
  border: 1px solid rgba(127, 101, 220, 0.3);
}

.dark .badge-development:hover {
  background-color: var(--color-brand-primary-hover-dark);
  border-color: var(--color-brand-primary);
}

/* ===================================== */
/* Mobile-Specific Improvements */
/* ===================================== */

/* Better touch targets for mobile */
@media (max-width: 640px) {
  /* Ensure buttons have minimum touch-friendly size */
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    min-height: 44px; /* iOS recommended touch target */
  }
  
  /* Mobile-optimized card padding */
  .card-primary,
  .card-accent {
    padding: 1rem;
  }
  
  /* Icon backgrounds - slightly smaller on mobile */
  .icon-bg-brand,
  .icon-bg-accent {
    padding: 0.5rem;
  }
  
  /* Mobile navigation improvements */
  .mobile-menu-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Better text readability on small screens */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  
  /* Improved form elements on mobile */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 44px;
  }
}

/* Small mobile devices (max 375px - iPhone SE, etc) */
@media (max-width: 375px) {
  /* Even more compact spacing */
  .card-primary,
  .card-accent {
    padding: 0.875rem;
  }
  
  /* Smaller buttons on very small screens */
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* Compact icon backgrounds */
  .icon-bg-brand,
  .icon-bg-accent {
    padding: 0.5rem;
  }
  
  .icon-bg-brand svg,
  .icon-bg-accent svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Tablet breakpoint adjustments */
@media (min-width: 641px) and (max-width: 768px) {
  /* Optimize for tablet portrait */
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ===================================== */
/* Toast Notification System */
/* ===================================== */

/* Toast Container - Fixed at top right */
.toast-container {
  position: fixed;
  top: 5rem; /* Below the fixed header */
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}

@media (max-width: 640px) {
  .toast-container {
    top: 4.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
}

/* Toast Base Styles */
.toast {
  pointer-events: auto;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-left: 4px solid;
  animation: slideInRight 0.3s ease-out, fadeIn 0.3s ease-out;
  transition: all 0.3s ease;
}

.toast.toast-exit {
  animation: slideOutRight 0.3s ease-out, fadeOut 0.3s ease-out;
}

@media (max-width: 640px) {
  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* Dark Mode Toast Base */
.dark .toast {
  background-color: var(--color-surface-dark);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Toast Icon Container */
.toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
}

/* Toast Content */
.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  color: var(--color-dark-shades);
}

.dark .toast-title {
  color: var(--color-text-bright);
}

.toast-message {
  font-size: 0.875rem;
  color: var(--color-text-dark);
  word-wrap: break-word;
}

.dark .toast-message {
  color: var(--color-text-light);
}

/* Toast Close Button */
.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-dark-accent);
  opacity: 0.6;
  transition: opacity 0.2s;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.toast-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
}

.dark .toast-close {
  color: var(--color-text-muted);
}

.dark .toast-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Toast Types */

/* Success Toast */
.toast-success {
  border-left-color: #10b981; /* Green */
}

.toast-success .toast-icon {
  background-color: #d1fae5;
  color: #059669;
}

.dark .toast-success .toast-icon {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Error Toast */
.toast-error {
  border-left-color: #ef4444; /* Red */
}

.toast-error .toast-icon {
  background-color: #fee2e2;
  color: #dc2626;
}

.dark .toast-error .toast-icon {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Warning Toast */
.toast-warning {
  border-left-color: var(--color-light-accent); /* Light Accent */
}

.toast-warning .toast-icon {
  background-color: var(--color-light-accent-transparent);
  color: #d97706;
}

.dark .toast-warning .toast-icon {
  background-color: rgba(221, 200, 95, 0.2);
  color: var(--color-light-accent);
}

/* Info Toast */
.toast-info {
  border-left-color: var(--color-brand-primary); /* Brand Primary */
}

.toast-info .toast-icon {
  background-color: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
}

.dark .toast-info .toast-icon {
  background-color: var(--color-brand-primary-light-dark);
  color: var(--color-brand-primary);
}

/* Toast Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

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

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

/* Progress Bar (optional) */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: currentColor;
  opacity: 0.3;
  transform-origin: left;
  animation: progress linear;
}

@keyframes progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ===================================== */
/* Number Input Spinner Buttons (Increment/Decrement) */
/* ===================================== */

/* Remove default spinner buttons in Webkit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Firefox - Remove default spinner buttons */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Custom spinner button wrapper (Light Mode) */
input[type="number"] {
  position: relative;
  padding-right: 2.5rem; /* Make room for custom buttons */
}

/* Create custom increment/decrement buttons with data attributes */
/* This requires a wrapper div with custom buttons */
.number-input-wrapper {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.number-input-wrapper input[type="number"] {
  flex: 1;
  padding-right: 2.5rem;
}

/* Custom spinner buttons */
.number-spinner-btn {
  position: absolute;
  right: 1px;
  width: 2rem;
  height: calc(50% - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light-accent);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-dark-shades);
  font-weight: 600;
  font-size: 0.875rem;
  user-select: none;
  z-index: 2;
  outline: none; /* Remove focus outline since not in tab order */
}

.number-spinner-btn:first-of-type {
  top: 1px;
  border-top-right-radius: 0.5rem;
  border-bottom: 1px solid var(--color-dark-accent);
}

.number-spinner-btn:last-of-type {
  bottom: 1px;
  border-bottom-right-radius: 0.5rem;
}

.number-spinner-btn:hover {
  background-color: var(--color-light-accent-hover);
  color: var(--color-dark-shades);
  transform: scale(1.05);
}

.number-spinner-btn:active {
  background-color: var(--color-brand-primary);
  color: white;
  transform: scale(0.95);
}

/* Dark Mode Spinner Buttons */
.dark .number-spinner-btn {
  background-color: var(--color-surface-dark-hover);
  color: var(--color-light-accent);
  border-bottom-color: rgba(127, 101, 220, 0.3);
}

.dark .number-spinner-btn:hover {
  background-color: var(--color-brand-primary);
  color: white;
}

.dark .number-spinner-btn:active {
  background-color: var(--color-light-accent);
  color: var(--color-dark-shades);
}

/* Alternative: Style the native spinner buttons (for browsers that allow it) */
/* This works in some webkit browsers but has limited styling capabilities */
input[type="number"].native-spinner::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button;
  appearance: auto;
  opacity: 1;
  cursor: pointer;
  height: 100%;
  width: 2rem;
  background-color: var(--color-light-accent);
  border-left: 1px solid var(--color-dark-accent);
  transition: all 0.2s ease;
}

input[type="number"].native-spinner::-webkit-inner-spin-button:hover {
  background-color: var(--color-light-accent-hover);
}

.dark input[type="number"].native-spinner::-webkit-inner-spin-button {
  background-color: var(--color-surface-dark-hover);
  border-left-color: rgba(127, 101, 220, 0.3);
}

.dark input[type="number"].native-spinner::-webkit-inner-spin-button:hover {
  background-color: var(--color-brand-primary);
}

/* Mobile-specific adjustments for spinner buttons */
@media (max-width: 640px) {
  .number-spinner-btn {
    width: 2.5rem;
    font-size: 1rem;
    min-height: 22px; /* Half of 44px touch target */
  }
  
  .number-input-wrapper input[type="number"] {
    padding-right: 3rem;
  }
}

