@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --cor-fundo: #1a1a1a;
    --cor-caixa: #25252b;
    --cor-caixa-interna: #2d2d39;
    --cor-neon-1: #03a9f4; 
    --cor-neon-2: #2196f3; 
    --cor-neon-vermelho: #ff1b6b; 
    --cor-texto: #e0e0e0;
    --cor-texto-secundario: #a0a0a0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    overflow: hidden; 
}


/* --- TELA DE ENTRADA E BOTÃO NEON --- */

.tela-inicial {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.botao-neon {
    position: relative; 
    width: 300px;
    height: 80px;
    border: none;
    border-radius: 20px; 
    background: transparent; 
    cursor: pointer;
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
}


.botao-neon::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 300%;
    top: -100%;
    left: -50%;
    
    background: conic-gradient(
        transparent,
        var(--cor-neon-1), 
        var(--cor-neon-vermelho), 
        transparent 30%
    );
    
    animation: rotating 4s linear infinite;
}

.botao-neon::after {
    content: "";
    position: absolute;
    inset: 4px; 
    background: var(--cor-caixa-interna); 
    border-radius: 15px; 
    border: 3px solid var(--cor-caixa);
}

.botao-neon span {
    position: relative; 
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--cor-texto);
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.conteudo-principal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
}

.caixa {
    background-color: var(--cor-caixa);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--cor-caixa-interna);
    
}

header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--cor-caixa-interna);
    padding-bottom: 20px;
    text-align: center;
}

h1 {
    color: var(--cor-neon-1);
    font-size: 1.8em;
}

.formulario-cripto {
    background: none;
    border: none;
    box-shadow: none;
}

label {
    font-weight: 600;
    color: var(--cor-texto-secundario);
}

textarea, input[type="number"] {
    background-color: var(--cor-caixa-interna);
    color: var(--cor-texto);
    border: 1px solid var(--cor-caixa);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    width: 100%;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

textarea {
    resize: vertical; 
    min-height: 100px; 
}

textarea:focus, input[type="number"]:focus {
    outline: none;
    border-color: var(--cor-neon-1);
    box-shadow: 0 0 10px rgba(3, 169, 244, 0.5);
}

.botoes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

button {
    background-color: var(--cor-neon-1);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(3, 169, 244, 0.3);
}

button:hover {
    background-color: var(--cor-neon-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(3, 169, 244, 0.5);
}

.area-resultado-cabecalho { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.area-resultado-cabecalho h3 { margin: 0; color: var(--cor-texto-secundario); }
#result { background-color: var(--cor-caixa-interna); border: 1px solid var(--cor-caixa); border-radius: 8px; padding: 12px; min-height: 40px; word-wrap: break-word; }
.botao-usar-resultado { background: none; border: none; cursor: pointer; color: var(--cor-texto-secundario); font-size: 1.2em; transition: all 0.3s ease; }
.botao-usar-resultado:hover { color: var(--cor-neon-1); transform: scale(1.1); }

/* --- ANIMAÇÕES DE TRANSIÇÃO --- */

.escondido {
    display: none;
}

.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}