body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #050505;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
}

.bg-malha-padrao {
    background-image: radial-gradient(circle at 50% 50%, rgba(10, 15, 10, 1) 0%, rgba(2, 2, 3, 1) 100%),
        linear-gradient(rgba(86, 211, 100, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(86, 211, 100, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    background-position: center;
}

.texto-neon {
    text-shadow: 0 0 10px rgba(86, 211, 100, 0.5), 0 0 20px rgba(86, 211, 100, 0.2);
}

.cursor-piscante::after {
    content: '\2588';
    animation: piscar 1s step-end infinite;
    color: #56D364;
    margin-left: 4px;
}

@keyframes piscar {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#painel-botoes {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.glow-btn {
    position: relative;
    border-radius: 9999px;
    background: rgba(10, 15, 10, 0.6);
    border: 1px solid rgba(var(--neon-color), 0.15);
    --cursor-angle: 0deg;
    --edge-proximity: 0;
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.glow-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: conic-gradient(from calc(var(--cursor-angle) - 60deg) at 50% 50%, transparent 0deg, rgba(var(--neon-color), calc(var(--edge-proximity) / 100)) 60deg, transparent 120deg);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    filter: blur(4px);
}

.glow-btn::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: inherit;
    background: #050505;
    z-index: 1;
    pointer-events: none;
}

.glow-btn:hover::before {
    opacity: 1;
}

.glow-btn>* {
    position: relative;
    z-index: 2;
}

.anim-slide-up {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-card {
    background: linear-gradient(180deg, rgba(20, 25, 20, 0.7) 0%, rgba(5, 5, 5, 0.9) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.text-grad {
    background: linear-gradient(135deg, #56D364 0%, #1c5225 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(86, 211, 100, 0.2);
}

.title-lh {
    line-height: 1;
}

.app-gradient {
    background: radial-gradient(ellipse at 50% -20%, rgba(86, 211, 100, 0.08) 0%, transparent 60%);
}

.aspecto-quadrado {
    aspect-ratio: 1 / 1;
}

.animacao-surgir-bloco {
    opacity: 0;
    animation: surgirBlocoFramer 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes surgirBlocoFramer {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(15px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cartao-arquivo {
    background: #0a0f0a;
    border: 1px solid rgba(86, 211, 100, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.cartao-arquivo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(86, 211, 100, 0.08);
    border-color: rgba(86, 211, 100, 0.4);
}

.cartao-arquivo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(86, 211, 100, 0.4) 0%, transparent 50%, rgba(86, 211, 100, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cartao-arquivo:hover::before {
    opacity: 1;
}

.cartao-arquivo strong {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
    word-break: break-all;
}

.cartao-arquivo p {
    font-size: 0.7rem;
    color: #56D364;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cartao-arquivo button {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.cartao-arquivo button:hover {
    background: rgba(255, 0, 0, 0.2);
}

#estudio-principal {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
    background: var(--bg-malha-padrao);
}

#cabecalho-lab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#titulo-projeto {
    font-size: 1.8rem;
    font-weight: 800;
    color: #56D364;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(86, 211, 100, 0.3);
    margin: 0;
}

#acoes-globais button {
    background: rgba(86, 211, 100, 0.1);
    border: 1px solid rgba(86, 211, 100, 0.3);
    color: #56D364;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

#acoes-globais button:hover {
    background: rgba(86, 211, 100, 0.2);
    box-shadow: 0 0 15px rgba(86, 211, 100, 0.2);
}

#container-laboratorio {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#zona-envio {
    border: 2px dashed rgba(86, 211, 100, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

#zona-envio:hover {
    border-color: #56D364;
    background: rgba(86, 211, 100, 0.05);
}

#zona-envio p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 700;
}

#zona-envio:hover p {
    color: #56D364;
}

#espaco-de-trabalho {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

#espaco-de-trabalho::-webkit-scrollbar {
    width: 8px;
}

#espaco-de-trabalho::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

#espaco-de-trabalho::-webkit-scrollbar-thumb {
    background: rgba(86, 211, 100, 0.2);
    border-radius: 4px;
}

#espaco-de-trabalho::-webkit-scrollbar-thumb:hover {
    background: rgba(86, 211, 100, 0.4);
}

#grade-arquivos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

#visualizacao-focada {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(10, 15, 10, 0.8);
    border: 1px solid rgba(86, 211, 100, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.painel-controle-focado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(86, 211, 100, 0.1);
}

.painel-controle-focado button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.painel-controle-focado button:hover {
    border-color: #56D364;
    color: #56D364;
}

.painel-controle-focado input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(86, 211, 100, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    width: 40%;
    transition: all 0.3s ease;
    outline: none;
}

.painel-controle-focado input:focus {
    border-color: #56D364;
    box-shadow: 0 0 15px rgba(86, 211, 100, 0.2);
}

.painel-controle-focado span {
    font-size: 0.9rem;
    color: #56D364;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(86, 211, 100, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.area-edicao-expandida {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.info-detalhada {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
}

.info-detalhada p {
    margin: 0.8rem 0;
    color: #aaa;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.botoes-ferramentas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.botoes-ferramentas button,
.botoes-ferramentas select {
    background: rgba(86, 211, 100, 0.05);
    border: 1px solid rgba(86, 211, 100, 0.2);
    color: #56D364;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
}

.botoes-ferramentas select {
    padding-right: 3rem;
    background-image: linear-gradient(45deg, transparent 50%, #56D364 50%), linear-gradient(135deg, #56D364 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.botoes-ferramentas select option {
    background: #050505;
    color: #56D364;
}

.botoes-ferramentas button:hover,
.botoes-ferramentas select:hover {
    background: rgba(86, 211, 100, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(86, 211, 100, 0.1);
}

.botoes-ferramentas button:last-child {
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.botoes-ferramentas button:last-child:hover {
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
}