/* Maintenance Mode Styles */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

.maintenance-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 80px rgba(73, 177, 225, 0.3);
    animation: maintenanceAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes maintenanceAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.maintenance-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: gearRotate 4s linear infinite;
}

@keyframes gearRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.maintenance-content h1 {
    font-family: 'Chewy', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #49b1e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.maintenance-content p {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(73, 177, 225, 0.2);
    border: 1px solid rgba(73, 177, 225, 0.4);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    color: #49b1e1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #49b1e1;
    border-radius: 50%;
    box-shadow: 0 0 15px #49b1e1;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prevent interaction behind overlay */
body.maintenance-active {
    overflow: hidden !important;
    pointer-events: none;
}

body.maintenance-active #admin-panel,
body.maintenance-active .maintenance-overlay {
    pointer-events: auto;
}

body.editing-temporary {
    pointer-events: auto !important;
    overflow: auto !important;
}

/* Glow decoration */
.glow-blur {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary, #49b1e1);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.glow-1 {
    top: -20px;
    left: -20px;
}

.glow-2 {
    bottom: -20px;
    right: -20px;
}