/**
 * DataJam Pulse - Feedback Engine Styles
 * Phase 5 - CSS Extraction (Batch 1)
 * Extracted: Dec 14, 2025
 * Source: index.html lines 5231-5498
 * Version: v5.4.10
 */

/* ============================================
   FEEDBACK ENGINE STYLES (v1.0.0)
   ============================================ */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.feedback-overlay.active .feedback-modal {
    transform: translateY(0) scale(1);
}

.feedback-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.feedback-header-content h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.feedback-header-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.feedback-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.feedback-close:hover {
    color: var(--text-primary);
}

.feedback-body {
    padding: 20px 24px;
}

.feedback-question {
    margin-bottom: 24px;
}

.feedback-question:last-child {
    margin-bottom: 0;
}

.feedback-question-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feedback-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #E62F6E, #E94B52);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

.feedback-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-option {
    position: relative;
}

.feedback-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-option label {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-option label:hover {
    border-color: var(--primary-pink);
    color: var(--text-primary);
}

.feedback-option input:checked + label {
    background: linear-gradient(135deg, #E62F6E, #E94B52);
    border-color: transparent;
    color: white;
}

.feedback-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
}

.feedback-textarea::placeholder {
    color: var(--text-muted);
}

.feedback-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.feedback-skip {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s;
}

.feedback-skip:hover {
    color: var(--text-primary);
}

.feedback-submit {
    background: linear-gradient(135deg, #E62F6E, #E94B52);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 47, 110, 0.3);
}

.feedback-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.feedback-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 0 24px;
}

.feedback-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    transition: background 0.2s;
}

.feedback-progress-dot.answered {
    background: linear-gradient(135deg, #E62F6E, #E94B52);
}

.feedback-thank-you {
    text-align: center;
    padding: 40px 24px;
}

.feedback-thank-you-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feedback-thank-you h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.feedback-thank-you p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Light theme adjustments */
[data-theme="light"] .feedback-option label {
    background: #f0f0f0;
}

[data-theme="light"] .feedback-textarea {
    background: #f5f5f5;
}
