/*
 * Happy Wishes Application - CSS Styles
 * 
 * IMPORTANT: For proper safe area support on iPhone and other devices with notches,
 * ensure the following viewport meta tag is present in your HTML:
 * 
 * <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
 * 
 * The "viewport-fit=cover" is crucial for env(safe-area-inset-*) CSS to work properly.
 */

:root {
    --my-gradient: linear-gradient(90deg, rgba(117, 78, 197, 1) 0%, rgba(207, 50, 153, 1) 100%);
    --my-secondary: #2196f3;
    --my-secondary-group: #00897B;
    --my-daily-group: #4CAF50;

    /* Consistent brand color for all elements */
    --brand-primary: #2196F3;

    /* Custom component colors for light mode */
    --bg-color: #E5E4E2;
    --text-color: #000000;
    --card-bg: #ffffff;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark mode colors for custom components */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #ffffff;
        --card-bg: #1e1e1e;
        --border-color: #333;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
}

/* PWA Specific Styles and Safe Area Support */
.pwa-installed {
    /* Styles for when app is installed as PWA */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* Fallback for older browsers */
    padding-top: constant(safe-area-inset-top);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-left: constant(safe-area-inset-left);
    padding-right: constant(safe-area-inset-right);
}

/* Universal safe area class for any element */
.safe-area {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* Fallback for older browsers */
    padding-top: constant(safe-area-inset-top);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-left: constant(safe-area-inset-left);
    padding-right: constant(safe-area-inset-right);
}

/* Safe area top only (for headers) */
.safe-area-top {
    padding-top: env(safe-area-inset-top);
    padding-top: constant(safe-area-inset-top);
}

/* Safe area bottom only (for footers) */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: constant(safe-area-inset-bottom);
}

/* Safe area horizontal only (for side content) */
.safe-area-horizontal {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-left: constant(safe-area-inset-left);
    padding-right: constant(safe-area-inset-right);
}

/* Install button animation */
#install-pwa-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Share button styling */
.share-btn-group .dropdown-menu {
    min-width: 200px;
}

.share-btn-group .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease-in-out;
}

.share-btn-group .dropdown-item:hover {
    background-color: var(--bs-gray-100);
}

.share-btn-group .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* App title offline state */
.app-title.offline {
    color: #6c757d !important;
    opacity: 0.6;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Toast notifications positioning */
.toast {
    min-width: 300px;
}

/* Offline warning styling */
#offline-warning {
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

/* Install banner styling */
#install-banner {
    background: linear-gradient(135deg, var(--brand-primary), #1976D2);
    color: white;
    border: none;
}

#install-banner .btn-outline-primary {
    border-color: white;
    color: white;
}

#install-banner .btn-outline-primary:hover {
    background-color: white;
    color: var(--brand-primary);
}

/* Responsive improvements for PWA */
@media (max-width: 768px) {
    #install-pwa-btn {
        bottom: 10px;
        right: 10px;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .share-btn-group .dropdown-menu {
        min-width: 180px;
    }
}

/* Dark mode adjustments for PWA elements */
@media (prefers-color-scheme: dark) {
    .share-btn-group .dropdown-item:hover {
        background-color: var(--bs-gray-800);
    }

    #install-banner {
        background: linear-gradient(135deg, #1976D2, #0D47A1);
    }
}

/* Festival Date Overlay Styles */
.festival-item {
    position: relative;
    overflow: hidden;
}

.festival-date-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgba(255, 255, 255, 0.15);
    color: black;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 1);
    z-index: 10;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.festival-item .img-thumbnail {
    transition: transform 0.2s ease;
}

.festival-item:hover .img-thumbnail {
    transform: scale(1.1);
}

/* Dark mode adjustments for festival overlay */
@media (prefers-color-scheme: dark) {
    .festival-date-overlay {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.6);
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    }
}

/* Today's festival highlight animation */
.todays-festival-highlight .img-thumbnail {
    animation: todaysFestivalPulse 3s ease-in-out;
}

