.feedback-fab {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.6);
}

.feedback-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.feedback-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-left: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.feedback-panel.open {
    right: 0;
}

.feedback-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.feedback-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.feedback-panel-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.feedback-panel-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.feedback-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.feedback-form-group {
    margin-bottom: 16px;
}

.feedback-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.feedback-form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.feedback-form-group select,
.feedback-form-group input[type="text"],
.feedback-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.feedback-form-group select:focus,
.feedback-form-group input[type="text"]:focus,
.feedback-form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.feedback-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-form-group select option {
    background: #1e293b;
    color: #e2e8f0;
}

.feedback-char-count {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
    margin-top: 4px;
}

.feedback-char-count.warn {
    color: #f59e0b;
}

.feedback-char-count.limit {
    color: #ef4444;
}

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

.feedback-severity-option {
    flex: 1;
    min-width: 0;
}

.feedback-severity-option input[type="radio"] {
    display: none;
}

.feedback-severity-option label {
    display: block;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 0.8rem;
    color: #94a3b8;
    transition: all 0.2s;
    margin-bottom: 0;
}

.feedback-severity-option input[type="radio"]:checked + label {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
}

.feedback-severity-option label:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.08);
}

.feedback-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-top: 8px;
}

.feedback-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

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

.feedback-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.feedback-status-badge.status-new {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.feedback-status-badge.status-triaged {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
}

.feedback-status-badge.status-planned {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.feedback-status-badge.status-shipped {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.feedback-status-badge.status-declined {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.my-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-feedback-item {
    background: var(--surface-card, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 16px;
    transition: box-shadow 0.15s;
}

.my-feedback-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.my-feedback-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.my-feedback-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #1e293b);
}

.my-feedback-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
}

.my-feedback-item-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    text-transform: capitalize;
}

.my-feedback-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #475569);
    line-height: 1.5;
    margin-top: 4px;
}

.my-feedback-item-response {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid #ef4444;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #475569);
}

.my-feedback-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary, #64748b);
}

.my-feedback-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.my-feedback-empty p {
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.my-feedback-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s;
}

.my-feedback-empty-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .feedback-panel {
        width: 100vw;
        right: -100vw;
    }

    .feedback-panel.open {
        right: 0;
    }

    .feedback-severity-group {
        flex-wrap: wrap;
    }

    .feedback-severity-option {
        flex: 0 0 calc(50% - 4px);
    }

    .feedback-fab {
        bottom: 80px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}
