/* server/public/demo-modal.css */

.tn-demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.tn-demo-overlay[aria-hidden="false"] {
  display: flex;
}

.tn-demo-modal {
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(86,120,255,0.20) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(120% 160% at 80% 20%, rgba(120,90,255,0.16) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.10);
  overflow: hidden;
}

.tn-demo-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.tn-demo-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  line-height: 1.2;
}

.tn-demo-modal__sub {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.tn-demo-modal__close {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.tn-demo-modal__body {
  padding: 0 18px 18px;
}

.tn-demo-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.tn-demo-row {
  display: grid;
  gap: 6px;
}

.tn-demo-label {
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.tn-demo-input,
.tn-demo-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.90);
  padding: 10px 12px;
  outline: none;
}

.tn-demo-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.tn-demo-help {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

.tn-demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.tn-demo-error {
  font-size: 12px;
  color: rgba(255,120,120,0.95);
  min-height: 16px;
}

.tn-demo-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.tn-demo-btn--primary {
  background: linear-gradient(180deg, rgba(120,140,255,0.80) 0%, rgba(86,120,255,0.45) 100%);
  border-color: rgba(140,160,255,0.40);
}

.tn-demo-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.tn-demo-foot {
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.tn-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
}