@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* Animation classes */
.animate-in {
  animation-fill-mode: both;
}

.fade-in-0 {
  animation-name: fadeIn;
  animation-duration: 0.5s;
}

.slide-in-from-top-4 {
  animation-name: slideInFromTop;
  animation-duration: 0.5s;
}

.slide-in-from-bottom-4 {
  animation-name: slideInFromBottom;
  animation-duration: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay utilities */
.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-1000 {
  animation-delay: 1s;
}

/* Duration utilities */
.duration-1000 {
  animation-duration: 1s;
}

.duration-300 {
  animation-duration: 0.3s;
}

.duration-500 {
  animation-duration: 0.5s;
}

/* Pulse animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Backdrop blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

/* Mix blend modes */
.mix-blend-multiply {
  mix-blend-mode: multiply;
}

/* Filter utilities */
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.blur-3xl {
  --tw-blur: blur(64px);
}

/* Transform utilities */
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%;
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
}

/* Text balance */
.text-balance {
  text-wrap: balance;
}

/* Focus visible utilities */
.focus-visible\:border-ring:focus-visible {
  border-color: hsl(var(--ring));
}

.focus-visible\:ring-ring\/50:focus-visible {
  --tw-ring-color: hsl(var(--ring) / 0.5);
}

.focus-visible\:ring-\[3px\]:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

/* Aria invalid utilities */
.aria-invalid\:ring-destructive\/20[aria-invalid="true"] {
  --tw-ring-color: hsl(var(--destructive) / 0.2);
}

.aria-invalid\:border-destructive[aria-invalid="true"] {
  border-color: hsl(var(--destructive));
}

/* Dark mode utilities */
.dark\:aria-invalid\:ring-destructive\/40[aria-invalid="true"] {
  --tw-ring-color: hsl(var(--destructive) / 0.4);
}

.dark\:hover\:bg-accent\/50:hover {
  background-color: hsl(var(--accent) / 0.5);
}

.dark\:bg-input\/30 {
  background-color: hsl(var(--input) / 0.3);
}

.dark\:border-input {
  border-color: hsl(var(--input));
}

.dark\:hover\:bg-input\/50:hover {
  background-color: hsl(var(--input) / 0.5);
}

/* Hover utilities */
.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}

.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}

.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}

/* Disabled utilities */
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

/* SVG utilities */
svg {
  pointer-events: none;
}

svg:not([class*='size-']) {
  /* width: 1rem;
  height: 1rem; */
}

svg {
  flex-shrink: 0;
}

/* Size utilities */
.size-4 {
  width: 1rem;
  height: 1rem;
}

.size-10 {
  width: 2.5rem;
  height: 2.5rem;
}

/* Whitespace utilities */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Shrink utilities */
.shrink-0 {
  flex-shrink: 0;
}

/* Gap utilities */
.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-1 {
  gap: 0.25rem;
}

