/* Modal backdrop */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    /* nem túl sötét */
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.modal.active {
    display: flex;
}


/* Modal box */

.modal-content {
    background: #ffffff;
    color: #111;
    width: 90%;
    max-width: 520px;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    animation: modalFade 0.2s ease;
}


/* Anim */

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Close */

.close {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}


/* From */

#reportForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* labels */

#reportForm label {
    font-size: 13px;
    color: #555;
}


/* inputs */

#reportForm input,
#reportForm textarea,
#reportForm select {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.15s;
}


/* focus */

#reportForm input:focus,
#reportForm textarea:focus,
#reportForm select:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}


/* textarea */

#reportForm textarea {
    min-height: 110px;
    resize: vertical;
}


/* Button */

#reportForm button {
    margin-top: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

#reportForm button:hover {
    background: #2563eb;
}


/* subtle spacing */

.modal-content h2 {
    margin-bottom: 10px;
}


/* Toast */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e1e1e;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 14px;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* success */

.toast.success {
    border-left: 4px solid #4caf50;
}


/* error */

.toast.error {
    border-left: 4px solid #ff4d4d;
}

/* Dark mode */

body.dark-mode .modal {
    background: rgba(0, 0, 0, 0.6);
}

/* box */
body.dark-mode .modal-content {
    background: #1a1a1a;
    color: #e5e5e5;
    border: 1px solid #2a2a2a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* close */
body.dark-mode .close {
    color: #aaa;
}

body.dark-mode .close:hover {
    color: #fff;
}

/* labels */
body.dark-mode #reportForm label {
    color: #aaa;
}

/* inputs */
body.dark-mode #reportForm input,
body.dark-mode #reportForm textarea,
body.dark-mode #reportForm select {
    background: #111;
    border: 1px solid #2a2a2a;
    color: #e5e5e5;
}

/* focus */
body.dark-mode #reportForm input:focus,
body.dark-mode #reportForm textarea:focus,
body.dark-mode #reportForm select:focus {
    border-color: #60a5fa;
    background: #111;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

/* button */
body.dark-mode #reportForm button {
    background: #3b82f6;
}

body.dark-mode #reportForm button:hover {
    background: #2563eb;
}

/* Toast */

body.dark-mode .toast {
    background: #1a1a1a;
    color: #e5e5e5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}