/* ==========================================
   LISTADO DE BANEOS - ESTILOS
   ========================================== */
.gp-search-container {
    max-width: 500px;
}

.gp-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--gp-bg-card);
    border-radius: var(--gp-radius-sm);
    overflow: hidden;
}

.gp-table-modern thead th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--gp-text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid var(--gp-border);
}

.gp-table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gp-border);
    color: var(--gp-text-primary);
    vertical-align: middle;
}

.gp-table-modern tbody tr:hover {
    background: rgba(245, 158, 11, 0.05);
}

.gp-table-modern tbody tr:last-child td {
    border-bottom: none;
}

.gp-pagination-container {
    display: flex;
    justify-content: center;
}

.gp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gp-pagination .page-link {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--gp-border);
    background: var(--gp-bg-card);
    color: var(--gp-text-primary);
    border-radius: var(--gp-radius-sm);
    text-decoration: none;
    transition: var(--gp-transition);
}

.gp-pagination .page-link:hover:not(.disabled) {
    background: var(--gp-bg-hover);
    border-color: var(--gp-accent);
    color: var(--gp-accent);
}

.gp-pagination .page-item.active .page-link {
    background: var(--gp-accent);
    border-color: var(--gp-accent);
    color: var(--gp-bg-dark);
}

.gp-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Paginación - Botones con border-radius consistente */
.page-item .page-link {
    border-radius: 8px !important; /* Ajusta este valor según tu diseño */
    margin: 0 2px; /* Espacio entre botones */
    border: 1px solid var(--gp-border, #dee2e6);
}

/* Primera página - borde redondeado a la izquierda */
.page-item:first-child .page-link {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

/* Última página - borde redondeado a la derecha */
.page-item:last-child .page-link {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Botones de navegación (<< y >>) */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* Hover y activo */
.page-item.active .page-link {
    background: var(--gp-accent, #f59e0b);
    border-color: var(--gp-accent, #f59e0b);
    color: var(--gp-bg-dark, #1e293b);
}

.page-item .page-link:hover {
    background: var(--gp-bg-hover, #f8f9fa);
    border-color: var(--gp-accent, #f59e0b);
    z-index: 2;
}

/* Deshabilitado */
.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ==========================================
   RESPONSIVE (MÓVILES)
   ========================================== */
@media (max-width: 768px) {
    .gp-table-modern thead {
        display: none; /* Ocultar encabezados en móvil */
    }
    
    .gp-table-modern tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--gp-border);
        border-radius: var(--gp-radius-sm);
        background: var(--gp-bg-card);
    }
    
    .gp-table-modern tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--gp-border);
    }
    
    .gp-table-modern tbody td:last-child {
        border-bottom: none;
    }
    
    /* Agregar etiquetas a cada celda en móvil */
    .gp-table-modern tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gp-text-secondary);
        margin-right: 1rem;
        text-transform: uppercase;
        font-size: 0.75rem;
    }
}

/* ==========================================
   BAN LIST - LIGHT THEME COMPATIBLE
   ========================================== */

/* Módulo principal - Fondo claro */
#module-bans {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Header del módulo */
#module-bans .gp-module-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

#module-bans .gp-module-header h3 {
    color: #212529;
    font-weight: 700;
    margin: 0;
}

/* Contenedor de búsqueda */
.gp-search-container .input-group {
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gp-search-container .input-group:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.gp-search-container .input-group-text {
    background: #f8f9fa;
    border: none;
    color: #6c757d;
    padding: 0.75rem 1rem;
}

.gp-search-container .gp-input {
    border: none;
    background: #ffffff;
    color: #212529;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

.gp-search-container .gp-input::placeholder {
    color: #adb5bd;
}

.gp-search-container .gp-input:focus {
    outline: none;
    box-shadow: none;
}

/* Tabla moderna - Light theme */
.gp-table-modern {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-collapse: separate;
    border-spacing: 0;
}

.gp-table-modern thead {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}

.gp-table-modern thead th {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    text-align: left;
    border: none;
}

.gp-table-modern tbody tr {
    background: #ffffff;
    transition: all 0.2s ease;
}

.gp-table-modern tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gp-table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.9375rem;
    vertical-align: middle;
}

.gp-table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Badges de tipo */
.gp-table-modern .badge-tipo {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gp-table-modern .badge-personaje {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.gp-table-modern .badge-cuenta {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Columna de nombre - más visible */
.gp-table-modern td:nth-child(2) {
    font-weight: 600;
    color: #212529;
}

/* Columna de razón - texto legible */
.gp-table-modern td:nth-child(3) {
    color: #495057;
    font-weight: 500;
}

/* Fecha - color distintivo */
.gp-table-modern td:nth-child(4) {
    color: #6c757d;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Tiempo restante - badge destacado */
.gp-table-modern .badge-tiempo {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    background: #343a40;
    color: #ffffff;
}

/* Loading state */
.gp-table-modern .text-muted {
    color: #6c757d !important;
    font-weight: 500;
}

/* Paginación */
.gp-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.gp-pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gp-pagination li {
    display: inline-block;
}

.gp-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gp-pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-2px);
}

.gp-pagination .page-link.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.gp-pagination .page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    #module-bans {
        padding: 1rem;
    }
    
    .gp-table-modern thead th,
    .gp-table-modern tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .gp-table-modern .badge-tipo,
    .gp-table-modern .badge-tiempo {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
