/* The UUID generator: the generate panel and the inspector panel. Hero, content
   sections, cards, table and FAQ all come from tool_page.css. */

/* The starfield behind the hero is a full-size absolutely positioned image at
   z-index 0, so anything interactive on top of it needs its own stacking
   context or the image swallows every click. */
.uid {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto 56px auto;
  padding: 0 16px;
}

.uid-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.uid-panel-title {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.uid-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.uid-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.uid-field--wide {
  flex: 1 1 260px;
}

.uid-field--narrow {
  flex: 0 1 150px;
}

.uid-field-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

.uid-field input,
.uid-field select {
  width: 100%;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.uid-field input {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.uid-field select option {
  background: #1b0b33;
  color: #fff;
}

.uid-field input:focus,
.uid-field select:focus {
  outline: none;
  border-color: #8c46ff;
  background: rgba(0, 0, 0, 0.42);
}

.uid-note {
  margin: 12px 0 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 22px;
}

.uid-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 16px 0 0 0;
  padding: 0;
  border: none;
}

.uid-options legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
}

.uid-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.uid-check input {
  width: 17px;
  height: 17px;
  accent-color: #8c46ff;
  cursor: pointer;
}

.uid-check input:disabled {
  cursor: default;
}

.uid-check input:disabled + span {
  color: rgba(255, 255, 255, 0.4);
}

.uid-generate {
  margin-top: 18px;
}

.uid-notice {
  margin: 14px 0 0 0;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 21px;
  color: #fff;
  background: rgba(110, 0, 255, 0.18);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
}

.uid-notice.is-error {
  background: rgba(255, 88, 88, 0.16);
  border-color: rgba(255, 120, 120, 0.34);
}

/* Output */

.uid-output {
  margin-top: 18px;
}

.uid-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 22px;
  padding: 14px 16px;
}

.uid-textarea:focus {
  outline: none;
  border-color: #8c46ff;
}

.uid-count {
  margin: 8px 0 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Reserves one line's height whether or not it is saying anything, so the
   copy confirmation appearing and vanishing moves nothing on the page. */
.uid-status {
  min-height: 20px;
  margin: 10px 0 0 0;
  color: #6ee7a8;
  font-size: 13px;
  line-height: 20px;
}

.uid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.uid-actions .tp-btn.is-active {
  border-color: #8c46ff;
  color: #fff;
}

/* Inspector rows */

.uid-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.uid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 8px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.uid-row:first-child {
  border-top: none;
}

.uid-row-label {
  flex: 0 0 190px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.uid-row-value {
  flex: 1 1 200px;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  word-break: break-word;
}

.uid-row-value.is-mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

@media (max-width: 640px) {
  .uid-field--narrow {
    flex: 1 1 100%;
  }

  .uid-generate,
  .uid-actions .tp-btn {
    width: 100%;
  }

  .uid-row-label {
    flex: 1 1 100%;
  }
}
