﻿/* ==========================================
   Jabalpur Discom (MPEZ) Maintenance Popup
   ========================================== */

/* Overlay Container */
.mpez-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .mpez-popup-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Main Popup Card */
.mpez-popup-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(249, 115, 22, 0.15);
    overflow: hidden;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mpez-popup-overlay.show .mpez-popup-card {
    transform: scale(1) translateY(0);
}

/* Close Button Top-Right Corner */
.mpez-popup-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

    .mpez-popup-close-btn:hover {
        background: #fee2e2;
        color: #ef4444;
        border-color: #fca5a5;
        transform: rotate(90deg) scale(1.05);
    }

/* Popup Header */
.mpez-popup-header {
    padding: 28px 28px 20px 28px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-bottom: 1px solid #fed7aa;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.mpez-popup-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.mpez-popup-header-text {
    padding-right: 28px; /* space so text doesn't overlap close button */
}

.mpez-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ea580c;
    background: rgba(249, 115, 22, 0.12);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.mpez-popup-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.mpez-popup-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

/* Popup Body */
.mpez-popup-body {
    padding: 24px 28px;
}

/* Highlight Box for Maintenance Schedule */
.mpez-popup-time-box {
    background: #fff7ed;
    border: 1.5px dashed #fdba74;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mpez-popup-time-icon {
    font-size: 24px;
    color: #f97316;
    flex-shrink: 0;
}

.mpez-popup-time-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9a3412;
    display: block;
    margin-bottom: 2px;
}

.mpez-popup-time-value {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}

.mpez-popup-message {
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 14px;
}

    .mpez-popup-message:last-child {
        margin-bottom: 0;
    }

/* Popup Footer */
.mpez-popup-footer {
    padding: 16px 28px 24px 28px;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f1f5f9;
}

.mpez-popup-action-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
}

    .mpez-popup-action-btn:hover {
        background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
    }

    .mpez-popup-action-btn:active {
        transform: translateY(0);
    }

/* Responsive adjustments */
@media (max-width: 576px) {
    .mpez-popup-header {
        padding: 22px 20px 16px 20px;
    }

    .mpez-popup-body {
        padding: 18px 20px;
    }

    .mpez-popup-footer {
        padding: 14px 20px 20px 20px;
    }

    .mpez-popup-title {
        font-size: 14.5px;
    }

    .mpez-popup-close-btn {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
