/* ==================================================
   GD CSV TABLE - ESTILOS
   ================================================== */

.gd-csv-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ========== BUSCADOR ========== */

.gd-csv-search {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gd-csv-search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.gd-csv-search-input:focus {
    border-color: #0057ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,87,255,0.1);
}

/* ========== TABLA ========== */

.gd-csv-table-scroll {
    overflow-x: auto;
}

.gd-csv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.gd-csv-table thead {
    background: #1a1a2e;
    color: #fff;
}

.gd-csv-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gd-csv-table th:hover {
    background: #2a2a4e;
}

.gd-sort-icon {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.6;
}

.gd-csv-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.gd-csv-table tbody tr:hover {
    background: #f8f9fa;
}

.gd-csv-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.gd-csv-table tbody tr:nth-child(even):hover {
    background: #f0f1f3;
}

/* ========== PAGINACIÓN ========== */

.gd-csv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.gd-csv-pagination button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: #0057ff;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.gd-csv-pagination button:hover:not(:disabled) {
    background: #0040cc;
}

.gd-csv-pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.gd-csv-page-info {
    font-size: 14px;
    color: #666;
    min-width: 120px;
    text-align: center;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .gd-csv-table {
        font-size: 13px;
        min-width: 400px;
    }
    
    .gd-csv-table th,
    .gd-csv-table td {
        padding: 10px 14px;
    }
    
    .gd-csv-search-input {
        max-width: 100%;
    }
    
    .gd-csv-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gd-csv-table {
        font-size: 12px;
        min-width: 300px;
    }
    
    .gd-csv-table th,
    .gd-csv-table td {
        padding: 8px 10px;
    }
}