/* public/css/user-switcher.css */
/* Widget Flotante del User Switcher para MVP sin Auth */

#user-switcher-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9990;
  font-family: var(--font-body);
}

.switcher-btn {
  background-color: var(--bg-surface-elev);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.switcher-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

.switcher-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
}

.switcher-dropdown {
  position: absolute;
  bottom: 120%;
  right: 0;
  width: 280px;
  background-color: var(--bg-surface-elev);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 0.375rem;
}

.switcher-dropdown.active {
  display: flex;
  animation: fadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.switcher-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  font-weight: 700;
}

.switcher-user-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.switcher-user-item:hover {
  background-color: var(--bg-surface-hover);
}

.switcher-user-item.active-user {
  background-color: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.switcher-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.switcher-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.switcher-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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