#contador-takes {
    /* background-color: #5d68b4; */
}

.drop-zone {
    border: 2px dashed #6c757d;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    min-height: 150px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.file-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.logo {
    max-height: 130px;
    filter: brightness(1.2);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 100%);
}

/* Layout principal sin scroll */
.main-content {
    height: calc(100vh - 60px); /* Resta la altura del footer */
    overflow: hidden;
    padding: 20px 0;
}

body {
    overflow: hidden; /* Sin scroll en el body */
}

/* Contenedor principal con altura fija */
.col-lg-8 {
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    overflow: visible; /* Permitir scroll interno */
    display: flex;
    flex-direction: column;
}

/* Card con altura fija y flex */
.card-custom {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.gradient-bg-alt {
    background: linear-gradient(135deg, #2c1810 0%, #3d2817 35%, #4a3728 100%);
}

.card-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    /* El scroll solo estará en la tabla, no en card-body */
}

/* Card body flexible que se ajusta al contenido */
.card-body {
    overflow: visible; /* Permitir scroll interno */
}

/* Resultado de la tabla debe crecer y tener scroll */
#result {
    min-height: 0; /* Permite que flex funcione correctamente */
}

/* Asegurar que la tabla esté oculta inicialmente */
#result[style*="display: none"] {
    display: none !important;
}

[data-bs-theme="light"] .card-custom {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .drop-zone {
    background: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .file-item {
    background: rgba(0, 0, 0, 0.1);
}

.csv-table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: table; /* Volver a comportamiento de tabla normal */
}

/* Solo la tabla tiene scroll vertical cuando es necesario */
.table-responsive {
    flex-grow: 1;
    overflow: visible; /* Permitir que se vea el scroll */
    min-height: 200px; /* Altura mínima para asegurar visibilidad */
}

.csv-table thead {
    display: table-header-group; /* Comportamiento normal de thead */
    width: 100%;
}

.csv-table tbody {
    display: block;
    overflow-y: scroll; /* Forzar scroll siempre visible */
    overflow-x: hidden;
    height: 250px; /* Altura fija más pequeña para garantizar scroll */
    width: 100%;
}

.csv-table thead tr,
.csv-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.csv-table th,
.csv-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.csv-table th {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.csv-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.csv-table .narrador {
    background: rgb(0 152 255 / 19%);
    font-style: italic;
}

[data-bs-theme="light"] .csv-table th,
[data-bs-theme="light"] .csv-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .csv-table th {
    background: rgba(26, 26, 46, 0.1);
    color: #1a1a2e;
}

[data-bs-theme="light"] .csv-table tbody tr:hover {
    background: rgba(26, 26, 46, 0.03);
}

[data-bs-theme="light"] .csv-table .narrador {
    background: rgba(26, 26, 46, 0.05);
}

.bg-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-toggle:hover {
    transform: scale(1.05);
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: rgba(30, 30, 40, 0.95);
    z-index: 1002;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centrar horizontalmente el botón de procesar archivos */
#procesarBtn {
    display: block;
    margin: 0 auto;
}