/* Batch Rename Files - Professional Styles */

/* Files table wrapper with max height and scroll */
.files-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.files-table-wrapper table {
    margin-bottom: 0;
}

.files-table-wrapper thead {
    position: sticky;
    top: 0;
    background-color: var(--bs-light, #f8f9fa);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .files-table-wrapper {
    border-color: #495057;
}

[data-bs-theme="dark"] .files-table-wrapper thead {
    background-color: #212529;
}

/* Table styling */
.files-table-wrapper th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

[data-bs-theme="dark"] .files-table-wrapper th {
    border-bottom-color: #495057;
}

.files-table-wrapper td {
    padding: 0.75rem;
    vertical-align: middle;
}

/* Arrow column styling */
.files-table-wrapper td img.filter-svg {
    opacity: 0.5;
}

/* Action buttons styling */
.files-table-wrapper .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.files-table-wrapper .btn-sm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.files-table-wrapper .btn-sm:active:not(:disabled) {
    transform: translateY(0);
}

.files-table-wrapper .btn-sm img.fsvg {
    margin: 0;
}

/* Disabled button styling */
.files-table-wrapper .btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* Bulk actions container */
#bulkActions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

/* Action buttons row */
#actionButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease-in;
}

/* Preview container animation */
#previewContainer {
    animation: slideIn 0.3s ease-out;
}

/* Settings card styling */
#renameSettingsCard {
    animation: slideDown 0.3s ease-out;
}

/* Progress bar enhancements */
#progressContainer {
    animation: fadeIn 0.3s ease-in;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Hover effects for table rows */
.files-table-wrapper tbody tr {
    transition: background-color 0.2s ease;
}

.files-table-wrapper tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

[data-bs-theme="dark"] .files-table-wrapper tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* New name column highlight */
.files-table-wrapper td[style*="color: var(--bs-primary-text-emphasis"] {
    background-color: rgba(5, 44, 101, 0.03);
}

[data-bs-theme="dark"] .files-table-wrapper td[style*="color: var(--bs-primary-text-emphasis"] {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Scrollbar styling */
.files-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.files-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.files-table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.files-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

[data-bs-theme="dark"] .files-table-wrapper::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-bs-theme="dark"] .files-table-wrapper::-webkit-scrollbar-thumb {
    background: #555;
}

[data-bs-theme="dark"] .files-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .files-table-wrapper {
        max-height: 400px;
    }

    .files-table-wrapper th,
    .files-table-wrapper td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .files-table-wrapper th {
        font-size: 0.8125rem;
    }

    #bulkActions {
        flex-direction: column;
        align-items: stretch;
    }

    #bulkActions .btn {
        width: 100%;
        justify-content: center;
    }

    #actionButtons {
        flex-direction: column;
        align-items: stretch;
    }

    #actionButtons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .files-table-wrapper {
        max-height: 350px;
    }

    .files-table-wrapper th,
    .files-table-wrapper td {
        padding: 0.4rem;
        font-size: 0.8125rem;
    }

    .files-table-wrapper th {
        font-size: 0.75rem;
    }
}
