/* S2.8.a - reports.css - (v1.3 - FINAL Dark Mode FIX) */

#report-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#report-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    
    /* [תיקון] שימוש בצבעים קבועים במקום var() */
    background-color: #FFFFFF; 
    color: #333333; 
    
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 500px;
    z-index: 1051;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- דריסה למצב כהה --- */
body[data-skin="default"] #report-modal {
    background-color: #3a3a3a; /* רקע כהה למודאל */
    color: #FFFFFF; /* טקסט לבן */
    border-color: #555555;
}
body[data-skin="default"] .report-modal-header {
    border-bottom-color: #555555;
}
body[data-skin="default"] .report-modal-header h3 {
    color: #FFFFFF;
}
body[data-skin="default"] #report-modal-close {
    color: #AAAAAA;
}
body[data-skin="default"] .report-modal-body label {
    color: #FFFFFF;
}
body[data-skin="default"] .report-modal-body select,
body[data-skin="default"] .report-modal-body textarea {
    background-color: #2a2a2a;
    color: #FFFFFF;
    border-color: #555555;
}
body[data-skin="default"] .report-modal-body select option {
    background-color: #3a3a3a;
    color: #FFFFFF;
}
body[data-skin="default"] .report-modal-footer {
    background-color: #2a2a2a;
    border-top-color: #555555;
}
/* --- סוף דריסה למצב כהה --- */


/* מצב פתוח */
#report-modal-backdrop.open,
#report-modal.open {
    display: block;
    opacity: 1;
}
#report-modal.open {
    transform: translate(-50%, -50%) scale(1);
}

.report-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.report-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.report-modal-header h3 i {
    color: #E74C3C;
}
#report-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.report-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.report-modal-body .form-group {
    margin-bottom: 1.25rem;
}
.report-modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-modal-body select:focus,
.report-modal-body textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.report-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #EEEEEE;
    text-align: left;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* הודעות שגיאה/הצלחה */
#report-message {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}
#report-message.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}
#report-message.error {
    background-color: #FFEBEE;
    color: #D32F2F;
    border: 1px solid #FFCDD2;
}

/* עיצוב כפתור דיווח */
.report-btn {
    color: var(--danger) !important;
    font-weight: 700;
    background-color: var(--panel-1) !important;
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
}
.report-btn:hover {
    background: rgba(231, 76, 60, 0.1) !important;
    border-color: var(--danger) !important;
}
.report-btn .feather {
    color: var(--danger) !important;
}
.theme-youth .report-btn {
    background: var(--danger) !important;
    color: #fff !important;
    border-color: var(--danger) !important;
}
.theme-youth .report-btn:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}
.theme-youth .report-btn .feather {
    color: #fff !important;
}