/* Custom styles for FindYourSeat */

/* Form input styles - ensure compatibility with existing login forms */
input[type="email"], 
input[type="password"], 
input[type="text"],
textarea,
select {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease-in-out !important;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4f46e5 !important;
    outline-offset: -2px !important;
    border-color: #4f46e5 !important;
}

/* Dark mode form styles */
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="text"],
.dark textarea,
.dark select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="text"]:focus,
.dark textarea:focus,
.dark select:focus {
    outline-color: #6366f1 !important;
    border-color: #6366f1 !important;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #9ca3af !important;
}

/* Button styles */
button[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Blazor error UI styles */
#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;
}

/* Custom utilities that work with CDN version */
.text-primary {
    color: #2563eb;
}

.bg-primary {
    background-color: #2563eb;
}

.border-primary {
    border-color: #2563eb;
}

/* 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);
}

/* Performance optimizations for animation */
.animation-container {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}