/* ==============================================================================
 * VICTORIA SOCCER - SISTEMA DE DISEÑO Y ESTÁNDAR UI/UX CORPORATIVO (VS-STANDARD)
 * Paleta Oficial: Deep Blue (#0f172a, #1e293b, #1565c0) + Cyan (#0284c7, #00bcd4)
 * Fondo Plano: #f8fafc | Tipografía: Bebas Neue (Títulos) + Montserrat (Cuerpo/Tablas)
 * ============================================================================== */

@import url('./modern-responsive.css');
@import url('./navbar.css');

body {
    background-color: #f8fafc !important;
    background-image: none !important;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
    color: #1e293b !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
}

/* 1. Contenedor Principal con Espaciado Protegido */
.vs-page-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* 2. Encabezado de Página Estándar */
.vs-page-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vs-page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.25rem;
    color: #0f172a;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vs-page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0 0;
    font-weight: 500;
}

/* 3. Botones de Acción Primarios */
.btn-vs-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-vs-primary:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* 4. Tarjeta de Filtros */
.vs-filter-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 1.5rem;
}

.vs-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

.vs-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vs-filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vs-filter-select-wrap {
    position: relative;
}

.vs-filter-select-wrap i.icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0284c7;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.vs-filter-control {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px 10px;
}

.vs-filter-control:focus {
    background-color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

/* 5. Tarjeta de Tabla de Alta Densidad */
.vs-table-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.vs-table-toolbar {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vs-table-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vs-table-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.5px;
}

.vs-badge-counter {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.vs-search-wrap {
    position: relative;
    min-width: 260px;
}

.vs-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
}

.vs-search-input {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.35rem;
    font-size: 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.vs-search-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.vs-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #334155;
    margin: 0;
}

.vs-table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.vs-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.vs-table tbody tr:hover {
    background-color: #f0f9ff;
}

.vs-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* 6. Badges y Celdas de Avatar */
.vs-avatar-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vs-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.vs-cell-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.925rem;
    line-height: 1.2;
}

.vs-cell-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Badges de Estado */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-status-activo {
    background: #dcfce7;
    color: #166534;
}

.badge-status-activo::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.badge-status-inactivo {
    background: #f1f5f9;
    color: #64748b;
}

.badge-status-inactivo::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
}

/* 7. Botones de Acción en Tablas */
.action-btn-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-action-edit {
    background: #e0f2fe;
    color: #0284c7;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-edit:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-action-delete {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-delete:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 8. Modales Estándar */
.modal-content.vs-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.vs-modal-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #0284c7;
}

.vs-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    margin: 0;
    color: #ffffff;
}

.vs-modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

.vs-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
