@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.modal{
    display: none;
    justify-content: center;
    align-items: center; /* Better centering */
    position: fixed;
    z-index: 1000; /* Higher z-index */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Darker overlay */
}

.modal-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: rgba(106, 133, 255, 0.603); /* Match your theme */
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid white;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.modal-text{
    color: black;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
}

.rest-button{
    padding: 12px 24px;
    color: rgb(106, 133, 255);
    background-color: white;
    border: 1px solid rgba(106, 133, 255, 0.603);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Roboto", sans-serif;
}

.rest-button:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/*TOAST*/
.toast {
    display: none;
    justify-content: center; /* Change from right to center */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0; /* Change from right to left */
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.toast-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px; /* Change from bottom to top */
    padding: 20px 10px;
    background-color: rgba(0, 238, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 350px;
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    
    /* Animation properties */
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-container.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-container.hide {
    transform: translateY(-100px);
    opacity: 0;
}

.toast-text {
    color: black;
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 480px) {
    .modal-container {
        width: 70%;
    }

    .toast-container {
        left: 50%;
        transform: translateX(-50%) translateY(-100px);
    }

    .toast-container.show {
        transform: translateX(-50%) translateY(0);
    }

    .toast-container.hide {
        transform: translateX(-50%) translateY(-100px);
    }
}