/* ═══════════════════════════════════════════
   TFA-AVA – Verlade-Modal (Loading Workflow)
   HIGH CONTRAST · BIG TOUCH TARGETS · OUTDOOR
   Designed for wet/gloved hands on smartphones
   ═══════════════════════════════════════════ */

/* ─── Fullscreen Overlay ─── */
.verlade-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 600;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.verlade-modal {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  color: #f0f0f0;
}

/* ═══════════════════════════════════════════
   HEADER: Current Trough (sticky)
   ═══════════════════════════════════════════ */
.verlade-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #111;
  border-bottom: 3px solid #3b82f6;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verlade-trough-display {
  flex: 1;
}

.verlade-trough-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  letter-spacing: -1px;
}

.verlade-trough-info {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
}

.verlade-trough-remaining {
  text-align: right;
}

.verlade-remaining-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.verlade-remaining-value {
  font-size: 28px;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════ */
.verlade-progress-section {
  background: #111;
  padding: 12px 16px;
  border-bottom: 1px solid #222;
}

.verlade-progress-bar {
  height: 14px;
  background: #1e293b;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 8px;
}

.verlade-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 7px;
  transition: width 0.3s ease;
  min-width: 2%;
}

.verlade-progress-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.verlade-stat-label {
  display: block;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verlade-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #e2e8f0;
}

.verlade-stat-loaded {
  color: #10b981;
}

/* ═══════════════════════════════════════════
   BODY
   ═══════════════════════════════════════════ */
.verlade-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.verlade-section {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 16px;
}

.verlade-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   WEIGHT PRESETS
   ═══════════════════════════════════════════ */
.verlade-weight-presets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.verlade-weight-btn {
  height: 80px;
  border: 3px solid #334155;
  border-radius: 12px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.verlade-weight-btn:active {
  transform: scale(0.96);
  background: #334155;
}

.verlade-weight-active {
  border-color: #3b82f6 !important;
  background: #1e3a5a !important;
  color: #60a5fa !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.verlade-custom-weight {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.verlade-weight-input {
  flex: 1;
  height: 64px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
}

.verlade-weight-input:focus {
  border-color: #3b82f6;
}

.verlade-weight-confirm {
  width: 80px;
  height: 64px;
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.verlade-weight-confirm:active {
  background: #2563eb;
}

.verlade-selected-weight {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #94a3b8;
}

.verlade-selected-weight strong {
  color: #60a5fa;
  font-size: 16px;
}

/* ═══════════════════════════════════════════
   CONTAINER GRID
   ═══════════════════════════════════════════ */
.verlade-container-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verlade-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.verlade-container-btn {
  height: 90px;
  border: 3px solid #334155;
  border-radius: 12px;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  padding: 8px;
}

.verlade-container-btn:active:not(:disabled) {
  transform: scale(0.96);
  border-color: #10b981;
  background: #064e3b;
}

.verlade-container-filled {
  background: #064e3b !important;
  border-color: #10b981 !important;
  opacity: 0.7;
  cursor: default;
}

.verlade-container-name {
  font-size: 20px;
  font-weight: 800;
}

.verlade-container-preset {
  font-size: 14px;
  color: #94a3b8;
}

.verlade-container-weight {
  font-size: 16px;
  font-weight: 700;
  color: #10b981;
}

/* ═══════════════════════════════════════════
   TROUGH NAVIGATION
   ═══════════════════════════════════════════ */
.verlade-action-btn {
  width: 100%;
  min-height: 60px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}

.verlade-action-btn:active {
  background: #334155;
}

.verlade-next-trough {
  border-color: #f59e0b;
  background: #422006;
  color: #fbbf24;
}

.verlade-next-trough:active {
  background: #713f12;
}

.verlade-other-trough {
  border-color: #475569;
  font-size: 14px;
  min-height: 48px;
  color: #94a3b8;
}

.verlade-info-text {
  text-align: center;
  padding: 8px;
  font-size: 14px;
  color: #64748b;
}

/* ═══════════════════════════════════════════
   REMARKS
   ═══════════════════════════════════════════ */
.verlade-remarks {
  width: 100%;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 16px;
  padding: 12px;
  resize: vertical;
  outline: none;
  font-family: inherit;
}

.verlade-remarks:focus {
  border-color: #3b82f6;
}

.verlade-remarks::placeholder {
  color: #475569;
}

/* ═══════════════════════════════════════════
   FOOTER ACTIONS
   ═══════════════════════════════════════════ */
.verlade-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.verlade-finish-btn {
  width: 100%;
  height: 80px;
  border: 3px solid #10b981;
  border-radius: 14px;
  background: #064e3b;
  color: #10b981;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.verlade-finish-btn:active {
  background: #047857;
  color: #fff;
}

.verlade-cancel-btn {
  width: 100%;
  height: 56px;
  border: 2px solid #475569;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.verlade-cancel-btn:active {
  background: #1e293b;
  border-color: #ef4444;
  color: #ef4444;
}

/* ═══════════════════════════════════════════
   TABLET (768px+): Center modal, larger targets
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .verlade-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
  }

  .verlade-modal {
    max-width: 600px;
    width: 100%;
    max-height: 95dvh;
    border-radius: 16px;
    overflow-y: auto;
    border: 1px solid #222;
  }

  .verlade-trough-number {
    font-size: 64px;
  }

  .verlade-container-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .verlade-container-btn {
    height: 100px;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP (1024px+)
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .verlade-modal {
    max-width: 700px;
  }

  .verlade-weight-btn {
    height: 90px;
    font-size: 26px;
  }
}