@keyframes todaysFestivalPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(74, 144, 226, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

/* Dark mode highlight */
@media (prefers-color-scheme: dark) {
    @keyframes todaysFestivalPulse {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.7);
        }

        50% {
            transform: scale(1.05);
            box-shadow: 0 0 20px 10px rgba(135, 206, 235, 0.3);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(135, 206, 235, 0);
        }
    }
}

nav {
    background: black;
}

.logo {
    height: 70px;
    width: auto;
}

/* iOS Safari scrolling fixes and safe area support */
html {
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    /* Safe area support for iPhone notches and other device UI */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* Safe area support for iPhone notches and device UI */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    margin: 0;
    /* Fallback for older browsers */
    padding-top: constant(safe-area-inset-top);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-left: constant(safe-area-inset-left);
    padding-right: constant(safe-area-inset-right);
}

/* Additional iOS Safari compatibility fixes */
* {
    -webkit-overflow-scrolling: touch;
}

/* Fix for main content wrapper on iOS */
.shadow.bg-body.m-2.pb-1.rounded {
    min-height: calc(100vh - 1rem);
    overflow-y: visible;
}

/* Ensure Bootstrap containers don't restrict scrolling on iOS */
.container-fluid {
    max-width: 1080px;
    margin: 0 auto;
    min-height: auto;
    overflow: visible;
    /* Ensure height doesn't restrict content */
    height: auto !important;
    max-height: none !important;
}

/* Ensure scrollable areas work on iOS */
.modal-body,
#viewAllModalContainer,
#graphics-container-daily,
#graphics-container,
#graphics-container-common {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

/* Fix touch scrolling for image containers */
.image-container {
    -webkit-overflow-scrolling: touch;
    overflow-y: visible;
}

/* Prevent iOS Safari from interfering with page scrolling */
body,
html {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* iOS Safari specific scrolling optimizations */
@supports (-webkit-appearance: none) {
    body {
        /* Enable momentum scrolling on iOS */
        -webkit-overflow-scrolling: touch;
        /* Prevent horizontal bounce */
        overscroll-behavior-x: none;
        /* Allow vertical bounce for better UX */
        overscroll-behavior-y: auto;
    }
}

.gradiant-bg {
    background: var(--my-gradient);
}

.secondary-font-color {
    color: var(--my-secondary);
}

p {
    margin: 0;
}

.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 32px;
    height: 32px;
    overflow: hidden;
    top: 0;
    right: 0;
    background: var(--my-gradient);
    border-radius: 0 4px 0 32px;
}

.go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
}

.card1 {
    display: block;
    position: relative;
    background-color: var(--card-bg);
    border-radius: 4px;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 32px;
    margin: 12px;
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
    color: var(--text-color);
    height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card1:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: var(--my-gradient);
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.25s ease-out;
}

.card1:hover:before {
    transform: scale(25);
}

.card1:hover p {
    transition: all 0.3s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

.card1:hover h3 {
    transition: all 0.3s ease-out;
    color: #ffffff;
}

.card1:hover i {
    transition: all 0.3s ease-out;
    color: #ffffff;
}


.container {
    padding: 2rem 0rem;
}

.container-fluid {
    max-width: 1080px;
    margin: 0 auto;
}


.table-image td,
.table-image th {
    vertical-align: middle;
}



.image-slide-container-header label {
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
}

.image-slide-container-header label::after {
    content: '\f077';
    /* fa-chevron-up when expanded */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    transition: all 0.3s ease;
    font-size: 0.9em;
    margin-top: 2px;
    margin-right: 5px;
    margin-left: -27px;
}

.image-slide-container-header .view-all-icon {
    float: left;
    margin-top: 3px;
    margin-left: 5px;
    margin-right: -27px;
}

.image-slide-container-header.collapsed label::after {
    content: '\f078';
    /* fa-chevron-down when collapsed */
    margin-top: 0px;
}

.image-slide-container-header {
    background: var(--brand-primary);
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-slide-container-header.collapsed {
    border-radius: 8px;
}

.image-slide-container-header:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.image-slide-container-header.group {
    background: var(--my-secondary-group);
}

.image-slide-container-header.group:hover {
    background: #00695c;
}

#graphics-container-daily .image-slide-container-header.group {
    background: var(--my-daily-group);
}

#graphics-container-daily .image-slide-container-header.group:hover {
    background: #388e3c;
}

