/* ===== TABLAS MODERNAS PARA LITEBANS ===== */

/* Contenedor principal de la tabla */
.litebans-table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Tabla principal */
.litebans-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

/* Encabezados de tabla */
.litebans-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}

.litebans-table thead th:first-child {
    border-top-left-radius: 12px;
}

.litebans-table thead th:last-child {
    border-top-right-radius: 12px;
}

/* Celdas de datos */
.litebans-table tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    vertical-align: middle;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.5);
}

.litebans-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.litebans-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.litebans-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.9);
}

/* Última fila sin borde inferior */
.litebans-table tbody tr:last-child td {
    border-bottom: none;
}

/* Avatares de jugadores */
.litebans-table .player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.litebans-table tr:hover .player-avatar {
    border-color: rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
}

/* Nombres de jugadores */
.litebans-table .player-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.litebans-table .player-name:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Razones de baneo */
.litebans-table .ban-reason {
    max-width: 200px;
    word-wrap: break-word;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Fechas */
.litebans-table .ban-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Expiración */
.litebans-table .ban-expiry {
    font-weight: 600;
    font-size: 0.9rem;
}

.litebans-table .ban-expiry.permanent {
    color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.litebans-table .ban-expiry.expired {
    color: #38a169;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.litebans-table .ban-expiry.active {
    color: #d69e2e;
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* Servidor */
.litebans-table .server-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Formulario de búsqueda moderno */
.litebans-check-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.litebans-check-form h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.litebans-check-form .form-group {
    margin-bottom: 1.5rem;
}

.litebans-check-form label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.litebans-check-form .form-control {
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.litebans-check-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.litebans-check-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.litebans-check-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Paginación moderna */
.litebans-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.litebans-pager a,
.litebans-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    border: 1px solid rgba(0,0,0,0.1);
}

.litebans-pager a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.litebans-pager .litebans-pager-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.litebans-pager .litebans-pager-inactive {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .litebans-table-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .litebans-table thead th,
    .litebans-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .litebans-check-form {
        padding: 1.5rem;
    }
    
    .litebans-pager {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.litebans-table-container {
    animation: slideInUp 0.6s ease-out;
}

/* Estados de carga */
.litebans-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.litebans-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
