/* ==========================================================================
   VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
    --et-green: #00f260;
    --et-glow: 0 0 20px rgba(0, 242, 96, 0.4);
    --bg-dark: #000000;
}

body {
    background-color: var(--bg-dark);
    color: #e5e5e5;
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    overflow: hidden; 
}

/* ==========================================================================
   BACKGROUND E ANIMAÇÕES (MALHA E ORBS)
   ========================================================================== */

/* A malha quadriculada. 
   O segredo: mix-blend-mode: color-dodge. 
   Isso faz com que as linhas brancas SUMAM contra o fundo preto, e só 
   acendam como NEON quando a luz do orb passar por baixo delas! */
.grid-background {
    position: fixed; 
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 3; /* Fica NA FRENTE dos orbs, mas ATRÁS do vidro */
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    /* A mágica que torna a malha invisível no escuro e brilhante na luz */
    mix-blend-mode: color-dodge;
    /* Impede que a malha bloqueie os cliques do mouse */
    pointer-events: none;
}

/* Orbs: agora todos compartilham a mesma cor base verde e são maiores */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 2; /* Ficam atrás da malha */
    opacity: 1;
    animation: moveOrb 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,242,96,0.25) 0%, transparent 70%);
    top: -200px; left: -200px;
}

.orb-2 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,242,96,0.15) 0%, transparent 70%);
    bottom: -300px; right: -200px;
    animation-delay: -5s; 
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,242,96,0.2) 0%, transparent 70%);
    top: 30%; left: 20%;
    animation-duration: 25s;
}

@keyframes moveOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50vw, 30vh) scale(1.3); }
}

/* ==========================================================================
   ESTILOS DE GLASSMORPHISM (VIDRO REALISTA)
   ========================================================================== */

/* A caixa de vidro mestre usada em todos os painéis e na sidebar */
.glass-box {
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    border-left: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 16px;
    
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.1);
        
    transition: all 0.3s ease;
}

.glass-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px 16px 0 0;
}

/* Campos textuais afundados no vidro */
.glass-input, .glass-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.glass-input:focus, .glass-textarea:focus {
    outline: none;
    border-color: var(--et-green);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), var(--et-glow);
    background: rgba(0, 0, 0, 0.7);
}

.glass-textarea { 
    resize: none; 
    border-radius: 0 0 16px 16px; 
    border: none; 
}

/* ==========================================================================
   BOTÕES DE VIDRO
   ========================================================================== */

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-glass-primary {
    background: rgba(0, 242, 96, 0.15);
    border: 1px solid rgba(0, 242, 96, 0.4);
    border-top: 1px solid rgba(0, 242, 96, 0.6);
    border-radius: 12px;
    color: var(--et-green);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,242,96,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-glass-primary:hover {
    background: rgba(0, 242, 96, 0.3);
    border-color: var(--et-green);
    color: #fff;
    box-shadow: var(--et-glow);
    transform: translateY(-2px);
}

.btn-copy {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    transition: all 0.2s;
}
.btn-copy:hover { color: #fff; border-color: var(--et-green); background: rgba(0,242,96,0.1); }

/* ==========================================================================
   MENU LATERAL
   ========================================================================== */

.sidebar-link {
    display: flex; align-items: center; padding: 12px 16px;
    border-radius: 8px; font-size: 0.875rem; color: #9ca3af;
    transition: all 0.2s; font-weight: bold; letter-spacing: 0.5px;
}
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(0,242,96,0.15) 0%, transparent 100%);
    border-left: 3px solid var(--et-green);
    color: #fff;
}

/* ==========================================================================
   MODAIS DE VIDRO (OVERLAYS PARA ALERTAS E TAGS)
   ========================================================================== */

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
}

/* Essa classe é usada na base de qualquer modal para garantir o efeito vidro */
.modal-glass {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    width: 90%; 
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: modalPop 0.3s ease-out forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header { 
    display: flex; justify-content: space-between; 
    margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 16px; 
}

.stat-glass {
    background: rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px; border-radius: 8px; text-align: center;
}

/* ==========================================================================
   TAGS INTERATIVAS
   ========================================================================== */
.tag-interactive {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px; border-radius: 20px;
    font-size: 0.85rem; display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; 
    transition: all 0.2s; color: #ccc;
}
.tag-interactive:hover {
    background: rgba(0, 242, 96, 0.15);
    border-color: rgba(0, 242, 96, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,242,96,0.15);
}
.tag-interactive .score { font-weight: bold; color: var(--et-green); }

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--et-green); }

.text-etGreen { color: var(--et-green) !important; }
.shadow-etGlow { box-shadow: var(--et-glow) !important; }