/* =====================================================
   Exit Popup & Seats Filled Bar Styles - IIT Bhilai Portal
   Color Scheme: Deep Purple (#3f177f / #2e0969)
   ===================================================== */

.exit-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
}

.exit-popup-backdrop.active .exit-popup-card {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.exit-popup-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.exit-popup-header {
    background: linear-gradient(135deg, #2e0969 0%, #3f177f 100%);
    padding: 26px 24px 22px 24px;
    text-align: center;
    color: #ffffff;
}

.exit-popup-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.exit-popup-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

.exit-popup-body {
    padding: 28px 28px 26px 28px;
    text-align: center;
}

.exit-popup-text {
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
    margin: 0 0 24px 0;
    font-weight: 500;
}

.exit-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.exit-popup-btn {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    border: none;
    display: inline-block;
}

.exit-popup-btn-primary {
    background: #3f177f;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(63, 23, 127, 0.35);
    flex: 1.2;
}

.exit-popup-btn-primary:hover {
    background: #2e0969;
    box-shadow: 0 6px 18px rgba(46, 9, 105, 0.45);
    transform: translateY(-1px);
}

.exit-popup-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #d1d5db;
    flex: 0.8;
}

.exit-popup-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

/* =====================================================
   Seats Filled Progress Bar Component
   ===================================================== */
.seats-filled-container {
    background: #ffffff;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.seats-filled-track {
    flex: 1;
    height: 18px;
    background-color: #ebedf0;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.seats-filled-progress {
    height: 100%;
    width: 75%;
    border-radius: 50px;
    background: repeating-linear-gradient(
        -45deg,
        #3f177f,
        #3f177f 10px,
        #5c24b5 10px,
        #5c24b5 20px
    );
    transition: width 1s ease-in-out;
}

.seats-filled-text {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    letter-spacing: 0.2px;
    font-family: inherit;
}

@media (max-width: 480px) {
    .exit-popup-card {
        max-width: 95%;
    }
    .exit-popup-header {
        padding: 20px 16px 18px 16px;
    }
    .exit-popup-title {
        font-size: 18px;
    }
    .exit-popup-subtitle {
        font-size: 13px;
    }
    .exit-popup-body {
        padding: 20px 18px;
    }
    .exit-popup-actions {
        flex-direction: column;
        gap: 10px;
    }
    .exit-popup-btn {
        width: 100%;
    }
    .seats-filled-container {
        padding: 6px 12px;
        gap: 10px;
        margin-top: 12px;
    }
    .seats-filled-track {
        height: 14px;
    }
    .seats-filled-text {
        font-size: 12px;
    }
}
