@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("Space Grotesk");
}

/* Scope everything to ID2Symbol only */
.id2symbol {
  --bg: #f2efe8;
  --card: #ffffff;
  --ink: #1f1c17;
  --muted: #6f675f;
  --accent: #2f6f6d;
  --accent-dark: #255b59;
  --border: #e4ddd2;
  --shadow: rgba(31, 28, 23, 0.08);

  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
}

.id2symbol * {
  box-sizing: border-box;
}

.id2symbol .hidden {
  display: none !important;
}

/* MAIN CENTERED FRAME */
.id2symbol .page {
  max-width: 900px;
  margin: 40px auto 70px;
  padding: 40px 36px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px var(--shadow);
}

/* HEADER */
.id2symbol .hero {
  text-align: left;
  margin-bottom: 24px;
}

.id2symbol .hero h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.id2symbol .hero p {
  margin: 0;
  color: var(--muted);
}

/* CARDS */
.id2symbol .card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px var(--shadow);
  margin-bottom: 20px;
}

.id2symbol .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.id2symbol label {
  font-weight: 600;
}

.id2symbol input[type="file"],
.id2symbol select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
}

.id2symbol input[type="file"] {
  width: auto;
  align-self: flex-start;
}

/* BUTTONS */
.id2symbol .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.id2symbol button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.id2symbol button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px var(--shadow);
}

.id2symbol .primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.id2symbol .primary:hover {
  background: var(--accent-dark);
}

/* STATUS */
.id2symbol .status {
  margin-top: 12px;
  color: var(--muted);
}

.id2symbol .status.error {
  color: #b23b3b;
}

/* PROGRESS BAR */
.id2symbol .status-bar {
  margin-top: 10px;
  height: 6px;
  width: 100%;
  background: #efe7dc;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.id2symbol .status-bar-meta {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  font-size: 0.9rem;
  color: var(--muted);
}

.id2symbol .status-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.id2symbol .status-bar.error .status-bar-fill {
  background: #b23b3b;
}

/* TOOLTIP */
.id2symbol .help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 50%;
  border: 1px solid #2e62ff;
  background: #2e62ff;
  color: #fff;
  font-size: 0.75rem;
  cursor: help;
  line-height: 1;
  position: relative;
}

.id2symbol .help::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1f1c17;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.id2symbol .help:hover::after {
  opacity: 1;
}

/* WARNING */
.id2symbol .warn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid #c58b1b;
  background: #f5b942;
  color: #1f1c17;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: help;
  position: relative;
  line-height: 1;
}

.id2symbol .warn-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1f1c17;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.id2symbol .warn-icon:hover::after {
  opacity: 1;
}

.id2symbol .warn-text {
  color: #b23b3b;
  font-weight: 600;
}

/* MOBILE */
@media (max-width: 640px) {
  .id2symbol .hero h1 {
    font-size: 2rem;
  }
}
