/* =========================================================================
   BeyondBasics Task Manager - Global Styles
   Neumorphic Design System with Light/Dark Mode Support
   ========================================================================= */

/* -------------------------
   Theme Variables
   ------------------------- */
:root {
  /* Background Colors */
  --bg: #ffffff;
  --neu-bg: #ffffff;
  
  /* Text Colors */
  --text-main: #4a5568;
  --text-strong: #2d3748;
  --text-muted: #6b7280;
  
  /* Accent Colors */
  --accent: #6366f1;
  --accent-rgb: 99, 102, 241;
  --danger: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
  
  /* Clean Shadows (Light Mode) */
  --neu-shadow-light: #ffffff;
  --neu-shadow-dark: rgba(0, 0, 0, 0.18); /* Increased for visibility */
  
  /* Border & Surface */
  --border-color: rgba(0, 0, 0, 0.05);
  --border-subtle: #f3f4f6;
  --surface: #ffffff;
  
  /* Spacing & Layout */
  --radius: 16px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container-padding: 20px;
  --max-width: 1200px;
  --card-pad: 18px;
  --card-min-height: 160px;
  --search-height: 44px;
  
  /* Transitions */
  --trans-fast: 160ms ease;
  --trans-base: 260ms cubic-bezier(0.2, 0.9, 0.3, 1);
  
  /* Shadows */
  --universal-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  --universal-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-main: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* -------------------------
   Responsive Variables
   ------------------------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --radius: 12px;
    --radius-lg: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 12px;
    --radius: 10px;
    --radius-lg: 10px;
  }
}

/* Dark Mode Overrides */
:root[data-theme="dark"] {
  /* Background Colors */
  --bg: #1f2937;
  --neu-bg: #1f2937;
  
  /* Text Colors */
  --text-main: #9ca3af;
  --text-strong: #f3f4f6;
  --text-muted: #6b7280;
  
  /* Accent Colors */
  --accent: #818cf8;
  --accent-rgb: 129, 140, 248;
  
  /* Neumorphism Shadows (Dark Mode) */
  --neu-shadow-light: #2d3748;
  --neu-shadow-dark: #111827;
  --universal-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow for dark mode */
  --universal-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.5);
  
  /* Border & Surface */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --surface: rgba(255, 255, 255, 0.02);
}

/* -------------------------
   Base Styles
   ------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--neu-bg);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* -------------------------
   Scrollbar Styling
   ------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
}

:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

/* Custom scroll class for specific elements */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

:root[data-theme="dark"] .custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

/* -------------------------
   Loader / Spinner
   ------------------------- */
/* -------------------------
   Full Screen Loader
   ------------------------- */
.fullscreen-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--neu-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

:root[data-theme="dark"] .fullscreen-loader {
  background: var(--neu-bg);
}

.fullscreen-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

:root[data-theme="dark"] .spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent);
}

.loader-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* -------------------------
   Skeleton Loading Screens
   ------------------------- */

/* Base skeleton styles */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--neu-bg) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    var(--neu-bg) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .skeleton {
  background: linear-gradient(
    90deg,
    var(--neu-bg) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--neu-bg) 100%
  );
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton card for task/meeting cards */
.skeleton-card {
  min-height: 100px;
  margin-bottom: 12px;
  opacity: 0.7;
}

/* Skeleton text lines */
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text.large {
  height: 20px;
  width: 60%;
}

.skeleton-text.medium {
  height: 16px;
  width: 80%;
}

.skeleton-text.small {
  height: 12px;
  width: 40%;
}

/* Skeleton for stat chips */
.skeleton-stat {
  height: 60px;
  border-radius: var(--radius-md);
}

/* Skeleton for notes */
.skeleton-note {
  height: 40px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
}

/* Fade in animation for content */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent layout shifts */
.content-container {
  min-height: 200px;
  contain: layout style paint;
}

