   /* Basic Reset */


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%; /* Responsive width */
    max-width: 500px; /* Maximum width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-in-out; /* Fade-in animation */
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}

/* Message Styles */
.messages {
    margin-top: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
    color: #fff;
    
}

.alert.success {
    color: #4CAF50;
}

.alert.error {
   color: #fc3f32;
    
}

.alert.warning {
    color: #ff9800;
}

.alert.info {
    color: #2196F3;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .modal-content {
        width: 95%; /* Wider on smaller screens */
        padding: 15px;
    }

    .alert {
        font-size: 14px; /* Smaller font size for mobile */
    }
}