/* Feedback Widget Styles */

.feedback-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--color-primary, #2563eb);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    z-index: 1000;
}

.feedback-trigger:hover {
    background-color: var(--color-primary-dark, #1d4ed8);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feedback-trigger svg {
    width: 20px;
    height: 20px;
}

.feedback-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    animation: slideUp 0.2s ease;
}

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

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.feedback-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text, #111827);
}

.feedback-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.feedback-close:hover {
    background-color: var(--color-bg, #f9fafb);
    color: var(--color-text, #111827);
}

.feedback-form {
    padding: 20px;
}

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

.feedback-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #111827);
    margin-bottom: 6px;
}

.feedback-field .required {
    color: var(--color-danger, #dc2626);
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.feedback-field textarea {
    resize: vertical;
    min-height: 80px;
}

.feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.feedback-submit,
.feedback-cancel {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-submit {
    background-color: var(--color-primary, #2563eb);
    color: white;
}

.feedback-submit:hover:not(:disabled) {
    background-color: var(--color-primary-dark, #1d4ed8);
}

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

.feedback-cancel {
    background-color: var(--color-bg, #f9fafb);
    color: var(--color-text, #111827);
    border: 1px solid var(--color-border, #e5e7eb);
}

.feedback-cancel:hover {
    background-color: #e5e7eb;
}

.feedback-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.feedback-status-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.feedback-status-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .feedback-trigger {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .feedback-trigger span {
        display: none;
    }

    .feedback-popup {
        bottom: 70px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}
