/* ========================================
   REPORT ISSUE MODAL
   Follows chat-action-modals pattern
   ======================================== */

/* ==================== MODAL SPECIFIC OVERRIDES ==================== */

/* Base modal - always centered */
#reportIssueModal {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    z-index: 9999;
    transition: background 0.2s ease, backdrop-filter 0.2s ease;
}

#reportIssueModal.show {
    display: flex !important;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

/* Wider modal for report issue */
#reportIssueModal .chat-action-modal-dialog {
    max-width: 680px;
    width: 90%;
    margin: 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: scale(0.95);
    opacity: 0;
}

@media (min-width: 992px) {
    #reportIssueModal .chat-action-modal-dialog {
        max-width: 720px;
    }
}

/* Compact layout - reduce vertical spacing */
#reportIssueModal .chat-action-modal-header {
    padding: 18px 24px 14px;
}

#reportIssueModal .chat-action-modal-body {
    padding: 16px 24px;
}

#reportIssueModal .chat-action-modal-footer {
    padding: 14px 24px 18px;
}

#reportIssueModal .chat-action-description {
    margin-bottom: 14px;
}

#reportIssueModal .chat-action-description-text {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0;
}

#reportIssueModal .chat-action-info-box {
    padding: 12px 16px;
    margin-top: 14px;
}

#reportIssueModal .chat-action-info-list {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

#reportIssueModal .chat-action-info-list li {
    font-size: 13px;
    margin-bottom: 2px;
}

#reportIssueModal .chat-action-info-title {
    font-size: 13px;
}

#reportIssueModal.show .chat-action-modal-dialog {
    transform: scale(1);
    opacity: 1;
}

#reportIssueModal .chat-action-modal-content {
    transform: none;
    opacity: 1;
}

/* Warning/Issue icon style */
.report-issue-modal-icon {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
}

/* ==================== FORM FIELDS ==================== */

.report-issue-field {
    margin-bottom: 14px;
}

.report-issue-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #a8abb3;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-issue-select {
    width: 100%;
    padding: 10px 14px;
    background: #1e2129;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e4e6eb;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8abb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.report-issue-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.report-issue-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.report-issue-select option {
    background: #1e2129;
    color: #e4e6eb;
    padding: 12px;
}

.report-issue-textarea {
    width: 100%;
    padding: 10px 14px;
    background: #1e2129;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e4e6eb;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    max-height: 120px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.report-issue-textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.report-issue-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.report-issue-textarea::placeholder {
    color: #6b7280;
}

.report-issue-char-count {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.report-issue-char-count.warning {
    color: #f59e0b;
}

.report-issue-char-count.error {
    color: #ef4444;
}

/* ==================== INFO BOX ==================== */

.report-issue-info-box {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}

.report-issue-info-box .chat-action-info-title {
    color: #f59e0b !important;
}

.report-issue-info-box .chat-action-info-title i {
    color: #f59e0b !important;
}

/* ==================== WARNING BUTTON ==================== */

.chat-action-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}

.chat-action-btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.chat-action-btn-warning:active {
    transform: translateY(0);
}

.chat-action-btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chat-action-btn-warning.loading {
    pointer-events: none;
}

.chat-action-btn-warning.loading span {
    opacity: 0;
}

.chat-action-btn-warning.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== VALIDATION STATES ==================== */

.report-issue-select.invalid,
.report-issue-textarea.invalid {
    border-color: #ef4444;
}

.report-issue-select.invalid:focus,
.report-issue-textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ==================== LIGHT THEME ==================== */

html[data-theme='light'] .report-issue-select,
html[data-theme='light'] .report-issue-textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

html[data-theme='light'] .report-issue-select:hover,
html[data-theme='light'] .report-issue-textarea:hover {
    border-color: #cbd5e1;
}

html[data-theme='light'] .report-issue-select:focus,
html[data-theme='light'] .report-issue-textarea:focus {
    border-color: #f59e0b;
}

html[data-theme='light'] .report-issue-select option {
    background: #f8fafc;
    color: #1e293b;
}

html[data-theme='light'] .report-issue-label {
    color: #64748b;
}

html[data-theme='light'] .report-issue-char-count {
    color: #94a3b8;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 575.98px) {
    .report-issue-modal-content {
        margin: 16px;
    }
    
    .report-issue-textarea {
        min-height: 80px;
    }
}

