:root {
    --bg-color: #08080a;
    --card-bg: #121214;
    --accent-color: #00ff88;
    --text-main: #ffffff;
    --text-dim: #88888b;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid #222;
}

header { text-align: center; margin-bottom: 25px; }

/* Estilo da Logo */
.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 15px;
    filter: drop-shadow(0 0 8px var(--accent-color));
    object-fit: cover;
}

header h1 { letter-spacing: 1px; font-size: 1.6rem; }
header h1 span { color: var(--accent-color); }
header p { color: var(--text-dim); font-size: 0.75rem; margin-top: 4px; }

.length-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1a1e;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    gap: 8px;
}

.step-btn {
    background: #252529;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-btn:active { transform: scale(0.9); background: var(--accent-color); color: #000; }

#length-num { font-size: 2.8rem; font-weight: 800; line-height: 1; }

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.chip { cursor: pointer; }
.chip input { display: none; }
.chip span {
    background: #1a1a1e;
    border: 1px solid #333;
    display: flex;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    justify-content: center;
    color: var(--text-dim);
    transition: 0.2s;
}

.chip input:checked + span {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 255, 136, 0.05);
}

.display-box {
    background: #000;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    border: 1px solid #222;
    word-break: break-all;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions { display: flex; gap: 10px; margin-bottom: 25px; }
button.main { flex: 2; background: var(--accent-color); color: #000; border: none; padding: 15px; border-radius: 12px; font-weight: bold; cursor: pointer; }
button.copy { flex: 1; background: #252529; color: #fff; border: none; border-radius: 12px; cursor: pointer; }

.history { border-top: 1px solid #222; padding-top: 20px; }
.history h3 { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 10px; text-transform: uppercase; }
.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-item {
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
}

footer { margin-top: 20px; text-align: center; font-size: 0.8rem; color: var(--text-dim); }
footer a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