/* Collapsible image container styles */
.image-container {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.image-container.collapsed {
    max-height: 0;
    opacity: 0;
    border: none !important;
    box-shadow: none !important;
}

.carousel-wrap {
    margin: 20px auto;
    position: relative;
}

/* fix blank or flashing items on carousel */
.owl-carousel .item {
    position: relative;
    z-index: 100;
    -webkit-backface-visibility: hidden;
}

/* end fix */
.owl-nav>div {
    margin-top: -26px;
    position: absolute;
    top: 50%;
    color: #cdcbcd;
    display: flex;
    justify-content: center;
}

.owl-nav i {
    font-size: 52px;
}

.owl-nav .owl-prev {
    left: -30px;
}

.owl-nav .owl-next {
    right: -30px;
}

.owl-nav {
    display: flex;
    justify-content: center;
}


.custom-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 3px 8px var(--shadow-color);
    color: var(--text-color);
    cursor: pointer;
    flex-basis: calc(33% - 40px);
    margin: 20px;
    overflow: hidden;
    padding: 40px;
    position: relative;
    transition: 0.5s ease all;
}

.custom-card:before {
    background: var(--card-bg);
    border-radius: 40px;
    height: 5px;
    content: '';
    left: 20px;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: 0.5s ease all;
}

.custom-card p {
    position: relative;
    z-index: 2;
}


.custom-card p {
    margin: 10px 0 0;
}

.custom-card.purple:before {
    background-image: linear-gradient(153deg, #ef33f2 0%, #3544dc 95%);
}

.custom-card:hover {
    border: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
    transform: scale(1.05);
    z-index: 2;
}

.custom-card:hover:before {
    border-radius: 20px;
    left: 0;
    height: 100%;
    right: 0;
    top: 0;
}

.custom-card:hover p {
    text-shadow: 2px 1px 3px rgba(0, 0, 0, 0.2);
}

.custom-card.border:hover:before {
    border-radius: 16px;
    left: 8px;
    height: calc(100% - 16px);
    right: 8px;
    top: 8px;
}



.upload-form input[type="file"] {
    display: none;
}

.upload-form label {
    background-color: #4caf50;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.upload-form label:hover {
    background-color: #45a049;
}


.uploaded-image img {
    width: 200px;
    height: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}





.range-slider {
    width: 100%;
}

.range-slider__range {
    -webkit-appearance: none;
    width: calc(100% - (73px));
    height: 10px;
    border-radius: 5px;
    background: #d7dcdf;
    outline: none;
    padding: 0;
    margin: 0;
}

.range-slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c3e50;
    cursor: pointer;
    -webkit-transition: background 0.15s ease-in-out;
    transition: background 0.15s ease-in-out;
}

.range-slider__range::-webkit-slider-thumb:hover {
    background: #1abc9c;
}

.range-slider__range:active::-webkit-slider-thumb {
    background: #1abc9c;
}

.range-slider__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #2c3e50;
    cursor: pointer;
    -moz-transition: background 0.15s ease-in-out;
    transition: background 0.15s ease-in-out;
}

.range-slider__range::-moz-range-thumb:hover {
    background: #1abc9c;
}

.range-slider__range:active::-moz-range-thumb {
    background: #1abc9c;
}

.range-slider__range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1abc9c;
}

.range-slider__value {
    display: inline-block;
    position: relative;
    width: 60px;
    color: #fff;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: #2c3e50;
    padding: 5px 10px;
    margin-left: 8px;
}

.range-slider__value:after {
    position: absolute;
    top: 8px;
    left: -7px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-right: 7px solid #2c3e50;
    border-bottom: 7px solid transparent;
    content: "";
}

::-moz-range-track {
    background: #d7dcdf;
    border: 0;
}

input::-moz-focus-inner,
input::-moz-focus-outer {
    border: 0;
}


.image-container {
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: center;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
}

.image-container img {
    display: inline-block;
    width: 130px;
    height: auto;
}



