/* CSS Personalizado para FV Simulator */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.btn {
    transition: all 0.2s;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
    cursor: pointer;
}

.form-label {
    font-weight: 500;
}

/* ==== FILTROS Y VISTAS DE LISTA ==== */

/* Barra de filtros */
.filters-bar {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.filters-bar .form-control,
.filters-bar .form-select {
    border-color: #dee2e6;
}

.filters-bar .form-control:focus,
.filters-bar .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

/* Toggle de vistas */
.view-toggle {
    display: inline-flex;
    gap: 0.5rem;
}

.view-toggle button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle button:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.view-toggle button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-toggle button i {
    font-size: 1.2rem;
}

/* Vista tabla compacta */
.view-table {
    display: none;
}

.table-lista {
    background-color: white;
    border-radius: 0.375rem;
    overflow: hidden;
}

.table-lista thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-lista thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: #6c757d;
    padding: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

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

.table-lista tbody tr:hover {
    background-color: rgba(13,110,253,0.05);
}

.table-lista tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-lista .acciones-cell {
    white-space: nowrap;
}

.table-lista .acciones-cell .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin: 0 0.125rem;
}

/* Secciones de lista */
.lista-seccion {
    margin-bottom: 2rem;
}

.lista-seccion-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lista-seccion-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #212529;
}

.lista-seccion-header .badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* Vistas (cards/tabla) */
.view-cards {
    display: block;
}

.view-table {
    display: none;
}

/* Empty states */
.empty-state {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Badges en tabla */
.badge-ejemplo {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Estadísticas de filtros */
.filter-stats {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .filters-bar {
        padding: 0.75rem;
    }

    .filters-bar .row > div {
        margin-bottom: 0.5rem;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .table-lista {
        font-size: 0.875rem;
    }

    .table-lista thead th,
    .table-lista tbody td {
        padding: 0.5rem 0.25rem;
    }
}
