/* Feedback Widget Styles */

/* Widget Button (Collapsed State) */
.feedback-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #3B82F6;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 9999;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-widget-button:hover {
    background-color: #2563EB;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

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

/* Widget Panel (Expanded State) */
.feedback-widget-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-height: 600px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-widget-panel.show {
    display: flex;
}

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

/* Widget Header */
.feedback-widget-header {
    background-color: #3B82F6;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.feedback-widget-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.feedback-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 150ms;
}

.feedback-widget-close:hover {
    opacity: 1;
}

/* Widget Content */
.feedback-widget-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 520px;
}

/* Menu Cards */
.feedback-menu-card {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 150ms;
}

.feedback-menu-card:hover {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
    transform: translateX(2px);
}

.feedback-menu-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.feedback-menu-card-description {
    font-size: 14px;
    color: #6B7280;
}

/* FAQ List */
.feedback-faq-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.feedback-faq-search:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.feedback-faq-question {
    padding: 12px 16px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 150ms;
}

.feedback-faq-question:hover {
    background-color: #F9FAFB;
}

.feedback-faq-question-text {
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    flex: 1;
}

.feedback-faq-icon {
    font-size: 18px;
    color: #6B7280;
    transition: transform 150ms;
}

.feedback-faq-item.expanded .feedback-faq-icon {
    transform: rotate(180deg);
}

.feedback-faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms, padding 300ms;
    background-color: #F9FAFB;
}

.feedback-faq-item.expanded .feedback-faq-answer {
    max-height: 500px;
    padding: 12px 16px 16px;
}

.feedback-faq-answer-text {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 12px;
}

.feedback-faq-helpful {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6B7280;
}

.feedback-faq-helpful button {
    padding: 4px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 150ms;
}

.feedback-faq-helpful button:hover {
    background-color: #F3F4F6;
}

.feedback-faq-helpful button.voted {
    background-color: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* Report Form */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.feedback-form-label.required::after {
    content: " *";
    color: #EF4444;
}

.feedback-form-input,
.feedback-form-select,
.feedback-form-textarea {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.feedback-form-input:focus,
.feedback-form-select:focus,
.feedback-form-textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.feedback-form-hint {
    font-size: 12px;
    color: #6B7280;
}

.feedback-form-char-count {
    font-size: 12px;
    color: #9CA3AF;
    text-align: right;
}

.feedback-form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-form-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-form-radio-item input[type="radio"] {
    cursor: pointer;
}

.feedback-form-radio-item label {
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
}

/* File Upload */
.feedback-form-file-upload {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 150ms;
}

.feedback-form-file-upload:hover {
    border-color: #3B82F6;
    background-color: #F0F9FF;
}

.feedback-form-file-upload input[type="file"] {
    display: none;
}

.feedback-form-file-text {
    font-size: 14px;
    color: #6B7280;
}

/* Buttons */
.feedback-button-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.feedback-button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms;
    border: none;
}

.feedback-button-primary {
    background-color: #3B82F6;
    color: white;
}

.feedback-button-primary:hover {
    background-color: #2563EB;
}

.feedback-button-primary:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
}

.feedback-button-secondary {
    background-color: white;
    color: #4B5563;
    border: 1px solid #D1D5DB;
}

.feedback-button-secondary:hover {
    background-color: #F9FAFB;
}

/* Back Button */
.feedback-back-button {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    opacity: 0.9;
}

.feedback-back-button:hover {
    opacity: 1;
}

/* Success Message */
.feedback-success {
    text-align: center;
    padding: 40px 20px;
}

.feedback-success-icon {
    font-size: 64px;
    color: #10B981;
    margin-bottom: 16px;
}

.feedback-success-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.feedback-success-message {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Loading Spinner */
.feedback-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.feedback-error {
    padding: 12px;
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 6px;
    color: #991B1B;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Status Badges */
.feedback-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.feedback-status-new {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.feedback-status-in-progress {
    background-color: #FEF3C7;
    color: #92400E;
}

.feedback-status-resolved {
    background-color: #D1FAE5;
    color: #065F46;
}

.feedback-status-closed {
    background-color: #F3F4F6;
    color: #4B5563;
}

/* My Reports List */
.feedback-reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-report-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 150ms;
}

.feedback-report-card:hover {
    border-color: #3B82F6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feedback-report-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.feedback-report-meta {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rating styles */
.feedback-rating-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.feedback-rating-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    flex: 0 0 160px;
}

.feedback-rating-stars {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.feedback-rating-stars .star {
    font-size: 24px;
    color: #D1D5DB;
    transition: all 0.15s;
    cursor: pointer;
    user-select: none;
}

.feedback-rating-stars .star:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-widget-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 16px 16px 0 0;
    }
    
    .feedback-widget-button {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    
    .feedback-widget-content {
        max-height: calc(100vh - 120px);
    }
}

/* Scrollbar Styling */
.feedback-widget-content::-webkit-scrollbar {
    width: 6px;
}

.feedback-widget-content::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.feedback-widget-content::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.feedback-widget-content::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