.timeline {
    position: relative;
    padding-left: 4rem;
    margin: 0 0 0 30px;
    color: white;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--my-secondary);
}

.timeline .timeline-container {
    position: relative;
    margin-bottom: 15px;
}

.timeline .timeline-container .timeline-icon {
    position: absolute;
    left: -88px;
    top: 4px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    background: #4f537b;
}

.timeline .timeline-container .timeline-icon i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.timeline .timeline-container .timeline-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.timeline .timeline-container .timeline-body {
    background: #27293d;
    border-radius: 3px;
    padding: 20px 20px 15px;
    box-shadow: 1px 3px 9px rgba(0, 0, 0, 0.1);
}

.timeline .timeline-container .timeline-body:before {
    content: "";
    background: inherit;
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    left: -10px;
    transform: rotate(45deg);
    border-radius: 0 0 0 2px;
}

.timeline .timeline-container .timeline-body .timeline-title .badge {
    background: #4f537b;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.timeline .timeline-container .timeline-body .timeline-subtitle {
    font-weight: 300;
    font-style: italic;
    opacity: 0.4;
    font-size: 11px;
}

.timeline .timeline-container.primary .badge,
.timeline .timeline-container.primary .timeline-icon {
    background: #1d8cf8 !important;
}

.timeline .timeline-container.info .badge,
.timeline .timeline-container.info .timeline-icon {
    background: #0dcaf0 !important;
}

.timeline .timeline-container.success .badge,
.timeline .timeline-container.success .timeline-icon {
    background: #198754 !important;
}

.timeline .timeline-container.warning .badge,
.timeline .timeline-container.warning .timeline-icon {
    background: #ffc107 !important;
}

.timeline .timeline-container.danger .badge,
.timeline .timeline-container.danger .timeline-icon {
    background: #dc3545 !important;
}


.cropBtn {
    position: absolute;
    top: 0px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    color: white;
    cursor: pointer
}



.list-image {
    height: 150px;
    width: 150px;
}


.btn-label-for-abt {
    position: relative;
    right: -12px;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px 0 0 3px;
}

.btn-labeled-for-abt {
    padding-top: 0;
    padding-bottom: 0;
}

/* .btn { margin-bottom:10px; } */

.labelForRadioVCardThumb {
    border: 1px solid #fff;
    padding: 10px;
    display: block;
    position: relative;
    margin: 10px;
    cursor: pointer;
}

.labelForRadioVCardThumb:before {
    background-color: white;
    color: white;
    content: " ";
    display: block;
    border-radius: 50%;
    border: 1px solid grey;
    position: absolute;
    top: -5px;
    left: -5px;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 28px;
    transition-duration: 0.4s;
    transform: scale(0);
}

.labelForRadioVCardThumb img {
    transition-duration: 0.2s;
    transform-origin: 50% 50%;
}

:checked+.labelForRadioVCardThumb {
    border-color: #ddd;
}

:checked+.labelForRadioVCardThumb:before {
    content: "✓";
    background-color: grey;
    transform: scale(1);
}

:checked+.labelForRadioVCardThumb img {
    transform: scale(0.9);
    box-shadow: 0 0 5px #333;
    z-index: -1;
}

.colorSelectRadioClass:checked+.colorSelectLabelClass .colorSelectSpanClass {
    transform: scale(1.25);
}

.colorSelectRadioClass:checked+.colorSelectLabelClass .colorSelectSpanClass {
    border: 2px solid black;
}

.colorSelectLabelClass {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    cursor: pointer;
}

.colorSelectLabelClass:hover .colorSelectSpanClass {
    transform: scale(1.25);
}

.colorSelectLabelClass .colorSelectSpanClass {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease-in-out;
}

.colorSelectLabelClass .colorSelectSpanClass.F17D3A {
    background: #F17D3A;
}


.product-details {
    flex-grow: 1;
}

.product-image {
    height: 50px;
    width: 50px;
}


.crop-container {
    max-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.crop-container img {
    max-width: 100%;
    max-height: 100%;
}


#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-image {
    width: 200px;
    height: 200px;
}

