/* =========================================================================
   BIBER ZAHLENWERKSTATT - SPECIFIC STYLES
   ========================================================================= */

/* Overrides / Adjustments for Biber */
.fox-panel {
  /* Reuse fox-panel layout but it's now a beaver */
}

.workshop-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.machine-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ── THE MACHINE ──────────────────────────────────────────────────────── */
.machine-container {
  background: linear-gradient(145deg, #3d2314, #2a160c);
  border: 4px solid #6b3e20;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.5),
    0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  text-align: center;
}

.machine-header {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #a35d2b;
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-family: var(--f-board);
  font-size: 1.2rem;
  box-shadow: 0 4px 0 #6b3e20;
  border: 2px solid #3d2314;
}

.machine-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.input-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-label {
  color: #e0b88c;
  font-family: var(--f-board);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slot-display {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border: 2px solid #555;
  border-radius: 12px;
  padding: 5px;
  gap: 10px;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.5);
}

.slot-value {
  font-size: 3rem;
  font-weight: 800;
  color: #4CAF50;
  min-width: 60px;
  text-align: center;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  font-family: var(--f-ui);
}

.btn-mod {
  background: #444;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 0 #222;
}

.btn-mod:hover:not(:disabled) {
  background: #555;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #222;
}

.btn-mod:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-mod:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(4px);
  box-shadow: none;
}

.operator {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
  margin-top: 25px; /* align with numbers */
}

.machine-equals {
  font-size: 3rem;
  font-weight: 900;
  color: #aaa;
  margin: 10px 0;
}

.machine-output {
  background: rgba(0,0,0,0.6);
  border: 3px solid #ffb300;
  border-radius: 16px;
  display: inline-block;
  padding: 10px 40px;
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
}

.output-value {
  font-size: 4rem;
  font-weight: 900;
  color: #ffb300;
  text-shadow: 0 0 15px rgba(255, 179, 0, 0.6);
  font-family: var(--f-ui);
}

/* ── PREDICTION SECTION ────────────────────────────────────────────────── */
.prediction-section {
  background: rgba(20, 10, 5, 0.85);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 2px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  display: none; /* hidden by default, JS toggles */
  flex-direction: column;
  gap: 15px;
  animation: slideUp 0.4s ease forwards;
}

.prediction-section.active {
  display: flex;
}

.prediction-section h3 {
  color: #fff;
  font-family: var(--f-board);
  font-size: 1.5rem;
  margin: 0;
}

.prediction-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-pred {
  background: #333;
  color: #fff;
  border: 2px solid #555;
  padding: 12px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--f-ui);
}

.btn-pred:hover {
  background: #444;
  border-color: #777;
}

.btn-pred.selected {
  background: #a35d2b;
  border-color: #ffb300;
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.4);
}

/* Transitions and Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pop-change {
  animation: popChange 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popChange {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: #fff; }
  100% { transform: scale(1); }
}

/* Next Task Button Area */
.numpad-section {
  background: rgba(20, 10, 5, 0.85);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}
