/* Estilos para el modal de supervisores */
.group-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.group-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 15px;
}

.group-header h6 {
    color: #495057;
    font-weight: 600;
    margin: 0;
}

.group-actions {
    display: flex;
    gap: 8px;
}

.group-actions .btn {
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.group-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.group-shops {
    padding: 10px 0;
}

.group-shops .form-check {
    margin-bottom: 8px;
    padding-left: 25px;
}

.group-shops .form-check-input {
    margin-left: -25px;
    cursor: pointer;
}

.group-shops .form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    transition: color 0.2s ease;
}

.group-shops .form-check-label:hover {
    color: #007bff;
}

/* Estilos especiales para Veiko */
.group-section:last-child .group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
}

.group-section:last-child .group-header h6 {
    color: #495057 !important;
}

/* Asegurar que la palabra Veiko no tenga colores especiales */
.group-section:last-child .group-header h6,
.group-section:last-child .group-header .form-check-label {
    color: #495057 !important;
}

/* Estados de botones */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Responsive */
@media (max-width: 768px) {
    .group-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .group-actions .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .group-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

/* Animaciones */
.group-section {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para checkboxes personalizados */
.shop-checkbox:checked + .form-check-label {
    font-weight: 600;
    color: #007bff;
}



/* Contador de seleccionados por grupo */
.group-header .selection-count {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    display: none; /* Oculto por defecto */
    transition: all 0.3s ease;
}

.group-header .selection-count:not(:empty) {
    display: inline-block;
}

/* Estilos para checkboxes de grupo */
.group-header .group-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.group-header .group-checkbox:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.group-header .group-checkbox:indeterminate {
    background-color: #6c757d;
    border-color: #6c757d;
}

.group-header .form-check-label {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #495057;
    transition: color 0.2s ease;
}

.group-header .form-check-label:hover {
    color: #007bff;
}

/* Ajustes para el header del grupo */
.group-header .form-check {
    margin: 0;
    padding: 0;
}

.group-header .form-check-input {
    margin: 0;
}
