/* Feedback Widget Styles */
:root {
    --color-primary: #ffb800;
    --color-primary-hover: #ff9f1c;
    --color-secondary: #1a2a40;
    --color-contrast: #1c1c1c;
    --color-muted: #6b7280;
    --color-surface: #f8f9fa;
    --color-background: #ffffff;
    --color-border: #e5e7eb;
    --radius: 14px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.feedback-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-widget-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feedback-widget-button:active {
    transform: translateY(0);
}

/* Modal Styles */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.feedback-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feedback-modal-content {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-modal-header {
    background: var(--color-background);
    color: var(--color-contrast);
    padding: 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.feedback-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-contrast);
}

.feedback-modal-close {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.feedback-modal-close:hover {
    background-color: var(--color-surface);
    color: var(--color-contrast);
}

.feedback-modal-body {
    padding: 30px;
    background: var(--color-background);
}

.feedback-form-group {
    margin-bottom: 20px;
}

.feedback-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-contrast);
    font-size: 14px;
}

.feedback-form-input,
.feedback-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: var(--color-background);
    color: var(--color-contrast);
}

.feedback-form-input:focus,
.feedback-form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.1);
}

.feedback-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-form-file {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    background-color: var(--color-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: var(--color-muted);
}

.feedback-form-file:hover {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
}

.feedback-form-file.has-file {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
    color: var(--color-contrast);
}

.feedback-file-info {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-muted);
}

.feedback-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.feedback-btn {
    padding: 12px 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-surface);
    color: var(--color-contrast);
}

.feedback-btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.feedback-btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.feedback-btn-secondary {
    background: var(--color-surface);
    color: var(--color-contrast);
    border: 1px solid var(--color-border);
}

.feedback-btn-secondary:hover {
    background: var(--color-background);
    border-color: var(--color-primary);
    color: var(--color-contrast);
}

.feedback-success {
    text-align: center;
    padding: 40px 20px;
}

.feedback-success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 16px;
}

.feedback-success-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-contrast);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.feedback-success-message {
    color: var(--color-muted);
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .feedback-widget-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .feedback-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .feedback-modal-body {
        padding: 20px;
    }
    
    .feedback-form-actions {
        flex-direction: column;
    }
    
    .feedback-btn {
        width: 100%;
    }
}

/* Loading state */
.feedback-loading {
    opacity: 0.6;
    pointer-events: none;
}

.feedback-loading .feedback-btn-primary {
    background: #ccc;
    cursor: not-allowed;
}

/* Error state */
.feedback-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.feedback-form-input.error,
.feedback-form-textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
