/* Reply File Modal Styles */
#existing-reply-files-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#existing-reply-files-list {
    max-height: 300px;
    overflow-y: auto;
}

.existing-file-item {
    background: white !important;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease;
}


.existing-file-item:last-child {
    margin-bottom: 0;
}

.delete-reply-file-btn {
    transition: all 0.2s ease;
}

.delete-reply-file-btn:hover {
    transform: scale(1.1);
}

.delete-reply-file-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Preview list styling */
#reply-file-preview-list .alert {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
}

/* Modal body improvements */
#replyModal .modal-dialog {
    max-width: 600px;
}

#replyModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Scrollbar styling */
#existing-reply-files-list::-webkit-scrollbar,
#replyModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#existing-reply-files-list::-webkit-scrollbar-track,
#replyModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#existing-reply-files-list::-webkit-scrollbar-thumb,
#replyModal .modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#existing-reply-files-list::-webkit-scrollbar-thumb:hover,
#replyModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* File icon colors */
.existing-file-item .fa-file-alt {
    font-size: 18px;
}

.existing-file-item strong {
    font-weight: 500;
    color: #333;
}

.existing-file-item small {
    color: #6c757d;
}

/* Button group spacing */
.existing-file-item .btn-sm {
    padding: 4px 8px;
    font-size: 13px;
}

/* Empty state */
.text-muted.text-center.py-2 {
    padding: 20px !important;
    font-style: italic;
}

/* Loading state */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message animation */
.alert-success.fade.show {
    animation: slideDown 0.3s ease-out;
}

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

