﻿/* Modern Mobile Toast Stack CSS */

#toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.modern-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 20px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600; /* Bolder font for crystal-clear readability */
    pointer-events: auto;
    /* Smooth Entrance Transition */
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .modern-toast.active {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* --- High-Visibility Vibrant Gradients --- */

    .modern-toast.success {
        background: linear-gradient(135deg, #034f39 0%, #059669 100%);
        border: 1px solid rgb(0, 163, 116);
    }

    .modern-toast.error {
        background: linear-gradient(135deg,#820404 0%, #DC2626 100%);
        border: 1px solid rgb(214, 4, 4);
    }

    .modern-toast.info {
        background: linear-gradient(135deg,#0d2978 0%, #2563EB 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
/* --- Typography & Elements --- */

.toast-message {
    flex-grow: 1;
    padding-right: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Protects text contrast */
}

/* Premium Contrast Close Button */
.toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .toast-close:hover {
        background: rgba(255, 255, 255, 0.35);
    }

/* CUSTOM MODAL WINDOW STYLES */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 14, 0.85);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #141B2C;
    border: 1px solid #242D45;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

    .modal-overlay.active .modal-box {
        transform: translateY(0);
    }

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-text {
    color: #98A2B3;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contact-box {
    background: #101726;
    border: 1px solid #2B354D;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 20px;
}

.contact-label {
    font-size: 11px;
    color: #7E879F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-phone {
    font-size: 18px;
    font-weight: 700;
    color: #FF8A1D;
    display: block;
    margin-top: 2px;
}

.btn-modal {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-warning-modal {
    background: #ff9a28;
    color: #fff;
}