/**
 * Question Report Modal Styles
 * Lightweight, minimal design
 */

.scp-report-btn {
    font-size: 11px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--primary-color, #0073aa);
    color: var(--primary-color, #0073aa);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    font-weight: normal;
}

.scp-report-btn:hover {
    background: var(--primary-color, #0073aa);
    color: #fff;
}

.scp-report-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
    border-color: #ccc;
    color: #666;
}

.scp-report-btn.reported {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
    cursor: default;
}

/* Single question page button styling */
.scp-card-question .scp-report-btn {
    display: block;
    margin: 15px 0 0 auto;
    text-align: right;
}

/* Modal Overlay */
.scp-report-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.scp-report-modal-overlay.active {
    display: flex;
}

/* Modal */
.scp-report-modal {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scp-report-modal-header {
    margin-bottom: 15px;
}

.scp-report-modal-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.scp-report-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.scp-report-modal-close:hover {
    color: #333;
}

.scp-report-modal-body {
    margin-bottom: 15px;
}

.scp-report-form-group {
    margin-bottom: 15px;
}

.scp-report-form-group:last-child {
    margin-bottom: 0;
}

.scp-report-form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.scp-report-form-select,
.scp-report-form-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.scp-report-form-select:focus,
.scp-report-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #0073aa);
}

.scp-report-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.scp-report-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.scp-report-btn-cancel {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.scp-report-btn-cancel:hover {
    background: #e5e5e5;
}

.scp-report-btn-submit {
    padding: 8px 16px;
    background: var(--primary-color, #0073aa);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
}

.scp-report-btn-submit:hover {
    background: var(--primary-color-dark, #005177);
}

.scp-report-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Message */
.scp-report-success {
    display: none;
    text-align: center;
    padding: 20px;
    color: #28a745;
}

.scp-report-success.active {
    display: block;
}

.scp-report-success-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.scp-report-success-text {
    font-size: 16px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .scp-report-modal {
        width: 95%;
        padding: 15px;
    }
    
    .scp-report-modal-title {
        font-size: 16px;
    }
}