#image-uploaded-show {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-image-from-db {
    width: 200px;
    height: 200px;
}



.img-thumbnail,
.frame-thumbnail,
.product-thumbnail {
    cursor: pointer;
}

#showFrameDiv {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#imageCanvas,
#frameVideo {
    /* position: absolute; */
    width: auto;
    height: auto;
    padding: 1em;
    max-width: 99%;
    max-height: 75vh;
    position: relative;
}

/* Enhanced Video Controls */
.video-controls-overlay {
    position: absolute;
    bottom: 1.5em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-controls-overlay.controls-visible {
    opacity: 1;
    pointer-events: all;
}

.video-controls-overlay.controls-hidden {
    opacity: 0;
    pointer-events: none;
}

.video-control-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    /* Dynamic adaptive background with blur and contrast */
    background: rgba(0, 0, 0, 0.4);
    /* Remove fixed color, let it be adaptive */
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    /* Enhanced backdrop blur for better content adaptation */
    backdrop-filter: blur(12px) saturate(180%) contrast(120%);
    -webkit-backdrop-filter: blur(12px) saturate(180%) contrast(120%);
    /* Border for better definition against any background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Shadow for additional depth and visibility */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    font-size: 0.9rem;
    /* Remove mix-blend-mode from button, apply to icon only */
    position: relative;
}

.video-control-btn:hover {
    /* Enhanced hover state with stronger contrast */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px) saturate(200%) contrast(140%);
    -webkit-backdrop-filter: blur(16px) saturate(200%) contrast(140%);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.video-control-btn:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px) saturate(160%) contrast(130%);
    -webkit-backdrop-filter: blur(14px) saturate(160%) contrast(130%);
}

