/* Add Seats Modal - Premium Design & Animation */

/* --- Overlay --- */
#add-seats-modal-overlay,
#block-domain-modal-overlay,
#report-domain-modal-overlay,
#allow-domain-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(16, 24, 40, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Default Hidden State */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active State (Entry) */
#add-seats-modal-overlay.is-active,
#block-domain-modal-overlay.is-active,
#report-domain-modal-overlay.is-active,
#allow-domain-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: overlayFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Exiting State */
#add-seats-modal-overlay.is-exiting,
#block-domain-modal-overlay.is-exiting,
#report-domain-modal-overlay.is-exiting,
#allow-domain-modal-overlay.is-exiting {
    visibility: visible;
    pointer-events: none;
    animation: overlayFadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Modal Container --- */
.add-seats-modal-container {
    width: 100%;
    padding: 16px;
    max-width: 600px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow:
        0px 20px 24px -4px rgba(16, 24, 40, 0.08),
        0px 8px 8px -4px rgba(16, 24, 40, 0.03);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    margin: 16px;
}

/* Trigger animation when active */
#add-seats-modal-overlay.is-active .add-seats-modal-container,
#block-domain-modal-overlay.is-active .add-seats-modal-container,
#report-domain-modal-overlay.is-active .add-seats-modal-container,
#allow-domain-modal-overlay.is-active .add-seats-modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: modalPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Trigger animation when exiting */
#add-seats-modal-overlay.is-exiting .add-seats-modal-container,
#block-domain-modal-overlay.is-exiting .add-seats-modal-container,
#report-domain-modal-overlay.is-exiting .add-seats-modal-container,
#allow-domain-modal-overlay.is-exiting .add-seats-modal-container {
    animation: modalPopOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Animations --- */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
        filter: blur(10px);
    }

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

@keyframes modalPopOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
        filter: blur(5px);
    }
}

/* --- Modal Content Layout --- */
.add-seats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-seats-title {
    font-family: 'Inter_28pt-SemiBold', sans-serif;
    font-size: 32px;
    color: #252525;
    margin: 0;
}

.add-seats-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    margin-top: 4px;
}

.add-seats-close-btn:hover {
    background-color: #F2F4F7;
    color: #101828;
}

.add-seats-desc {
    font-family: 'Inter_18pt-Regular', sans-serif;
    font-size: 14px;
    color: #737373;
    margin-top: 4px;
    margin-bottom: 40px;
}

/* Form Styles */
.add-seats-form-group {
    margin-bottom: 16px;
}

.add-seats-label {
    display: block;
    font-family: 'Inter_28pt-SemiBold', sans-serif;
    font-size: 14px;
    color: #344054;
    margin-bottom: 6px;
}

.add-seats-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    font-family: 'Inter_18pt-Regular', sans-serif;
    font-size: 16px;
    color: #101828;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.add-seats-input:focus {
    border-color: #1452CA;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(20, 82, 202, 0.24);
    outline: none;
}

/* Textarea Override */
.add-seats-textarea {
    height: 120px;
    resize: none;
    vertical-align: top;
}

.add-seats-submit-btn {
    width: 100%;
    height: 48px;
    background-color: #1452CA;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Inter_28pt-SemiBold', sans-serif !important;
    font-size: 16px;
    cursor: pointer;
    content: "";
    /* fix empty content */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Optional: Space between icon (if any) and text */
}

.add-seats-submit-btn:hover {
    background-color: #1042A6;
}

/* Close Button (Second Button) */
.btn-text-close {
    width: 100%;
    margin-top: 12px;
    background: transparent;
    border: none;
    color: #344054;
    font-family: 'Inter_28pt-SemiBold', sans-serif;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
}

.btn-text-close:hover {
    color: #101828;
    background-color: #F2F4F7;
}

@media (max-width: 640px) {
    .add-seats-modal-container {
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .add-seats-form-group {
        margin-bottom: 16px;
    }

    .add-seats-title {
        font-size: 20px;
    }

    .add-seats-desc {
        margin-bottom: 25px;
    }

    .add-seats-close-btn img {
        width: 24px;
        height: 24px;
    }

    .add-seats-input {
        font-size: 16px;
    }
}