/* Feedback Widget Styles */
.feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.feedback-btn {
    background: #0e81ee;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.feedback-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.feedback-btn .emoji {
    font-size: 1.2rem;
}

.feedback-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

[data-theme="light"] .feedback-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feedback-widget.expanded .feedback-panel {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.feedback-widget.expanded .feedback-btn {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feedback-header h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

[data-theme="light"] .feedback-header h3 {
    color: #0f172a;
}

.close-feedback {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-feedback:hover {
    color: white;
}

[data-theme="light"] .close-feedback:hover {
    color: #0f172a;
}

.stars-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars-rating input {
    display: none;
}

.stars-rating label {
    font-size: 2rem;
    color: #334155;
    cursor: pointer;
    transition: color 0.2s;
}

[data-theme="light"] .stars-rating label {
    color: #cbd5e1;
}

.stars-rating label:hover,
.stars-rating label:hover ~ label,
.stars-rating input:checked ~ label {
    color: #fbbf24;
}

.feedback-panel textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    margin-bottom: 15px;
    box-sizing: border-box;
}

[data-theme="light"] .feedback-panel textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.feedback-panel textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.submit-feedback {
    width: 100%;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-feedback:hover {
    background: #4338ca;
}

.feedback-success {
    text-align: center;
    color: #10b981;
    font-weight: 600;
    padding: 20px 0;
}

.feedback-field {
    margin-bottom: 12px;
}

.feedback-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 5px;
}

[data-theme="light"] .feedback-label {
    color: #475569;
}

.feedback-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    cursor: pointer;
}

[data-theme="light"] .feedback-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.feedback-select option {
    background: #1e293b;
    color: white;
}

[data-theme="light"] .feedback-select option {
    background: white;
    color: #0f172a;
}

@media (max-width: 480px) {
    .feedback-btn .text {
        display: none;
    }
    
    .feedback-btn {
        padding: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        justify-content: center;
        bottom: 15px;
        right: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        opacity: 0.85;
    }
    
    .feedback-btn:hover, .feedback-btn:active {
        opacity: 1;
    }
    
    .feedback-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .feedback-panel {
        width: 280px;
        bottom: 10px;
        right: 0;
    }
}