.card-list {
  min-height: 300px;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

/* -------------------------
   Neumorphic Utilities
   ------------------------- */

/* Flat/Raised Surface - Clean */
.neu-flat {
  background: var(--neu-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Increased from 0.05 */
  border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .neu-flat {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pressed/Inset Surface - Clean */
.neu-pressed {
  background: #f8fafc;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
}

/* -------------------------
   Cards
   ------------------------- */
.neu-card {
  background: var(--neu-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Increased from 0.04 */
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

:root[data-theme="dark"] .neu-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.neu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Increased from 0.08 */
}

/* -------------------------
   Badges
   ------------------------- */
.neu-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.neu-badge.primary { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.neu-badge.success { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.neu-badge.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.neu-badge.danger  { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.neu-badge.neutral { background: rgba(0, 0, 0, 0.05); color: var(--text-muted); }

:root[data-theme="dark"] .neu-badge.neutral { background: rgba(255, 255, 255, 0.05); }

/* -------------------------
   Buttons
   ------------------------- */

/* Unified Button System - .neu-btn and .btn share the same base styles */
.neu-btn,
.btn {
  border: 1px solid var(--border-color);
  outline: none;
  background: var(--neu-bg);
  color: var(--text-strong);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 14px;
}

.neu-btn:hover,
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.neu-btn:active,
.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.neu-btn.primary {
  color: var(--accent);
}

.neu-btn.danger {
  color: var(--danger);
}

/* Button Variants */
.btn--primary {
  color: var(--accent);
}

.btn--secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.1);
}

:root[data-theme="dark"] .btn--secondary {
  border: 1px solid rgba(255,255,255,0.1);
}

.btn--secondary:hover {
  background: rgba(0,0,0,0.05);
}

:root[data-theme="dark"] .btn--secondary:hover {
  background: rgba(255,255,255,0.05);
}

.btn--danger {
  color: var(--danger);
}

.btn--ghost {
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(0,0,0,0.05);
  box-shadow: none;
}

:root[data-theme="dark"] .btn--ghost:hover {
  background: rgba(255,255,255,0.05);
}

.btn--ghost-danger {
  background: transparent;
  color: var(--danger);
  box-shadow: none;
}

.btn--ghost-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: none;
}

.btn--outline-primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline-primary:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

/* Button Sizes */
.btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  min-width: auto;
}

/* Button Spinner */
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  animation: spin 900ms linear infinite;
}

/* Icon Buttons */
.neu-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--neu-bg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-strong);
  transition: all 0.2s ease;
}

.neu-btn-icon:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.neu-btn-icon:active {
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.06);
}

.neu-btn-icon.small {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.neu-btn-icon.micro {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

/* -------------------------
   Form Elements
   ------------------------- */

/* Text Input */
.neu-input,
.form-input,
input[type="text"].neu-input,
input[type="email"].neu-input,
input[type="password"].neu-input,
input[type="number"].neu-input,
input[type="date"].neu-input,
input[type="time"].neu-input {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  padding: 8px 12px;
  outline: none;
  color: var(--text-strong);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  transition: all 0.2s ease;
}

.neu-input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
}

.neu-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Textarea */
textarea.neu-input,
textarea {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  padding: 12px;
  resize: vertical;
  font-family: inherit;
  outline: none;
  color: var(--text-strong);
  font-size: 14px;
  width: 100%;
  min-height: 80px;
}

textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
}

/* Select */
.neu-select,
select.neu-select {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-strong);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.neu-select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
}

/* -------------------------
   Modal / Overlay
   ------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
}

:root[data-theme="dark"] .modal {
  background: rgba(0, 0, 0, 0.5);
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--neu-bg);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), 
              -8px -8px 16px var(--neu-shadow-light);
  border: 1px solid var(--border-color);
}

.modal-content h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* -------------------------
   Context Menu
   ------------------------- */
