/* Last Updated: 08.10.2025 at 10:15 (CEST) */
/* UUID Tool Styles
   Responsive layout with light/dark mode support */

:root {
  --font-sans: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Brand */
  --brand-1: #0DACDB;
  --brand-2: #2891B1;
  --brand-3: #357386;

  /* Semantic */
  --ok: #22c55e;
  --warn: #f59e0b;

  /* Light palette */
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-subtle: #f2f4f7;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --ring: 0 0 0 3px rgba(13,172,219,.25);
}

.dark-mode {
  --bg: #0f1418;
  --surface: #161b22;
  --surface-subtle: #131920;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #28303a;
  --shadow: 0 8px 24px rgba(0,0,0,.5);
  --ring: 0 0 0 3px rgba(13,172,219,.4);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(13,172,219,.15), transparent 45%),
              radial-gradient(900px 500px at -10% 120%, rgba(40,145,177,.12), transparent 50%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 1.2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: var(--shadow);
  margin-block: 1rem;
}

.card.subtle {
  background: var(--surface-subtle);
}

.tool-heading {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  letter-spacing: .01em;
  text-align: center;
}

.card-title {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  letter-spacing: .01em;
}

.stack { display: flex; flex-direction: column; }
.center { align-items: center; text-align: center; }
.gap-3 { gap: 1rem; }

.uuid-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.8rem);
  line-height: 1.3;
  word-break: break-all;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: linear-gradient(0deg, rgba(13,172,219,.06), rgba(13,172,219,0));
  width: min(100%, 680px);
}

.uuid-display:focus {
  outline: none;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

.download-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.field-label {
  font-weight: 600;
  text-align: center;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.hint {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
  text-align: center;
}

.range-pair {
  display: grid;
  gap: .5rem;
  width: 100%;
  max-width: 360px;
  justify-items: center;
}

@media (min-width: 480px) {
  .range-pair { grid-template-columns: 1fr 120px; align-items: center; }
}

input[type="range"] { width: 100%; }
input[type="number"] {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: .6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.muted { color: var(--text-muted); }
