:root {
    --bg-main: #050507;
    --bg-surface: #0b0b12;
    --bg-elev: #11111a;

    --border: rgba(255,255,255,0.08);

    --neon-green: #00ff9c;
    --neon-blue: #00e1ff;
    --neon-purple: #7a5cff;

    --text-high: #f4f6ff;
    --text-mid: #b6b8d6;
    --text-low: #6c6f93;

    --radius: 16px;
    --radius-sm: 10px;

    --glow-green: 0 0 25px rgba(0,255,156,0.35);
    --glow-blue: 0 0 30px rgba(0,225,255,0.25);
    --glow-purple: 0 0 30px rgba(122,92,255,0.25);

    --font-code: 'Fira Code','Cascadia Code',monospace;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Inter",system-ui,sans-serif;
}

body{
    min-height:100vh;
    padding:48px 24px;
    color:var(--text-mid);

    display:flex;
    flex-direction:column;
    align-items:center;

    background:
        radial-gradient(circle at 20% 10%, rgba(122,92,255,0.15), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(0,225,255,0.12), transparent 40%),
        #050507;
}

/* TITULO */

h1{
    font-size:2.8rem;
    font-weight:800;
    letter-spacing:-1.2px;
    color:var(--text-high);
}

span{
    color:var(--neon-green);
    text-shadow:0 0 18px rgba(0,255,156,0.6);
}

p{
    color:var(--text-low);
    margin:14px 0;
}

/* INPUT */

textarea{
    width:100%;
    max-width:700px;
    padding:18px;
    border-radius:var(--radius-sm);

    background:linear-gradient(#0c0c14,#090910);
    border:1px solid var(--border);
    color:var(--text-high);

    outline:none;
    resize:none;

    transition:.25s;
}

textarea:focus{
    border-color:var(--neon-blue);
    box-shadow:var(--glow-blue);
}

/* BOTÃO PRINCIPAL */

button{
    width:100%;
    max-width:700px;
    padding:16px;
    margin-top:16px;

    border-radius:var(--radius-sm);
    border:none;
    cursor:pointer;

    font-weight:700;
    letter-spacing:.4px;
    color:#021312;

    background:linear-gradient(135deg,var(--neon-green),var(--neon-blue));
    box-shadow:0 0 25px rgba(0,255,156,0.35);

    transition:.25s;
}

button:hover{
    transform:translateY(-2px);
    filter:brightness(1.1);
    box-shadow:0 0 40px rgba(0,255,156,0.6);
}

/* RESULTADO */

.resultado{
    width:100%;
    max-width:1150px;
    margin-top:52px;
    display:flex;
    gap:28px;
    justify-content: center;
    align-items: center;
}

/* BLOCOS */

.bloco-codigo,
.resultado-codigo{
    flex:1;
    min-height:400px;
    max-height:540px;

    padding:24px;
    border-radius:var(--radius);

    background:linear-gradient(180deg,#0b0b12,#08080d);
    border:1px solid var(--border);

    backdrop-filter:blur(8px);

    box-shadow:
        inset 0 0 40px rgba(122,92,255,0.05),
        0 0 40px rgba(0,0,0,0.6);

    transition:.3s;
}

.bloco-codigo:hover,
.resultado-codigo:hover{
    border-color:rgba(0,225,255,0.35);
    box-shadow:
        inset 0 0 40px rgba(0,225,255,0.08),
        0 0 45px rgba(0,225,255,0.12);
}

/* CODE */

.bloco-codigo{
    font-family:var(--font-code);
    font-size:13px;
    color:var(--neon-green);
    line-height:1.7;
    overflow:auto;
    white-space:pre-wrap;
}

.bloco-codigo::before{
    content:"● ● ●";
    color:#404056;
    letter-spacing:4px;
    display:block;
    margin-bottom:18px;
}

/* OUTPUT */

.resultado-codigo{
    background:linear-gradient(#020203,#000);
}

.resultado-codigo::before{
    content:">";
    color:#3b3b4f;
    display:block;
    margin-bottom:18px;
}

/* BOTÕES SECUNDÁRIOS */

.descricao{
    width:100%;
    max-width:700px;
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-bottom:12px;
}

.botao-Apagar,
.botao-Copiar{
    padding:9px 18px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;

    border:1px solid var(--border);
    background:#0c0c14;
    color:#b9baf7;

    transition:.25s;
}

/* COPIAR */

.botao-Copiar{
    color:var(--neon-blue);
    border-color:rgba(0,225,255,0.3);
}

.botao-Copiar:hover{
    background:var(--neon-blue);
    color:#001418;
    box-shadow:var(--glow-blue);
}

/* APAGAR */

.botao-Apagar{
    color:#ff4d6d;
    border-color:rgba(255,77,109,0.3);
}

.botao-Apagar:hover{
    background:#ff4d6d;
    color:#fff;
    box-shadow:0 0 30px rgba(255,77,109,0.5);
}

/* ICONES */

.botao-Copiar::before{content:"📋";}
.botao-Apagar::before{content:"🗑️";}

/* RESPONSIVO */

@media (max-width:768px){
    .resultado{
        flex-direction:column;
        align-items:center;
    }
}