/**
 * Feedback System CSS
 * Styles for the floating feedback button and DaisyUI modal
 *
 * NOTE: DaisyUI modal visibility fixes are now in input.css under @layer utilities
 * to properly override DaisyUI's @layer directives.
 */

#feedbackModal .modal-box {
    background-color: hsl(var(--b1));
    color: hsl(var(--bc));
}

/* Ensure textarea displays as block */
#feedbackModal textarea.textarea {
    display: block;
    width: 100%;
    resize: vertical;
}

/* Ensure form-control stacks elements vertically */
#feedbackModal .form-control {
    display: flex;
    flex-direction: column;
}

/* Ensure proper text color in dark mode */
#feedbackModal .label-text,
#feedbackModal .label-text-alt {
    color: hsl(var(--bc) / 0.7);
}

#feedbackModal .label-text.font-semibold {
    color: hsl(var(--bc));
}

/* Floating Feedback Button */
.feedback-floating-btn {
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    z-index: 1051;
    padding: 12px 20px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.feedback-floating-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.feedback-floating-btn:active {
    transform: translateY(0) scale(0.98);
}

.feedback-floating-btn i {
    margin-right: 6px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .feedback-floating-btn {
        bottom: 20px;
        right: 16px;
        padding: 14px 16px;
        border-radius: 50%;
        min-width: 56px;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feedback-floating-btn .feedback-btn-text {
        display: none;
    }

    .feedback-floating-btn i {
        margin-right: 0;
        font-size: 20px;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .feedback-floating-btn {
        bottom: 20px;
        right: 15px;
    }
}

/* Character Counter */
#charCount {
    font-weight: 600;
}

/* Error Display */
#feedbackErrors {
    margin-top: 0;
    margin-bottom: 0;
}

/* Loading State for Submit Button */
.feedback-btn-loading {
    pointer-events: none;
    opacity: 0.65;
}

.feedback-btn-loading i::before {
    content: "\f110";
    animation: fa-spin 1s infinite linear;
}

/* Smooth Transitions */
.feedback-floating-btn,
.feedback-floating-btn i,
#submitFeedbackBtn {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
.feedback-floating-btn:focus-visible {
    outline: 2px solid hsl(var(--p));
    outline-offset: 2px;
}
