/* /var/www/html/assets/css/gen-tools.css : 소형 생성기 도구 공통 스타일
   (UUID · 닉네임 · 비밀번호 강도 · 색상 팔레트에서 사용) */

.gt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 14px;
}

.gt-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  color: rgba(245, 245, 242, 0.85);
}

.gt-num {
  width: 76px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.gt-select {
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #1c1c1c;
  color: var(--text);
  font-weight: 700;
  color-scheme: dark;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa9a4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.gt-select option {
  background: #1c1c1c;
  color: #f5f5f2;
}

/* ---------- 닉네임 목록 ---------- */
.nk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nk-item {
  padding: 12px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: linear-gradient(165deg, #fcfcfa 0%, #f1f1ec 100%);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.nk-item:hover,
.nk-item:focus {
  transform: translateY(-2px);
  border-color: #b9aef2;
}

/* ---------- 비밀번호 강도 ---------- */
.pc-card {
  max-width: 560px;
}

.pc-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.pc-showwrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 4px;
  font-size: 0.88rem;
  color: rgba(245, 245, 242, 0.75);
  cursor: pointer;
}

.pc-strength {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.pc-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.pc-level {
  margin: 10px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.pc-crack {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pc-checks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.pc-checks li {
  padding: 8px 12px 8px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.88rem;
  color: rgba(245, 245, 242, 0.62);
  position: relative;
}

.pc-checks li::before {
  content: "✕";
  position: absolute;
  left: 11px;
  color: #ef9aa8;
  font-weight: 800;
}

.pc-checks li.is-ok {
  color: #f5f5f2;
  border-color: rgba(143, 220, 188, 0.5);
}

.pc-checks li.is-ok::before {
  content: "✓";
  color: #8fdcbc;
}

/* ---------- 색상 팔레트 ---------- */
.pl-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

.pl-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 6px;
}

.pl-hex {
  border: 0;
  background: rgba(0, 0, 0, 0.001);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}

.pl-hex:hover {
  background: rgba(0, 0, 0, 0.14);
}

.pl-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.55;
}

.pl-lock:hover,
.pl-lock.is-locked {
  opacity: 1;
}

.gt-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .pl-palette {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pl-swatch {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 12px;
    min-height: 62px;
  }

  .pl-lock {
    position: static;
    order: 2;
  }
}
