/* ── Feedback Tab (right edge) ──────────────────────────── */
.feedback-tab {
    position: fixed;
    top: 50%;
    right: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transform-origin: center center;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 1049;
    box-shadow: -2px 0 12px rgba(79,70,229,0.3);
    transition: background 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}
.feedback-tab:hover {
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
    box-shadow: -2px 0 18px rgba(79,70,229,0.5);
}
.feedback-tab i { margin-right: 6px; }

/* ── Overlay ───────────────────────────────────────────── */
.feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.feedback-overlay.open { opacity: 1; visibility: visible; }

/* ── Slide-out Panel ───────────────────────────────────── */
.feedback-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 1051;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}
.feedback-panel.open { right: 0; }

/* Header */
.feedback-panel-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.feedback-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.feedback-panel-header p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.85;
}
.feedback-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.feedback-close-btn:hover { background: rgba(255,255,255,0.25); }

/* Body */
.feedback-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Context badge */
.feedback-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F0F0FF;
    color: #4F46E5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}
.feedback-context-badge i { font-size: 11px; }

/* Sentiment picker */
.feedback-sentiment-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}
.feedback-sentiment-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.feedback-sentiment-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}
.feedback-sentiment-btn .sentiment-emoji {
    font-size: 28px;
    line-height: 1;
}
.feedback-sentiment-btn:hover { border-color: #A5B4FC; background: #F5F3FF; }
.feedback-sentiment-btn.selected {
    border-color: #4F46E5;
    background: #EEF2FF;
    color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* Text area */
.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #111827;
}
.feedback-textarea:focus { border-color: #4F46E5; }
.feedback-textarea::placeholder { color: #9CA3AF; }

/* Disclosure */
.feedback-disclosure {
    margin-top: 12px;
    padding: 10px 12px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    font-size: 12px;
    color: #92400E;
    line-height: 1.5;
}
.feedback-disclosure i { margin-right: 4px; }

/* Submit */
.feedback-submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    font-family: 'Inter', sans-serif;
}
.feedback-submit-btn:hover { opacity: 0.92; }
.feedback-submit-btn:active { transform: scale(0.98); }
.feedback-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success state */
.feedback-success {
    text-align: center;
    padding: 40px 20px;
}
.feedback-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #059669;
}
.feedback-success h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.feedback-success p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}
