/* Batch Rename Files Tool - Custom Styles */

/* Table wrapper with scroll */
.files-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background-color: var(--bs-body-bg);
}

/* Compact table styling */
.files-table-wrapper table {
    font-size: 0.875rem;
}

.files-table-wrapper table th {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

/* New name highlight */
#previewTable tbody td:last-child {
    color: #052c65;
    font-weight: 600;
}

[data-bs-theme="dark"] #previewTable tbody td:last-child {
    color: var(--dark-primary-light);
}

/* Dark mode for table wrapper */
[data-bs-theme="dark"] .files-table-wrapper {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(30, 34, 42, 0.6);
}

/* Sticky table header */
.files-table-wrapper table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bs-body-bg);
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .files-table-wrapper table thead {
    background-color: rgba(30, 34, 42, 0.95);
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.3);
}

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

.files-table-wrapper::-webkit-scrollbar-track {
    background: var(--bs-light-bg-subtle);
    border-radius: 4px;
}

.files-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

.files-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

[data-bs-theme="dark"] .files-table-wrapper::-webkit-scrollbar-track {
    background: rgba(22, 33, 62, 0.3);
}

[data-bs-theme="dark"] .files-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
}

[data-bs-theme="dark"] .files-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .files-table-wrapper {
        max-height: 350px;
    }
    
    .files-table-wrapper table {
        font-size: 0.8125rem;
    }
    
    .files-table-wrapper table th {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .files-table-wrapper table td {
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .files-table-wrapper {
        max-height: 300px;
    }
    
    .files-table-wrapper table {
        font-size: 0.75rem;
    }
    
    .files-table-wrapper table th {
        padding: 0.35rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .files-table-wrapper table td {
        padding: 0.3rem 0.4rem;
    }
}

