/*
 * Scheduled maintenance notice - shared by the login page and every dashboard.
 * Markup is injected by js/maintenance-notice.js, so this file and that one
 * are the only two places the notice needs to be edited.
 */

/* ===== Scheduled Maintenance Announcement Modal ===== */
.maint-modal .modal-dialog {
    max-width: 430px;
}

.maint-modal .modal-dialog .modal-content {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 3.5rem);
    margin: 0;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px rgba(20, 10, 15, 0.35), 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: maintPop 0.5s cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

@keyframes maintPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

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

.maint-header {
    position: relative;
    flex-shrink: 0;
    padding: 22px 26px 16px;
    text-align: center;
    background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #fdf4f5 100%);
}

.maint-header::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0) 0%, #dc3545 50%, rgba(220, 53, 69, 0) 100%);
}

.maint-logo {
    width: 140px;
    max-width: 60%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.maint-eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #dc3545;
    margin-bottom: 4px;
}

.maint-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #2f3542;
}

.maint-title i {
    font-size: 0.95rem;
    color: #dc3545;
    margin-right: 7px;
}

.maint-modal .modal-body {
    padding: 20px 26px 16px;
    color: #55595f;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.maint-modal .modal-body p {
    text-align: center;
    margin-bottom: 0;
}

.maint-intro {
    font-size: 0.92rem;
    line-height: 1.65;
}

.maint-intro strong {
    color: #2f3542;
}

.maint-intro .maint-accent {
    color: #dc3545;
}

.maint-window {
    margin: 16px 0 14px;
    padding: 15px 16px 14px;
    text-align: center;
    border: 1px solid #f0dcae;
    border-radius: 12px;
    background: linear-gradient(160deg, #fffdf6 0%, #fff5e0 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.maint-window-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a9801f;
    margin-bottom: 10px;
}

.maint-days {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.maint-day {
    padding: 4px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ecd8a6;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a6a15;
}

.maint-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #2f3542;
}

.maint-time i {
    font-size: 1rem;
    color: #d19b1e;
}

.maint-timezone {
    display: block;
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a9801f;
}

/* reassurance that daytime use is unaffected */
.maint-daytime {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #cfe9d6;
    background: #f3faf5;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #35704b;
}

.maint-daytime i {
    color: #4c9c6a;
    margin-right: 5px;
}

.maint-modal .modal-footer {
    flex-shrink: 0;
    justify-content: center;
    padding: 14px 26px 18px;
    background: #fff;
    border-top: 1px solid #f2f2f4;
}

.maint-btn {
    padding: 9px 30px;
    border: none;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #fff;
    background: linear-gradient(135deg, #e14b5a 0%, #c82333 100%);
    box-shadow: 0 6px 18px rgba(200, 35, 51, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.maint-btn:hover,
.maint-btn:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 35, 51, 0.4);
}

.maint-btn:active {
    transform: translateY(0);
}

/* short viewports: trim the logo first, it is the tallest element */
@media (max-height: 700px) {
    .maint-logo {
        width: 110px;
        margin-bottom: 8px;
    }

    .maint-header {
        padding: 16px 26px 13px;
    }

    .maint-modal .modal-body {
        padding: 16px 26px 14px;
    }
}

@media (max-width: 420px) {
    .maint-modal .modal-dialog .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .maint-header {
        padding: 18px 18px 14px;
    }

    .maint-modal .modal-body {
        padding: 18px 18px 14px;
    }

    .maint-modal .modal-footer {
        padding: 12px 18px 16px;
    }

    .maint-title {
        font-size: 1.05rem;
    }

    .maint-time {
        font-size: 1.1rem;
    }
}
