/* Custom styles for Filament forms */

/* Background image for login pages */
.fi-simple-layout {
    position: relative;
    background-image: url('/images/lake-ohrid-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Background for main application (after login) */
/* .fi-layout,
.filament-main {
    position: relative;
    background-image: url('/images/lake-ohrid-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
} */

/* Add overlay for login page - light mode */
/* .fi-simple-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.0);
    z-index: -1;
} */

/* Add overlay for main application - light mode */
/* .fi-layout::before,
.filament-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.0);
    z-index: -1;
    pointer-events: none;
} */

/* Dark mode adjustments for overlay - login */
/* .dark .fi-simple-layout::before {
    background-color: rgba(0, 0, 0, 0.0);
} */

/* Dark mode adjustments for overlay - main app */
/* .dark .fi-layout::before,
.dark .filament-main::before {
    background-color: rgba(0, 0, 0, 0.0);
} */

/* Make form card more prominent with semi-transparent background */
/* .fi-simple-main-ctn {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
} */

/* Add transparency to page content areas */
/* .fi-main-ctn,
.filament-main-content,
.fi-section,
.fi-card {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(5px);
} */

/* Make sidebar semi-transparent */
/* .fi-sidebar {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
} */

/* Make top bar semi-transparent */
/* .fi-topbar {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
} */

/* Dark mode adjustments for form */
/* .dark .fi-simple-main-ctn {
    background-color: rgba(30, 41, 59, 0.5) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
} */

/* Dark mode adjustments for page content */
/* .dark .fi-main-ctn,
.dark .filament-main-content,
.dark .fi-section,
.dark .fi-card {
    background-color: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(5px);
} */

/* Dark mode adjustments for sidebar */
/* .dark .fi-sidebar {
    background-color: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px);
} */

/* Dark mode adjustments for top bar */
/* .dark .fi-topbar {
    background-color: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px);
} */

/* Button loading state styles */
@keyframes pulse-opacity {
    0% { opacity: 0.7; }
    50% { opacity: 0.5; }
    100% { opacity: 0.7; }
}

.cursor-wait {
    animation: pulse-opacity 1.5s infinite ease-in-out;
    position: relative;
}

.cursor-wait::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* CSS for visibility of modal windows scrollbar */
.fi-modal .fi-modal-window {
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.fi-modal .fi-modal-content {
    max-height: calc(90vh - 8rem) !important;
    overflow-y: auto !important;
}

/* Keep body scrollable */
body.fi-modal-open {
    overflow: auto !important;
}

/* Repeater in modal fix */
.fi-modal .fi-fo-repeater {
    max-height: 60vh;
    overflow-y: auto;
}