.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.toast {
    min-width: 300px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.4s ease-out, fadeOut 0.5s 2.5s forwards;
}

/* Color types */
.toast.success { background-color: #2ecc71; }
.toast.error { background-color: #e74c3c; }

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


.error-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dim background */
    backdrop-filter: blur(4px); /* Blur effect */
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.error-modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalPop 0.3s ease-out;
}

.error-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.error-modal h2 {
    color: #333;
    margin-bottom: 10px;
}

.error-modal p {
    color: #666;
    margin-bottom: 20px;
}

.error-modal button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.error-modal button:hover {
    background: #c0392b;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}