/* feedback/static/feedback/feedback.css */

/* Modal animations */
#feedbackModal,
#loginRequiredModal,
#confirmCloseModal,
#messageModal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Star rating styling */
.rating-star {
    transition: all 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.15);
}

/* Star pulse animation */
@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { 
        transform: scale(1.25);
        filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.8));
    }
}

.rating-star.text-yellow-300 {
    transform: scale(1.1);
}

.rating-star.text-yellow-400 {
    filter: drop-shadow(0 0 3px rgba(250, 204, 21, 0.6));
}

/* Drop zone styling */
#dropZone {
    transition: all 0.3s ease;
    border-radius: 4px;
    cursor: pointer;
}

#dropZone:hover {
    background-color: #f9fafb;
}

#dropZone.border-green-500 {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
}

/* Attachment list styling */
#attachmentsList {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

#attachmentsList::-webkit-scrollbar {
    width: 6px;
}

#attachmentsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#attachmentsList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#attachmentsList::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* File type icons */
.fa-image { color: #10b981; }
.fa-video { color: #ef4444; }
.fa-music { color: #a855f7; }
.fa-file-pdf { color: #ef4444; }
.fa-file-word { color: #3b82f6; }
.fa-file-excel { color: #10b981; }
.fa-file-archive { color: #6b7280; }

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Required field indicator */
label .text-red-500 {
    font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #feedbackModal .bg-white,
    #loginRequiredModal .bg-white,
    #confirmCloseModal .bg-white,
    #messageModal .bg-white {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 85vh !important;
    }
    
    .rating-star {
        font-size: 2.5rem !important;
    }
    
    textarea {
        min-height: 80px !important;
    }
    
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Compact attachment items on mobile */
    #attachmentsList > div {
        padding: 1.5px 8px !important;
    }
    
    #attachmentsList .text-sm {
        font-size: 0.75rem !important;
    }
    
    #attachmentsList .text-xs {
        font-size: 0.65rem !important;
    }
}

/* Focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Scrollbar for main modal */
#feedbackModal .max-h-\[90vh\]::-webkit-scrollbar {
    width: 8px;
}

#feedbackModal .max-h-\[90vh\]::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

#feedbackModal .max-h-\[90vh\]::-webkit-scrollbar-thumb {
    background-color: #10b981;
    border-radius: 4px;
}

#feedbackModal .max-h-\[90vh\]::-webkit-scrollbar-thumb:hover {
    background-color: #059669;
}

/* Loading overlay */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.2s ease;
}

/* Prevent text selection on icons */
.fas {
    user-select: none;
}

/* Truncate long filenames */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    display: inline-block;
}

@media (max-width: 480px) {
    .truncate {
        max-width: 120px;
    }
}