﻿.Modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.15); 
    animation: fadeIn 0.3s ease-in-out;
}

.ModalContent {
    background: #e0e0e0; 
    padding: 20px 30px;
    border-radius: 20px;
    position: relative;
    max-width: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}


.Modal.success .ModalContent {
    background: #daf1d8;
    color: #000;
}


.Modal.error .ModalContent {
    background: #f8d3d6;
    color: #000;
}

.close {
    position: absolute;
    top: -5px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: #666; 
    transition: color 0.2s ease;
}

    .close:hover {
        color: #000; 
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
