/* Estilos personalizados - Sistema de Gestión de Equipos ONUs */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

/* Flujo de equipos visual */
.flujo-container {
    min-height: 400px;
    padding: 20px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

.flujo-sector {
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flujo-sector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.flujo-sector-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.flujo-sector-count {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.flujo-estados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flujo-estado {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid;
    background: #f8f9fa;
    transition: transform 0.2s;
}

.flujo-estado:hover {
    transform: scale(1.02);
}

.flujo-estado-nombre {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.flujo-estado-cantidad {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Estados de colores */
.badge-estado {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Tablas */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

/* Botones de acción */
.btn-action {
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    transform: scale(1.1);
}

/* Cards de métricas */
.card.text-white {
    border-radius: 8px;
}

.card.text-white .card-title {
    font-size: 2rem;
    font-weight: 700;
}

.card.text-white .card-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .flujo-estado {
        min-width: 100%;
    }
    
    .flujo-sector {
        padding: 15px;
    }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

