h3 span{
  font-size: 10px;
  opacity: 0.6;
}

.balance-root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  user-select: none;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.topbar {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
}
.modal-dialog{
    z-index: 10000;
}
/* Checkbox personalizado */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
/* Estado ON */
input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider:before {
  transform: translateX(24px);
}


/* Estado de la balanza */
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #e7e7e7;
}

.pill.soft {
  font-weight: 600;
  background: #fafafa;
}

.pill.balanced {
  background: #e9fff0;
  border-color: #b9f1c8;
}

.pill.left {
  background: #fff0f0;
  border-color: #f2c1c1;
}

.pill.right {
  background: #f0f6ff;
  border-color: #bcd6ff;
}



.weight-tray {
  position: absolute;
  top: 80px;
  padding: 15px;
  border: 2px dashed #ccc;
  text-align: center;
  border-radius: 10px;
}

.tray-weight {
  cursor: grab;
  display: inline-block;
}

.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 6px;
  transition: background 0.15s;
}
.lang-toggle:hover {
  background: rgba(0,0,0,0.05);
}
.lang-active {
  font-size: 13px;
  font-weight: 700;
  color: #34a853;
}
.lang-sep {
  font-size: 12px;
  color: #ccc;
}
.lang-inactive {
  font-size: 12px;
  font-weight: 400;
  color: #bbb;
}