/* Módosítva: .modal -> .custom-modal a Bootstrap konfliktus elkerülése végett */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.custom-modal .modal-content {
    background-color: var(--bg-card, #fefefe);
    margin: 10% auto;
    padding: 2rem;
    border: none;
    width: 80%;
    max-width: 500px;
    border-radius: var(--radius-md, 0.75rem);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


.custom-modal .modal-close {
    color: var(--text-muted);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.custom-modal .modal-close:hover,
.custom-modal .modal-close:focus {
    color: var(--text-main);
    transform: rotate(90deg);
    text-decoration: none;
}