.video-control-btn i {
    pointer-events: none;
    /* Adaptive color using multiple techniques */

    /* Method 1: Mix blend mode for automatic contrast */
    color: white;
    mix-blend-mode: difference;

    /* Method 2: Filter approach for brightness adaptation */
    filter: contrast(200%) brightness(150%) drop-shadow(0 0 2px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

/* Alternative approach using pseudo-elements for better browser support */
.video-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    /* Create adaptive background using backdrop filters */
    backdrop-filter: invert(1) contrast(200%) brightness(0.8);
    -webkit-backdrop-filter: invert(1) contrast(200%) brightness(0.8);
    pointer-events: none;
    opacity: 0.7;
    mix-blend-mode: overlay;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
    .video-control-btn {
        background: rgba(0, 0, 0, 0.7) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        color: white !important;
    }

    .video-control-btn:hover {
        background: rgba(0, 0, 0, 0.85) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    .video-control-btn::before {
        display: none !important;
    }

    .video-control-btn i {
        color: white !important;
        mix-blend-mode: difference !important;
    }
}

/* Enhanced fallback for browsers without mix-blend-mode support */
@supports not (mix-blend-mode: difference) {
    .video-control-btn i {
        /* Stronger text shadows for visibility without mix-blend-mode */
        text-shadow:
            -2px -2px 4px rgba(0, 0, 0, 1),
            2px -2px 4px rgba(0, 0, 0, 1),
            -2px 2px 4px rgba(0, 0, 0, 1),
            2px 2px 4px rgba(0, 0, 0, 1),
            0 0 8px rgba(0, 0, 0, 1),
            0 0 4px rgba(255, 255, 255, 1) !important;
        filter: brightness(1.5) contrast(200%) !important;
    }
}

/* Responsive adjustments for video controls */
@media (max-width: 768px) {
    .video-controls-overlay {
        gap: 0.5rem;
    }

    .video-control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Dark mode adjustments for video controls */
@media (prefers-color-scheme: dark) {
    .video-control-btn {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .video-control-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Keyboard Feedback Overlay */
.keyboard-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1050;
    animation: keyboardFeedbackIn 0.2s ease-out;
}

.keyboard-feedback i {
    font-size: 18px;
}

@keyframes keyboardFeedbackIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Loading Overlay for Category Images */
.loading-overlay {
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.2s ease-in-out;
}

.loading-overlay i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#viewAllModalContainer {
    max-width: fit-content;
    max-height: 75vh;
    overflow-y: auto;
}

#frameVideo {
    /* aspect-ratio: 1; */
    object-fit: fill;
}

@supports not (-webkit-touch-callout: none) {
    .title-cat {
        font-size: smaller;
        max-width: 137px;
        text-wrap: balance;
    }
}

/* iOS and mobile-specific styles for .title-cat */
.title-cat {
    font-size: smaller;
    max-width: 137px;
    /* Fallback for browsers that don't support text-wrap: balance */
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    line-height: 1.2;
}

/* Modern browsers with text-wrap support */
@supports (text-wrap: balance) {
    .title-cat {
        text-wrap: balance;
    }
}

/* Safari/WebKit specific optimizations */
@supports (-webkit-appearance: none) {
    .title-cat {
        -webkit-text-size-adjust: 100%;
        text-rendering: optimizeLegibility;
    }
}

.dropdown-menu {
    height: auto;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.dropdown-menu .dropdown-item {
    max-width: 290px;
    overflow-x: auto;
    scrollbar-width: thin;
}


@media (max-width: 414px) {
    .dropdown-menu .dropdown-item {
        max-width: 89vw;
    }
}

.btn-primary {
    color: #fff;
    background-color: #2196F3;
    border-color: #2196F3;
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-check:active+.btn-outline-primary,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
    color: #fff;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #1976D2;
    border-color: #1976D2;
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    background-color: #1976D2;
    border-color: #1976D2;
}

/* Custom dark mode styles for non-Bootstrap components */
@media (prefers-color-scheme: dark) {

    /* Custom cards that aren't Bootstrap components */
    .card1 {
        background-color: var(--card-bg);
        color: var(--text-color);
    }

    .custom-card {
        background: var(--card-bg);
        border-color: var(--border-color);
        box-shadow: 0 3px 8px var(--shadow-color);
        color: var(--text-color);
    }

    .custom-card:before {
        background: var(--card-bg);
    }

    /* Image containers */
    .image-container {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }

    /* Timeline custom styling */
    .timeline .timeline-container .timeline-body {
        background: var(--card-bg);
        color: var(--text-color);
    }

    /* Custom header colors for image sections */
    .image-slide-container-header {
        background: var(--brand-primary);
    }

    .image-slide-container-header:hover {
        background: #1565c0;
    }

    .image-slide-container-header.group {
        background: var(--my-secondary-group);
    }

    .image-slide-container-header.group:hover {
        background: #004d40;
    }

    #graphics-container-daily .image-slide-container-header.group {
        background: var(--my-daily-group);
    }

    #graphics-container-daily .image-slide-container-header.group:hover {
        background: #2e7d32;
    }
}

/* Bootstrap Datepicker Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .datepicker {
        background-color: var(--card-bg) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-color) !important;
    }

    .datepicker table tr td,
    .datepicker table tr th {
        color: var(--text-color) !important;
        border: none !important;
    }

    .datepicker table tr td.day:hover,
    .datepicker table tr td.focused {
        background-color: rgba(33, 150, 243, 0.2) !important;
        color: var(--text-color) !important;
    }

    .datepicker table tr td.active,
    .datepicker table tr td.active:hover,
    .datepicker table tr td.active.focused {
        background-color: var(--my-secondary) !important;
        color: white !important;
    }

    .datepicker table tr td.today {
        background-color: rgba(255, 193, 7, 0.3) !important;
        color: var(--text-color) !important;
    }

    .datepicker table tr td.disabled,
    .datepicker table tr td.disabled:hover {
        background-color: transparent !important;
        color: #666 !important;
    }

    .datepicker .datepicker-switch,
    .datepicker .prev,
    .datepicker .next,
    .datepicker tfoot tr th {
        background-color: var(--card-bg) !important;
        color: var(--text-color) !important;
        border: none !important;
    }

    .datepicker .datepicker-switch:hover,
    .datepicker .prev:hover,
    .datepicker .next:hover {
        background-color: rgba(33, 150, 243, 0.2) !important;
        color: var(--text-color) !important;
    }
}

/* Date range picker button styling */
#reportrange {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    #reportrange {
        background-color: var(--card-bg) !important;
        border-color: var(--border-color) !important;
        color: var(--text-color) !important;
    }

    #reportrange:hover {
        background-color: rgba(33, 150, 243, 0.1) !important;
        border-color: var(--my-secondary) !important;
    }
}

