/* ════════════════════════════════════════════════════════════════════════════
   RECATOOLS — UUID / ULID Generator — style.css
   Tool-specific overrides only.
   Base styles live in /assets/css/tool-page.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Version tab pills ───────────────────────────────────────────────────── */
.version-tabs {
    display:         flex;
    gap:             0.5rem;
    flex-wrap:       wrap;
    margin-bottom:   1.25rem;
}

.version-tab {
    padding:         0.4rem 1rem;
    border-radius:   999px;
    border:          1.5px solid var(--border);
    background:      transparent;
    color:           var(--text-secondary, #64748B);
    font-size:       0.875rem;
    font-weight:     600;
    font-family:     'IBM Plex Sans', sans-serif;
    cursor:          pointer;
    transition:      background 0.15s, color 0.15s, border-color 0.15s;
    white-space:     nowrap;
}

.version-tab:hover {
    border-color:    var(--accent, #E8472F);
    color:           var(--accent, #E8472F);
}

.version-tab--active,
.version-tab[aria-selected="true"] {
    background:      var(--accent, #E8472F);
    border-color:    var(--accent, #E8472F);
    color:           #fff;
}

/* ── Options row ─────────────────────────────────────────────────────────── */
.uuid-options {
    display:         flex;
    flex-wrap:       wrap;
    gap:             0.75rem 1.5rem;
    margin-bottom:   1.25rem;
}

.uuid-option-label {
    display:         flex;
    align-items:     center;
    gap:             0.45rem;
    font-size:       0.875rem;
    font-weight:     500;
    color:           var(--text-primary, #0D1B2A);
    cursor:          pointer;
    user-select:     none;
}

.uuid-option-label input[type="checkbox"] {
    width:           16px;
    height:          16px;
    cursor:          pointer;
    accent-color:    var(--accent, #E8472F);
    flex-shrink:     0;
}

/* ── Quantity row ────────────────────────────────────────────────────────── */
.uuid-quantity-row {
    display:         flex;
    align-items:     center;
    gap:             0.75rem;
    margin-bottom:   1.25rem;
}

.uuid-quantity-label {
    font-size:       0.875rem;
    font-weight:     600;
    color:           var(--text-secondary, #64748B);
    white-space:     nowrap;
}

.uuid-quantity-input {
    width:           80px;
    padding:         0.4rem 0.75rem;
    border:          1.5px solid var(--border, #E2E4E8);
    border-radius:   8px;
    font-size:       0.9375rem;
    font-weight:     600;
    font-family:     'IBM Plex Sans', sans-serif;
    color:           var(--text-primary, #0D1B2A);
    background:      #fff;
    text-align:      center;
    transition:      border-color 0.15s;
    -moz-appearance: textfield;
}
.uuid-quantity-input::-webkit-inner-spin-button,
.uuid-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.uuid-quantity-input:focus {
    outline:         none;
    border-color:    var(--accent, #E8472F);
}

.uuid-quantity-hint {
    font-size:       0.8125rem;
    color:           var(--text-secondary, #64748B);
}

/* ── Output section ─────────────────────────────────────────────────────── */
#output-section {
    margin-top:      1.25rem;
}

/* ── Per-line ID list ───────────────────────────────────────────────────── */
.id-line-container {
    display:         flex;
    flex-direction:  column;
    gap:             0.375rem;
    margin-bottom:   1rem;
    max-height:      420px;
    overflow-y:      auto;
    border:          1.5px solid var(--border, #E2E4E8);
    border-radius:   10px;
    padding:         0.5rem;
    background:      #fafaf8;
}

.id-line {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             0.75rem;
    padding:         0.45rem 0.75rem;
    border-radius:   6px;
    background:      transparent;
    transition:      background 0.12s;
}

.id-line:hover {
    background:      #f0ede8;
}

.id-line-text {
    font-family:     'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    font-size:       0.85rem;
    color:           var(--text-primary, #0D1B2A);
    letter-spacing:  0.02em;
    word-break:      break-all;
    flex:            1;
    user-select:     all;
}

/* ── Per-line copy button — visible only on hover ───────────────────────── */
.id-line-copy {
    flex-shrink:     0;
    padding:         0.25rem 0.625rem;
    border:          1.5px solid var(--border, #E2E4E8);
    border-radius:   6px;
    background:      #fff;
    color:           var(--text-secondary, #64748B);
    font-size:       0.75rem;
    font-weight:     600;
    font-family:     'IBM Plex Sans', sans-serif;
    cursor:          pointer;
    opacity:         0;
    transition:      opacity 0.15s, border-color 0.15s, color 0.15s;
}

.id-line:hover .id-line-copy {
    opacity:         1;
}

.id-line-copy:hover {
    border-color:    var(--accent, #E8472F);
    color:           var(--accent, #E8472F);
}

.id-line-copy.copy-btn--copied {
    border-color:    #22c55e;
    color:           #16a34a;
    opacity:         1;
}

/* ── Action buttons row ─────────────────────────────────────────────────── */
.uuid-actions {
    display:         flex;
    gap:             0.75rem;
    flex-wrap:       wrap;
}

.uuid-actions .btn-ghost {
    flex:            1;
    min-width:       120px;
    text-align:      center;
}

/* ── Privacy note ────────────────────────────────────────────────────────── */
.uuid-privacy-note {
    display:         flex;
    align-items:     center;
    gap:             0.5rem;
    margin-top:      1.25rem;
    padding:         0.625rem 0.875rem;
    background:      #f0ede8;
    border-radius:   8px;
    font-size:       0.8125rem;
    color:           var(--text-secondary, #64748B);
}

.uuid-privacy-note code {
    font-family:     'SFMono-Regular', 'Consolas', monospace;
    font-size:       0.75rem;
    color:           var(--accent, #E8472F);
}

/* ── Toast notification ─────────────────────────────────────────────────── */
.toast {
    position:        fixed;
    bottom:          1.5rem;
    left:            50%;
    transform:       translateX(-50%) translateY(1rem);
    background:      #0D1B2A;
    color:           #fff;
    padding:         0.6rem 1.25rem;
    border-radius:   8px;
    font-size:       0.875rem;
    font-weight:     500;
    pointer-events:  none;
    opacity:         0;
    transition:      opacity 0.2s, transform 0.2s;
    z-index:         9999;
    white-space:     nowrap;
}
.toast--visible {
    opacity:         1;
    transform:       translateX(-50%) translateY(0);
}

/* ── Mobile adjustments ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .uuid-options {
        gap:  0.625rem 1rem;
    }

    .id-line-text {
        font-size: 0.775rem;
    }

    .id-line-copy {
        opacity: 1; /* Always visible on touch */
    }

    .uuid-actions {
        flex-direction: column;
    }

    .uuid-actions .btn-ghost {
        width: 100%;
    }
}

/* cache-buster: 2026-05-24T05:06:05Z */

/* ── UUID v5 namespace inputs (RT-DEV-007 enhancement) ──────────────── */
.uuid-v5-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-bottom: 1.25rem; padding: 0.9rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.uuid-v5-field { display: flex; flex-direction: column; gap: 0.3rem; }
.uuid-v5-field--grow { flex: 1; min-width: 180px; }
.uuid-v5-select, .uuid-v5-input { padding: 0.5rem 0.7rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.9rem; font-family: inherit; }
.uuid-v5-input { width: 100%; }
.uuid-v5-select:focus, .uuid-v5-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.uuid-v5-hint { flex-basis: 100%; font-size: 0.72rem; color: #94a3b8; margin: 0; }
