﻿.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Start at 0 for fade-in animation below */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOverlayIn 0.3s forwards; /* keyframes handle the fade */
}

@keyframes fadeOverlayIn {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

.modal-window {
    background-color: #2C2C2C;
    color: #E0E0E0;
    padding: 1.25rem;
    border-radius: 0.625rem;
    width: 90%;
    max-width: 30rem; /* Increased from 25rem to 30rem for more width */
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(2rem);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
    }

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 1.25rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

    .close-button:hover {
        color: #fff;
    }

.modal-body {
    padding: 0 0.5rem 0.5rem;
}

.ins-alert.ins-alert-danger {
    background-color: #FFD3D3; /* Light red background */
    color: #B00020; /* Darker red text for better contrast */
    padding: 0.75rem;
    border: 1px solid #B00020; /* Subtle border matching the text color */
    border-radius: 0.5rem; /* Slightly larger border radius for smoother edges */
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-control {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #555;
    border-radius: 0.3125rem;
    background-color: #3A3A3A;
    color: #E0E0E0;
    font-size: 1rem;
}

    .form-control:focus {
        border-color: #66B2FF;
        box-shadow: 0 0 0 2px rgba(102, 178, 255, 0.25);
        outline: none;
    }

.submit-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 0.3125rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .submit-btn:hover {
        background-color: #2A6DB5;
    }

body.modal-open {
    overflow: hidden; /* Prevent scrolling when modal is open */
}

.label {
    font-size: 0.875rem;
    font-weight: 600;
}