/* App Title Styling */
.app-title {
    color: var(--brand-primary);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

/* Dark mode app title */
[data-bs-theme="dark"] .app-title {
    color: var(--brand-primary);
    text-shadow: 0 2px 4px rgba(33, 150, 243, 0.4);
}

/* Date Range Display Styles */
.date-range-display {
    background: var(--bs-body-bg);
    border: 1px solid var(--brand-primary);
    border-radius: 8px;
    cursor: pointer;
    color: var(--brand-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.date-range-display:hover {
    background: var(--brand-primary);
    color: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.date-range-display i {
    font-size: 1em;
}

/* Quick Range Buttons in Modal */
.quick-range-btn {
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quick-range-btn:hover:not(:disabled) {
    background: var(--brand-primary);
    color: var(--bs-white);
    transform: translateX(5px);
}

.quick-range-btn:disabled {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-light) !important;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.quick-range-btn i {
    color: var(--brand-primary);
    transition: color 0.2s ease;
}

.quick-range-btn:hover:not(:disabled) i {
    color: var(--bs-white);
}

.quick-range-btn:disabled i {
    color: var(--bs-light) !important;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Safe area support for modals on devices with notches */
    margin-top: env(safe-area-inset-top);
    margin-bottom: env(safe-area-inset-bottom);
    margin-left: env(safe-area-inset-left);
    margin-right: env(safe-area-inset-right);
    /* Fallback for older browsers */
    margin-top: constant(safe-area-inset-top);
    margin-bottom: constant(safe-area-inset-bottom);
    margin-left: constant(safe-area-inset-left);
    margin-right: constant(safe-area-inset-right);
}

.modal-header {
    background: linear-gradient(135deg, var(--brand-primary), #1976d2);
    color: var(--bs-white);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--bs-border-color);
    padding: 1.5rem 2rem;
}

/* Dark mode styles for date range */
[data-bs-theme="dark"] .date-range-display {
    background: var(--bs-dark);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

[data-bs-theme="dark"] .date-range-display:hover {
    background: var(--brand-primary);
    color: var(--bs-white);
}

[data-bs-theme="dark"] .modal-content {
    background: var(--bs-dark);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .modal-header {
    background: linear-gradient(135deg, var(--brand-primary), #1565c0);
}

[data-bs-theme="dark"] .quick-range-btn {
    border-color: var(--bs-secondary);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .quick-range-btn:hover:not(:disabled) {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

[data-bs-theme="dark"] .quick-range-btn:disabled {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
    opacity: 0.4;
}

[data-bs-theme="dark"] .form-control {
    border-color: var(--bs-secondary);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .form-control:focus {
    border-color: var(--brand-primary);
    color: var(--bs-light);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* ======================================
   APPLE CALENDAR-STYLE DATE PICKER
   ====================================== */

/* Calendar Modal Sizing */
.calendar-modal .modal-dialog {
    max-width: 500px;
    margin: 1rem auto;
}

.calendar-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.calendar-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.calendar-header .btn-close:hover {
    opacity: 1;
}

/* Calendar Body */
.calendar-body {
    background: #f8f9fa;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent overflow from the modal body */
}

/* Current Week Indicator */
.current-week-indicator {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.selected-week-display {
    font-weight: 600;
    font-size: 1rem;
    color: #2196f3;
    margin-bottom: 0.5rem;
}

.week-highlight-info {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Calendar Scroll Container */
.calendar-scroll-container {
    flex: 1;
    position: relative;
    overflow-y: auto !important;
    /* Force scrolling */
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    /* Important: allows flex child to shrink */
    height: 326px;
    /* Fallback explicit height */
    max-height: 350px;
    /* Constrain maximum height */
}

/* Scrollbar Styling */
.calendar-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.calendar-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.calendar-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.calendar-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Calendar Months */
.calendar-months-wrapper {
    padding: 0;
    min-height: 100%;
    height: auto;
    /* Let content determine height */
}

.calendar-month {
    background: white;
    margin-bottom: 0;
    border-bottom: 1px solid #e9ecef;
    min-height: 280px;
    /* Ensure each month has sufficient height */
}

.calendar-month:last-child {
    border-bottom: none;
}

.month-header {
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Days of Week Header */
.days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.day-header {
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.other-month {
    color: #adb5bd;
}

.calendar-day.today {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.calendar-day.weekend {
    color: #dc3545;
}

.calendar-day.other-month.weekend {
    color: #f8d7da;
}

/* Week Highlight Overlay */
.week-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.highlight-week-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196f3;
    border-left: none;
    border-right: none;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.highlight-week-bar.active {
    background: rgba(33, 150, 243, 0.15);
    border-color: #1976d2;
}

/* Calendar Quick Navigation */
.calendar-quick-nav {
    background: white;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.quick-nav-btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #2196f3;
    color: #2196f3;
    background: white;
    transition: all 0.2s ease;
}

.quick-nav-btn:hover {
    background: #2196f3;
    color: white;
    transform: translateY(-1px);
}

/* Calendar Footer */
.calendar-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.calendar-footer .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.calendar-footer .btn-primary:disabled {
    background-color: #c1c1c1;
    border-color: #c1c1c1;
    opacity: 1;
}

/* Dark Mode Styles for Calendar */
[data-bs-theme="dark"] .calendar-modal-content {
    background: #1a1a1a;
    color: #ffffff;
}

[data-bs-theme="dark"] .calendar-body {
    background: #1a1a1a;
}

[data-bs-theme="dark"] .current-week-indicator {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

[data-bs-theme="dark"] .selected-week-display {
    color: #64b5f6;
}

[data-bs-theme="dark"] .week-highlight-info {
    color: #adb5bd;
}

[data-bs-theme="dark"] .calendar-month {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

[data-bs-theme="dark"] .month-header {
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
    color: #ffffff;
}

[data-bs-theme="dark"] .days-header {
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
}

[data-bs-theme="dark"] .day-header {
    color: #adb5bd;
}

[data-bs-theme="dark"] .calendar-day {
    background: #2d2d2d;
    color: #ffffff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

[data-bs-theme="dark"] .calendar-day.other-month {
    color: #6c757d;
}

[data-bs-theme="dark"] .calendar-day.today {
    background: #1e3a5f;
    color: #64b5f6;
}

[data-bs-theme="dark"] .calendar-day.weekend {
    color: #ff6b6b;
}

[data-bs-theme="dark"] .calendar-day.other-month.weekend {
    color: #5a3a3a;
}

[data-bs-theme="dark"] .highlight-week-bar {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.1);
}

[data-bs-theme="dark"] .highlight-week-bar.active {
    background: rgba(100, 181, 246, 0.15);
    border-color: #42a5f5;
}

[data-bs-theme="dark"] .calendar-quick-nav {
    background: #2d2d2d;
    border-top: 1px solid #404040;
}

[data-bs-theme="dark"] .quick-nav-btn {
    border-color: #64b5f6;
    color: #64b5f6;
    background: #2d2d2d;
}

[data-bs-theme="dark"] .quick-nav-btn:hover {
    background: #64b5f6;
    color: #1a1a1a;
}

[data-bs-theme="dark"] .calendar-footer {
    background: #2d2d2d;
    border-top: 1px solid #404040;
}

/* ======================================
   API Preloader Styles
   ====================================== */

#apiPreloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.preloader-content {
    background: transparent;
    padding: 2rem;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.preloader-spinner {
    color: #007bff;
    margin-bottom: 1rem;
}

.preloader-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.preloader-fade-out {
    animation: fadeOut 0.2s ease-in-out forwards;
}

/* Dark mode support for preloader */
[data-bs-theme="dark"] .preloader-content {
    color: #ffffff;
}

[data-bs-theme="dark"] .preloader-text {
    color: #ffffff;
}

[data-bs-theme="dark"] .preloader-spinner {
    color: #64b5f6;
}