/* ═══════════════════════════════════════════════════════════════════════════
   Random Number Generator — Scoped overrides for #fu-random-number-generator
   Base styles come from fu-base.css. Only layout and tool-specific styles here.
   ═══════════════════════════════════════════════════════════════════════════ */

.fu-rng-results {
    font-family: var(--fu-font-mono, monospace);
    line-height: 1.6;
    word-break: break-all;
    padding: 1.5rem;
    background: var(--fu-input-bg);
    border: 1px solid var(--fu-border);
    border-radius: var(--fu-radius);
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: border-color 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}

.fu-rng-results:hover {
    border-color: var(--fu-border-focus);
}

.fu-rng-placeholder {
    font-family: inherit;
    font-size: 1rem;
    color: var(--fu-text-muted);
}

.fu-rng-number {
    font-family: inherit;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: var(--fu-bg);
    border: 1px solid var(--fu-border);
    border-radius: 9999px;
    color: var(--fu-text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    box-shadow: var(--fu-shadow-sm);
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fu-rng-number:hover {
    border-color: var(--fu-accent);
    transform: scale(1.05);
    background: var(--fu-bg-hover, #f9fafb);
}

.fu-rng-number:focus-visible {
    outline: 2px solid var(--fu-accent);
    outline-offset: 2px;
}

.fu-rng-number:active {
    transform: scale(0.95);
}

/* Large display for single number */
.fu-rng-results.fu-rng-single {
    font-size: 3.5rem;
}

.fu-rng-results.fu-rng-single .fu-rng-number {
    border: none;
    background: none;
    box-shadow: none;
    font-size: inherit;
    width: auto;
    height: auto;
    padding: 0;
}

.fu-rng-settings {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fu-rng-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .fu-rng-row {
        grid-template-columns: 1fr;
    }
}

.fu-rng-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fu-rng-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid var(--fu-border);
    padding-top: 1rem;
}

.fu-rng-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--fu-text-main);
    font-weight: 500;
}

.fu-rng-option input[type="checkbox"] {
    margin: 0;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.fu-rng-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.fu-rng-tooltip {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--fu-accent, #2563eb);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 5;
    animation: fu-tooltip-scale-in 0.12s ease-out forwards;
}

.fu-rng-results.fu-rng-single .fu-rng-tooltip {
    top: auto;
    bottom: calc(100% + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    background: var(--fu-text-main, #111827);
    font-size: 0.875rem;
    box-shadow: var(--fu-shadow-md);
    animation: fu-tooltip-fade-in-up 0.15s ease-out forwards;
}

@keyframes fu-tooltip-scale-in {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fu-tooltip-fade-in-up {
    from {
        opacity: 0;
        transform: translate(-50%, 4px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
