:root {
    --bg-dark: #100D23;
    --card-bg: rgba(55, 41, 99, 0.2);
    --neon-mint: #00FF9C;
    --lavender: #c592ff;
    --vivid-pink: #ff4081;
    --text-main: #f0f0f0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* --- BACKGROUND DECORATION --- */
.background-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

.glow-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 156, 0.05) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    z-index: -2;
}

.glow-sphere-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    z-index: -2;
}

/* --- GLASS CONTAINER --- */
.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* --- TYPOGRAPHY --- */
.neon-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.neon-title span {
    color: var(--neon-mint);
    text-shadow: 0 0 20px rgba(0, 255, 156, 0.4);
}

.subtitle {
    color: var(--lavender);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

/* --- CONTROLS --- */
.controls {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--lavender);
    margin-bottom: 0.5rem;
}

input[type="number"] {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--neon-mint);
    padding: 0.8rem;
    font-size: 1.2rem;
    text-align: center;
    width: 80px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    border-color: var(--neon-mint);
}

.btn-primary {
    background: var(--neon-mint);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- OUTPUT --- */
.output-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.output-area {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--lavender);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: pre-line;
}

.placeholder {
    color: rgba(197, 146, 255, 0.3);
    font-style: italic;
    font-size: 0.9rem;
}

.btn-secondary {
    margin-top: 1rem;
    background: transparent;
    color: var(--vivid-pink);
    border: 2px solid var(--vivid-pink);
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--vivid-pink);
    color: white;
}

.btn-secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--lavender);
    color: var(--lavender);
}

/* --- FOOTER --- */
footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

#poolCount {
    color: var(--lavender);
    font-weight: 600;
}