/* Padding utilities */
.has-svg {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.has-svg-lg {
  padding-left: 1rem;
  padding-right: 1rem;
}

.has-svg-sm {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

/* Height utilities */
.h-9 {
  height: 2.25rem;
}

.h-10 {
  height: 2.5rem;
}

.h-8 {
  height: 2rem;
}

/* Border radius utilities */
.rounded-md {
  border-radius: 0.375rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Font utilities */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Text size utilities */
.text-sm {
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-xl {
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.text-2xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-3xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-4xl {
  font-size: 1.75rem;
  line-height: 2.25rem;
}

.text-5xl {
  font-size: 2rem;
  line-height: 1.2;
}

.text-6xl {
  font-size: 2.25rem;
  line-height: 1.2;
}

.text-8xl {
  font-size: 2.5rem;
  line-height: 1.2;
}

/* Transition utilities */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Outline utilities */
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Background utilities */
.bg-accent {
  background-color: hsl(var(--accent));
}

.bg-primary\/90 {
  background-color: hsl(var(--primary) / 0.9);
}

.bg-input\/30 {
  background-color: hsl(var(--input) / 0.3);
}

.bg-background {
  background-color: hsl(var(--background));
}

/* Text color utilities */
.text-accent-foreground {
  color: hsl(var(--accent-foreground));
}

.text-foreground {
  color: hsl(var(--foreground));
}

/* Border utilities */
.border-input {
  border-color: hsl(var(--input));
}

.border-ring {
  border-color: hsl(var(--ring));
}

.border-destructive {
  border-color: hsl(var(--destructive));
}

/* Ring utilities */
.ring-ring\/50 {
  --tw-ring-color: hsl(var(--ring) / 0.5);
}

.ring-\[3px\] {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-destructive\/20 {
  --tw-ring-color: hsl(var(--destructive) / 0.2);
}

.ring-destructive\/40 {
  --tw-ring-color: hsl(var(--destructive) / 0.4);
}

/* CSS Variables for design tokens */
:root {
    --font-size: 12px;
    --background: #fff;
    --foreground: #000;
    --card: #fff;
    --card-foreground: #000;
    --popover: oklch(1 0 0);
    --popover-foreground: #000;
    --primary: #1e40af;
    --primary-foreground: oklch(1 0 0);
    --secondary: oklch(.95 .0058 264.53);
    --secondary-foreground: #030213;
    --muted: #ececf0;
    --muted-foreground: #000;
    --accent: #e9ebef;
    --accent-foreground: #030213;
    --destructive: #d4183d;
    --destructive-foreground: #fff;
    --border: #1e40af1a;
    --input: transparent;
    --input-background: #f3f3f5;
    --switch-background: #cbced4;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --ring: oklch(.708 0 0);
    --chart-1: oklch(.646 .222 41.116);
    --chart-2: oklch(.6 .118 184.704);
    --chart-3: oklch(.398 .07 227.392);
    --chart-4: oklch(.828 .189 84.429);
    --chart-5: oklch(.769 .188 70.08);
    --radius: .75rem;
    --radius-sm: .5rem;
    --radius-md: .625rem;
    --radius-lg: .75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --sidebar: oklch(.985 0 0);
    --sidebar-foreground: #000;
    --sidebar-primary: #1e40af;
    --sidebar-primary-foreground: oklch(.985 0 0);
    --sidebar-accent: oklch(.97 0 0);
    --sidebar-accent-foreground: #000;
    --sidebar-border: oklch(.922 0 0);
    --sidebar-ring: oklch(.708 0 0);
    --bleuer-primary: #1e40af;
    --bleuer-primary-light: #3b82f6;
    --bleuer-primary-dark: #1e3a8a;
    --bleuer-secondary: #f59e0b;
    --bleuer-accent: #8b5cf6;
    --bleuer-light: #eff6ff;
    --bleuer-lighter: #f8fafc;
    --bleuer-border: #1e40af1f;
    --bleuer-text-light: #000;
    --bleuer-text-muted: #000;
    --bleuer-success: #10b981;
    --bleuer-warning: #f59e0b;
    --bleuer-error: #ef4444;
    --shadow-sm: 0 1px 2px 0 #0000000d;
    --shadow: 0 1px 3px 0 #0000001a, 0 1px 2px 0 #0000000f;
    --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;
    --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;
    --shadow-xl: 0 20px 25px -5px #0000001a, 0 10px 10px -5px #0000000a;
    --shadow-2xl: 0 25px 50px -12px #00000040;
    --text-xs: .65rem;
    --text-sm: .75rem;
    --text-base: .875rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --spacing-xs: .5rem;
    --spacing-sm: .75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-in: cubic-bezier(.4, 0, 1, 1);
}

/* Bleuer brand color utilities */
.bleuer-primary { color: var(--bleuer-primary); }
.bleuer-primary-light { color: var(--bleuer-primary-light); }
.bleuer-primary-dark { color: var(--bleuer-primary-dark); }
.bleuer-secondary { color: var(--bleuer-secondary); }
.bleuer-accent { color: var(--bleuer-accent); }
.bleuer-success { color: var(--bleuer-success); }
.bleuer-warning { color: var(--bleuer-warning); }
.bleuer-error { color: var(--bleuer-error); }
.bleuer-light { color: var(--bleuer-light); }
.bleuer-lighter { color: var(--bleuer-lighter); }
.bleuer-border { color: var(--bleuer-border); }
.bleuer-text-light { color: var(--bleuer-text-light); }
.bleuer-text-muted { color: var(--bleuer-text-muted); }

.bg-gradient-to-r from-blue-600 to-purple-600 { background-color: var(--bleuer-primary); }
.bg-gradient-to-r from-blue-600 to-purple-600-light { background-color: var(--bleuer-primary-light); }
.bg-gradient-to-r from-blue-600 to-purple-600-dark { background-color: var(--bleuer-primary-dark); }
.bg-bleuer-secondary { background-color: var(--bleuer-secondary); }
.bg-bleuer-accent { background-color: var(--bleuer-accent); }
.bg-bleuer-success { background-color: var(--bleuer-success); }
.bg-bleuer-warning { background-color: var(--bleuer-warning); }
.bg-bleuer-error { background-color: var(--bleuer-error); }
.bg-bleuer-light { background-color: var(--bleuer-light); }
.bg-bleuer-lighter { background-color: var(--bleuer-lighter); }
.bg-bleuer-border { background-color: var(--bleuer-border); }

.border-bleuer-primary { border-color: var(--bleuer-primary); }
.border-bleuer-primary-light { border-color: var(--bleuer-primary-light); }
.border-bleuer-primary-dark { border-color: var(--bleuer-primary-dark); }
.border-bleuer-secondary { border-color: var(--bleuer-secondary); }
.border-bleuer-accent { border-color: var(--bleuer-accent); }
.border-bleuer-success { border-color: var(--bleuer-success); }
.border-bleuer-warning { border-color: var(--bleuer-warning); }
.border-bleuer-error { border-color: var(--bleuer-error); }
.border-bleuer-light { border-color: var(--bleuer-light); }
.border-bleuer-lighter { border-color: var(--bleuer-lighter); }
.border-bleuer-border { border-color: var(--bleuer-border); }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Border radius utilities */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

/* Spacing utilities */
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-2xl { padding: var(--spacing-2xl); }

.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
.m-2xl { margin: var(--spacing-2xl); }

/* Text size utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* Font weight utilities */
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }

/* Transition utilities */
.transition-ease-in-out { transition-timing-function: var(--ease-in-out); }
.transition-ease-out { transition-timing-function: var(--ease-out); }
.transition-ease-in { transition-timing-function: var(--ease-in); }

/* Hover effects */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:shadow-lg:hover {
  box-shadow: var(--shadow-lg);
}

.hover\:shadow-md:hover {
  box-shadow: var(--shadow-md);
}

.hover\:shadow-xl:hover {
  box-shadow: var(--shadow-xl);
}

.hover\:shadow-2xl:hover {
  box-shadow: var(--shadow-2xl);
}

/* Gradient hover effects */
.hover\:bg-gradient-to-r:hover {
  background-image: linear-gradient(to right, var(--bleuer-primary), var(--bleuer-primary-light));
}

.hover\:from-indigo-700:hover {
  background-image: linear-gradient(to right, #4338ca, var(--bleuer-primary-light));
}

.hover\:to-indigo-600\/5:hover {
  background-image: linear-gradient(to right, var(--bleuer-primary), rgba(79, 70, 229, 0.05));
}

html { font-size: 12px; }

@media (min-width: 768px) {
  html { font-size: 14px; }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Enhanced Blazor Error UI */
#blazor-error-ui {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none !important; /* Hide the blocking reconnection UI */
    left: 0;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none; /* Allow interaction with page behind */
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}

#blazor-error-ui .reload {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

#blazor-error-ui .reload:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Connection status indicator */
.connection-status {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    z-index: 1001;
    transition: background-color 0.3s;
}

.connection-status.disconnected {
    background: #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Loading spinner for reconnection - Hidden for silent reconnection */
.reconnecting-spinner {
    display: none !important;
    visibility: hidden !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.reconnecting-spinner.show {
    display: none !important;
    visibility: hidden !important;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide browser refresh elements that cause console errors */
[data-aspnetcore-browser-refresh] {
    display: none !important;
}

/* Improve Blazor error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Better connection status indicators */
/* Hide Blazor default reconnection modal - make reconnection silent */
/* Hide all possible Blazor reconnection UI elements during normal reconnection */
/* When server is unreachable, these will be shown by removing the 'silent-reconnect' class from body */
body.silent-reconnect .blazor-reconnect-modal,
body.silent-reconnect .components-reconnect-modal,
body.silent-reconnect .components-reconnect-show,
body.silent-reconnect .components-reconnect-hide,
body.silent-reconnect div[data-reconnect-modal],
body.silent-reconnect div[id*="reconnect"],
body.silent-reconnect div[class*="reconnect"],
body.silent-reconnect div[class*="Reconnect"],
body.silent-reconnect div[class*="components-reconnect"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide all Blazor reconnection UI elements and their children (only when silent-reconnect class is present) */
body.silent-reconnect .blazor-reconnect-modal *,
body.silent-reconnect .components-reconnect-modal *,
body.silent-reconnect .components-reconnect-show *,
body.silent-reconnect .components-reconnect-hide *,
body.silent-reconnect div[data-reconnect-modal] *,
body.silent-reconnect div[id*="reconnect"] *,
body.silent-reconnect div[class*="reconnect"] *,
body.silent-reconnect div[class*="Reconnect"] *,
body.silent-reconnect div[class*="components-reconnect"] * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide console errors from browser refresh */
script[src*="aspnetcore-browser-refresh"] {
    display: none !important;
}

/* Fixed header spacing */
.fixed-header-spacing {
    padding-top: calc(2rem + 80px) !important;
}

/* Ensure modals are always on top */
.modal-overlay {
    z-index: 9999 !important;
    position: fixed !important;
    isolation: isolate !important;
}

/* Create new stacking context for header */
header {
    isolation: isolate;
    z-index: 1 !important;
}

/* Force modals to be above everything */
.fixed.inset-0 {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Ensure toasts always appear above all modals */
.toast-container {
    z-index: 100010 !important;
}

.toast {
    z-index: 100010 !important;
}




/* Global placeholder styles for inputs and textareas - comprehensive coverage */
/* Light mode placeholders */
input::placeholder,
textarea::placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #000 !important; /* Black for light mode */
    opacity: 1 !important;
}

/* Dark mode placeholders - maximum specificity to override all styles */
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder,
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
.dark-mode input::placeholder,
.dark-mode textarea::placeholder,
html[data-theme="dark"] input::-webkit-input-placeholder,
html[data-theme="dark"] textarea::-webkit-input-placeholder,
html.dark-mode input::-webkit-input-placeholder,
html.dark-mode textarea::-webkit-input-placeholder,
body[data-theme="dark"] input::-webkit-input-placeholder,
body[data-theme="dark"] textarea::-webkit-input-placeholder,
body.dark-mode input::-webkit-input-placeholder,
body.dark-mode textarea::-webkit-input-placeholder,
[data-theme="dark"] input::-webkit-input-placeholder,
[data-theme="dark"] textarea::-webkit-input-placeholder,
.dark-mode input::-webkit-input-placeholder,
.dark-mode textarea::-webkit-input-placeholder,
html[data-theme="dark"] input::-moz-placeholder,
html[data-theme="dark"] textarea::-moz-placeholder,
html.dark-mode input::-moz-placeholder,
html.dark-mode textarea::-moz-placeholder,
body[data-theme="dark"] input::-moz-placeholder,
body[data-theme="dark"] textarea::-moz-placeholder,
body.dark-mode input::-moz-placeholder,
body.dark-mode textarea::-moz-placeholder,
[data-theme="dark"] input::-moz-placeholder,
[data-theme="dark"] textarea::-moz-placeholder,
.dark-mode input::-moz-placeholder,
.dark-mode textarea::-moz-placeholder,
html[data-theme="dark"] input:-ms-input-placeholder,
html[data-theme="dark"] textarea:-ms-input-placeholder,
html.dark-mode input:-ms-input-placeholder,
html.dark-mode textarea:-ms-input-placeholder,
body[data-theme="dark"] input:-ms-input-placeholder,
body[data-theme="dark"] textarea:-ms-input-placeholder,
body.dark-mode input:-ms-input-placeholder,
body.dark-mode textarea:-ms-input-placeholder,
[data-theme="dark"] input:-ms-input-placeholder,
[data-theme="dark"] textarea:-ms-input-placeholder,
.dark-mode input:-ms-input-placeholder,
.dark-mode textarea:-ms-input-placeholder {
    color: #fff !important; /* White for dark mode */
    opacity: 1 !important;
}

/* Form select caret color - Light mode */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Form select caret color - Dark mode */
html[data-theme="dark"] .form-select,
html.dark-mode .form-select,
body[data-theme="dark"] .form-select,
body.dark-mode .form-select,
[data-theme="dark"] .form-select,
.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Drag and drop styles */
.drag-over {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3) !important;
}

html[data-theme="dark"] .drag-over,
html.dark-mode .drag-over,
body[data-theme="dark"] .drag-over,
body.dark-mode .drag-over,
[data-theme="dark"] .drag-over,
.dark-mode .drag-over {
    border-color: #3b82f6 !important;
    background-color: #1e3a5f !important;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5) !important;
}