/* Feedback Widget Styles */
.feedback-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.feedback-fab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.feedback-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.feedback-fab:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.7);
    }
}

/* Feedback Modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.feedback-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feedback-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.feedback-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.feedback-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

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

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

.feedback-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.feedback-form-group input,
.feedback-form-group textarea,
.feedback-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus,
.feedback-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.feedback-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.feedback-type-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.feedback-type-btn i {
    font-size: 20px;
}

.feedback-type-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.feedback-type-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rating-stars {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.rating-star {
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.feedback-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.feedback-submit-btn:active {
    transform: translateY(0);
}

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

.feedback-success-message,
.feedback-error-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.feedback-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.feedback-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.feedback-success-message.show,
.feedback-error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark theme support */
[data-theme="dark"] .feedback-modal-content {
    background: #1a1a2e;
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-modal-body {
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-form-group label {
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-form-group input,
[data-theme="dark"] .feedback-form-group textarea,
[data-theme="dark"] .feedback-form-group select {
    background: #2d2d44;
    border-color: #3d3d5c;
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-form-group input:focus,
[data-theme="dark"] .feedback-form-group textarea:focus,
[data-theme="dark"] .feedback-form-group select:focus {
    border-color: #667eea;
    background: #2d2d44;
}

[data-theme="dark"] .feedback-type-btn {
    background: #2d2d44;
    border-color: #3d3d5c;
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-type-btn:hover {
    background: #3d3d5c;
}

[data-theme="dark"] .feedback-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}


@media (max-width: 480px) {
    .feedback-widget {
        bottom : 30px;
    }
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .feedback-widget {
        bottom: 20px;
        right: 20px;
    }

    .feedback-fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .feedback-modal-content {
        width: 95%;
        margin: 10px;
    }

    .feedback-modal-header {
        padding: 20px;
    }

    .feedback-modal-header h2 {
        font-size: 20px;
    }

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

    .feedback-type-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tooltip for feedback button */
.feedback-fab::before {
    content: 'Give Feedback';
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.feedback-fab:hover::before {
    opacity: 1;
}

.feedback-fab::after {
    content: '';
    position: absolute;
    right: 60px;
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.feedback-fab:hover::after {
    opacity: 1;
}
