/* Custom styles for FindYourSeat: only what Tailwind utilities cannot express.
   Loaded before css/output.css. */

/* The hidden attribute must win over display utilities such as "flex". */
[hidden] {
    display: none !important;
}

/* A visible keyboard focus ring on everything that can take focus. */
:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.dark :focus-visible {
    outline-color: #a5b4fc;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Inputs are styled by the Tailwind forms plugin and each page's utility classes
   (border-0 + ring-*, dark:bg-white/5 ...); nothing here may override them. */

/* A default for disabled buttons that set no disabled: utilities of their own.
   Utilities such as disabled:opacity-50 are more specific and win. */
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blazor error UI styles */
#blazor-error-ui {
    color-scheme: light only;
    color: #111827;
    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;
}

/* Dashboard animation styles */
#dashboard-bg-animation {
    will-change: transform;
    background: transparent;
}

/* Ensure content is above animation */
.dashboard-content {
    position: relative;
    z-index: 1;
}

/* Subtle background gradient overlay for better text contrast */
.dashboard-overlay {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
}

.dark .dashboard-overlay {
    background: linear-gradient(135deg, 
        rgba(17, 24, 39, 0.95) 0%, 
        rgba(17, 24, 39, 0.98) 100%);
}

/* Enhance card shadows to stand out against animated background */
.dashboard-card {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .dashboard-card {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
