/* UXBot main + item upload, plan sheet, and button levels.
   Primary orange is .btn-primary only. Default .btn is teal outline. */

:root {
  --ux-navy: #0F1B2D;
  --ux-card: #16263D;
  --ux-teal: #14B8A6;
  --ux-teal-text: #5EEAD4;
  --ux-orange: #F7931A;
  --ux-amber: #FBBF24;
  --ux-focus: #5EEAD4;
}

.btn,
label.file,
.btn-teal-outline,
.help-actions .btn-teal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ux-teal-text);
  border: 2px solid var(--ux-teal);
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.btn:hover,
label.file:hover,
.btn-teal-outline:hover {
  background: transparent;
  color: #99f6e4;
  border-color: #2dd4bf;
}

.btn-primary,
a.btn-primary,
button.btn-primary,
#stageBtn.btn,
#stageBtn.btn-primary {
  background: var(--ux-orange);
  color: var(--ux-navy);
  border: 0;
  min-height: 48px;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.btn-primary:hover,
#stageBtn.btn:hover,
#stageBtn.btn-primary:hover {
  background: #ffb14a;
  color: var(--ux-navy);
}

.btn-tertiary,
a.btn-tertiary,
button.btn-tertiary,
.side-delete,
#deleteMyData,
#deleteMyDataPhone {
  display: inline;
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  color: var(--ux-teal-text);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.btn-amber,
.btn-destructive {
  background: transparent;
  color: var(--ux-amber);
  border: 2px solid var(--ux-amber);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-tertiary:focus-visible,
.btn-teal-outline:focus-visible,
.chip:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ux-focus);
  outline-offset: 2px;
}

.help-actions .btn-teal-outline[hidden],
label.file.btn-teal-outline[hidden],
.btn[hidden],
.side-delete[hidden],
[hidden] {
  display: none !important;
}

.upload-ui {
  color: #F1F5F9;
}

.upload-drop {
  border: 2px dashed var(--ux-teal);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: rgba(20, 184, 166, 0.06);
}

.upload-drop.is-over {
  background: rgba(20, 184, 166, 0.16);
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.upload-files {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.upload-files li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.upload-warn,
.upload-error {
  color: var(--ux-amber);
  font-weight: 600;
}

.upload-progress {
  margin: 12px 0;
}

.upload-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #24344d;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 8%;
  background: var(--ux-teal);
}

.upload-confirm table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.upload-confirm th,
.upload-confirm td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.upload-confirm input {
  width: 100%;
  min-height: 48px;
  background: #0F1B2D;
  color: #F1F5F9;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

.corrected-label {
  color: var(--ux-teal-text);
  font-size: 13px;
}

.privacy-note,
.upload-limit {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
}

.waiting-card {
  background: var(--ux-card);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

.plan-sheet-root[hidden] { display: none !important; }

.plan-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.plan-sheet {
  background: var(--ux-navy);
  color: #F1F5F9;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 20px 18px 28px;
  border-radius: 16px 16px 0 0;
}

.plan-card {
  background: var(--ux-card);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
  min-height: 48px;
}

.plan-card.is-selected {
  border-color: var(--ux-teal);
}

.plan-sheet-fine,
.plan-sheet-cancel {
  font-size: 14px;
  color: #94a3b8;
}

.item-chooser input[type="search"] {
  width: 100%;
  min-height: 48px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0F1B2D;
  color: #F1F5F9;
  font-size: 16px;
}

.upload-result-card {
  background: var(--ux-card);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

@media (min-width: 1024px) {
  .plan-sheet-root {
    align-items: center;
  }
  .plan-sheet {
    width: 520px;
    border-radius: 16px;
    padding: 24px;
  }
}

.phil-short {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.phil-short p {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}
.trust-line {
  margin: 10px 0 0;
  color: #94A3B8;
  font-size: 13px;
}
.paypal-badge {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 10px;
  border-radius: 4px;
  background: #003087;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.upload-lead {
  margin: 0 0 10px;
  color: #F1F5F9;
}

@media (prefers-reduced-motion: reduce) {
  .upload-progress-fill,
  .plan-sheet-root,
  .plan-sheet {
    transition: none !important;
    animation: none !important;
  }
}
