.weighbridge-page {
  gap: 2rem;
}

.weighbridge-page__header {
  align-items: flex-start;
}

.weighbridge-page__header .helper-text {
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.weighbridge-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.weighbridge-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.weighbridge-form__control {
  gap: 0.9rem;
}

.weighbridge-form__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  border: 2px dashed rgba(19, 35, 53, 0.25);
  background: rgba(19, 99, 223, 0.05);
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-dropzone:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(19, 99, 223, 0.15);
}

.upload-dropzone:hover {
  transform: translateY(-1px);
}

.upload-dropzone.dragover {
  background: rgba(71, 202, 204, 0.15);
  border-color: var(--accent);
}

.upload-dropzone__icon {
  font-size: 1.35rem;
}

.upload-dropzone__text {
  font-size: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.status-message {
  display: none;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
  font-weight: 500;
  background: rgba(19, 35, 53, 0.04);
}

.status-message.is-visible {
  display: block;
}

.status-message--loading {
  border-color: rgba(241, 196, 15, 0.35);
  background: rgba(241, 196, 15, 0.08);
  color: #9a7a00;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-message--success {
  border-color: rgba(47, 155, 89, 0.4);
  background: rgba(47, 155, 89, 0.08);
  color: var(--success);
}

.status-message--error {
  border-color: rgba(214, 69, 69, 0.4);
  background: rgba(214, 69, 69, 0.08);
  color: var(--danger);
}

.status-message__spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(241, 196, 15, 0.4);
  border-top-color: transparent;
  border-radius: 50%;
  animation: status-spin 1s linear infinite;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .weighbridge-page__header {
    flex-direction: column;
    align-items: stretch;
  }

  .weighbridge-page__header .secondary-button {
    align-self: flex-start;
  }
}
