/* Floating Feedback Widget - Levels.io Style */
.feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.feedback-widget-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color, #3b82f6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.feedback-widget-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: var(--primary-color-hover, #2563eb);
    color: white;
}

.feedback-widget-icon {
    font-size: 1.125rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .feedback-widget {
        bottom: 16px;
        right: 16px;
    }

    .feedback-widget-button {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

/* Small mobile - icon only */
@media (max-width: 480px) {
    .feedback-widget {
        bottom: 12px;
        right: 12px;
    }

    .feedback-widget-button {
        padding: 12px;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }

    .feedback-widget-button span:not(.feedback-widget-icon) {
        display: none;
    }

    .feedback-widget-icon {
        margin: 0;
        font-size: 1.25rem;
    }
}

/* Prevent overlap with invoice content */
.invoice-editor-page .feedback-widget {
    bottom: 20px;
}

@media (max-width: 768px) {
    .invoice-editor-page .feedback-widget {
        bottom: 80px; /* Above any fixed bottom elements */
    }
}

@media (max-width: 480px) {
    .invoice-editor-page .feedback-widget {
        bottom: 70px;
    }
}

/* Optional: Pulse animation to draw attention */
@keyframes pulse-feedback {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
}

.feedback-widget-button.pulse {
    animation: pulse-feedback 2s infinite;
}