.context-menu {
  position: absolute;
  background: var(--neu-bg);
  padding: 8px 0;
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 140px;
  border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .context-menu {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

.context-menu.hidden {
  display: none;
}

.menu-item {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.1s;
  color: var(--text-main);
}

.menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] .menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-item.text-danger {
  color: var(--danger);
}

/* -------------------------
   Utility Classes
   ------------------------- */
.hidden,
.is-hidden {
  display: none !important;
}

/* Text utilities */
.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-muted {
  color: var(--text-muted);
}

.text-strong {
  color: var(--text-strong);
}

/* -------------------------
   Utility Classes
   ------------------------- */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: center; justify-content: flex-start; }
.flex-col { display: flex; flex-direction: column; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }
.gap-lg { gap: 16px; }
.gap-xl { gap: 24px; }

/* -------------------------
   Reduced Motion
   ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* -------------------------
   Mobile Overflow Prevention
   ------------------------- */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent any element from causing horizontal scroll */
* {
  max-width: 100%;
}

/* Exclude specific elements that need to overflow */
img, video, canvas, svg, table {
  max-width: 100%;
  height: auto;
}

/* -------------------------
   Mobile Touch-Friendly Improvements
   ------------------------- */
@media (max-width: 768px) {
  /* Increase touch targets */
  .neu-btn,
  .btn,
  button,
  [role="button"],
  a.btn,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
  }
  
  /* Better form inputs on mobile */
  .neu-input,
  .form-input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="search"],
  select,
  textarea {
    min-height: 48px;
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px 14px;
  }
  
  /* Improve select appearance */
  select {
    background-position: right 10px center;
  }
  
  /* Modal improvements */
  .modal-content {
    width: 95%;
    max-width: 95%;
    max-height: 90vh;
    margin: 10px;
  }
  
  /* Badge sizing */
  .neu-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  /* Card padding reduction */
  .neu-card {
    padding: 14px;
  }
  
  /* Context menu positioning */
  .context-menu {
    max-width: calc(100vw - 20px);
    right: 10px !important;
    left: auto !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller screens */
  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  /* Button text size */
  .neu-btn,
  .btn {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* -------------------------
   Logo Styling
   ------------------------- */
.app-logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 15px;
}

/* -------------------------
   Glassy Effect & Background Enhancements
   ------------------------- */

/* Shared Glassy Background Styles */
body:is(.bg-image-applied, .cover-image-applied) :is(.neu-card, .neu-flat, article, .dashboard-container, .task-list-container, .calendar-container, .card--profile-main, .card--profile-stats, .card--profile-security, .card--profile-appearance, .card--profile-install) {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

:root[data-theme="dark"] body:is(.bg-image-applied, .cover-image-applied) :is(.neu-card, .neu-flat, article, .dashboard-container, .task-list-container, .calendar-container, .card--profile-main, .card--profile-stats, .card--profile-security, .card--profile-appearance, .card--profile-install) {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header and Navbar: Transparent Container */
body:is(.bg-image-applied, .cover-image-applied) :is(.app-header, .top-navbar) {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

/* Header and Navbar: Glassy Elements inside */
body:is(.bg-image-applied, .cover-image-applied) :is(.app-header__icon-button, .app-header__profile-button, .app-header__logo, .app-header__greeting, .top-navbar__link, .top-navbar__logout-btn) {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
}

:root[data-theme="dark"] body:is(.bg-image-applied, .cover-image-applied) :is(.app-header__icon-button, .app-header__profile-button, .app-header__logo, .app-header__greeting, .top-navbar__link, .top-navbar__logout-btn) {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);
}

/* Ensure text remains readable */
body:is(.bg-image-applied, .cover-image-applied) {
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

:root[data-theme="dark"] body:is(.bg-image-applied, .cover-image-applied) {
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Cover Image Styling */
#bbCoverPhoto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  pointer-events: none;
}

/* Push content down when cover is applied */
body.cover-image-applied main.app-content {
    margin-top: calc(50vh - 140px);
    position: relative;
    z-index: 1;
}

/* Global Progress Bar (Top) */
.global-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary, #6366f1);
  width: 0%;
  z-index: 99999;
  transition: width 0.2s ease-out, opacity 0.3s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  pointer-events: none;
}

