/* Loading overlay styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* latin-ext */
@font-face {
    font-family: 'Audiowide';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(resources/fonts/audiowide1.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Audiowide';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(resources/fonts/audiowide2.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Animação de fundo - baseada no teste.html */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: #000;
    overflow: hidden;
}

.background-animation svg {
    width: 100%;
    height: 100vh;
}

.background-animation path {
    fill: none;
    stroke: url(#grad);
    stroke-width: 2;
    stroke-linecap: round;
    animation: wave 4s ease-in-out infinite;
}

/* Cada linha tem um atraso na animação */
.background-animation path:nth-child(1) { animation-delay: 0s; }
.background-animation path:nth-child(2) { animation-delay: -0.3s; }
.background-animation path:nth-child(3) { animation-delay: -0.6s; }
.background-animation path:nth-child(4) { animation-delay: -0.9s; }
.background-animation path:nth-child(5) { animation-delay: -1.2s; }
.background-animation path:nth-child(6) { animation-delay: -1.3s; }
.background-animation path:nth-child(7) { animation-delay: -1.4s; }
.background-animation path:nth-child(8) { animation-delay: -1.5s; }
.background-animation path:nth-child(9) { animation-delay: -1.6s; }
.background-animation path:nth-child(10) { animation-delay: -1.7s; }

@keyframes wave {
    0%   { transform: translateX(-5%) }
    50%  { transform: translateX(5%) }
    100% { transform: translateX(-5%) }
}

/* Ajustes para o conteúdo principal */
body {
    position: relative;
}

svg.content-wave {
    display: flex;
    width: 100%;
    height: 400px;   
    margin: 1px 0 1px 0;  
    overflow: visible;
}

svg.content-wave path {
    fill: none;
    stroke: url(#grad2);
    stroke-width: 2;
    stroke-linecap: round;
    animation: wave 4s ease-in-out infinite;
}

/* Cada linha tem um atraso na animação */
svg.content-wave path:nth-child(1) { animation-delay: 0s; }
svg.content-wave path:nth-child(2) { animation-delay: -0.3s; }
svg.content-wave path:nth-child(3) { animation-delay: -0.6s; }
svg.content-wave path:nth-child(4) { animation-delay: -0.9s; }
svg.content-wave path:nth-child(5) { animation-delay: -1.2s; }
svg.content-wave path:nth-child(6) { animation-delay: -1.3s; }
svg.content-wave path:nth-child(7) { animation-delay: -1.4s; }
svg.content-wave path:nth-child(8) { animation-delay: -1.5s; }
svg.content-wave path:nth-child(9) { animation-delay: -1.6s; }
svg.content-wave path:nth-child(10) { animation-delay: -1.7s; }

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

/* ====== Fonte Metro ====== */
@font-face {
    font-family: 'MetroIcon';
    src: url('metro.woff') format('woff'),
         url('metro.ttf') format('truetype'),
         url('metro.svg#MetroIcon') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* ====== Classe base ====== */
.metro-icon {
    font-family: 'MetroIcon';
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    text-transform: none;
    line-height: 1;
    font-size: 20px;
    color: white;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -2px;
    padding-right: 10px;
}

/* ====== Tamanhos ====== */
.icon-xs { font-size: 12px; }
.icon-sm { font-size: 16px; }
.icon-md { font-size: 20px; }
.icon-lg { font-size: 28px; }
.icon-xl { font-size: 36px; }
.icon-xxl { font-size: 48px; }

/* ====== Cores ====== */
.icon-white       { color: white; }
.icon-blue        { color: #1E90FF; }
.icon-lightblue   { color: #63b3ed; }
.icon-darkblue    { color: #003366; }
.icon-gray        { color: #999999; }
.icon-black       { color: #000000; }
.icon-warning     { color: #ffcc00; }
.icon-error       { color: #e53935; }
.icon-success     { color: #43a047; }


body {
    font-family: 'Audiowide', cursive;
    background-color: black;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animação inicial do prompt no centro */
.initial-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Audiowide', cursive;
    font-size: 80px;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1001;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.initial-prompt.moving {
    top: 30px;
    left: 75px;
    transform: none;
    font-size: 20px;
}

.initial-prompt.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Menu Superior */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: rgba(64, 64, 64, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-menu.show {
    opacity: 1;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    color: white;
    font-size: 18px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.social-icon:hover {
    color: #1E90FF;
    background: rgba(30, 144, 255, 0.1);
    transform: scale(1.1);
}

/* Botão Sanduíche */
.hamburger-btn {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo Container */
.logo-container {
    font-family: 'Audiowide', cursive;
    font-size: 25px;
    font-weight: normal;
    white-space: nowrap;
}

.logo-text {
    font-family: 'Audiowide', cursive;
}

/* Menu Lateral */
.sidebar {
    position: fixed;
    top: 45px;
    left: -300px;
    width: 250px;
    height: calc(100vh - 45px);
    background: rgba(64, 64, 64, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(30, 144, 255, 0.3);
    display: flex;
    flex-direction: column;
    font-family: 'Arial';
    font-size: 10px;
    font-weight: normal;
    white-space: nowrap;
}

.sidebar.open {
    left: 0;
}

.sidebar-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    z-index: 1001;
    position: relative;
}

.sidebar-footer {
    padding: 5px 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1001;
    position: relative;
}

.sidebar-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Corrige 'right' inválido */
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: white;
    position: relative;
    z-index: 1003;
}

/* Novo: agrupa ícone e texto apenas */
.menu-title > span:first-child,
.menu-title > span:nth-child(2) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Novo: agrupa ícone + texto */
.menu-label {
    display: flex;
    align-items: center;
    gap: 0px;
}

/* Chevron continua como está */
.menu-title i {
    transition: transform 0.3s ease;
}

/* Quando ativo (ex: via classe .active), gira o chevron */
.menu-title.active i {
    transform: rotate(90deg);
}


.menu-title:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1E90FF;
    border-left-color: #1E90FF;
}

.menu-title-simple {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    z-index: 1003;
}

.menu-title-simple:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1E90FF;
}

.menu-title i {
    transition: transform 0.3s ease;
}

.menu-title.active i {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1002;
}

.submenu.open {
    max-height: 200px;
    
}

.submenu-item {
    display: block;
    padding: 11px 40px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
    position: relative;
    z-index: 1003;
}

.submenu-item:hover {
    background: rgba(30, 144, 255, 0.1);
    color: #1E90FF;
    border-left-color: #1E90FF;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.container {
    position: relative;
    width: 100%;
    min-height: 94vh;
}

.prompt-text {
    font-family: 'Audiowide', cursive;
}

.cursor {
    font-family: 'Audiowide', cursive;
    color: white;
    animation: blink 1s infinite;
}

/* Overlay escuro */
.login-overlay {
    display: none; /* começa oculto */
    position: fixed;
    radius: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3001;
    justify-content: center;
    align-items: center;
}

/* Caixa de login */
.login-box {
    background: rgb(233, 232, 232);
    border: 1px solid #695aee;
    border-radius: 0px;
    width: 300px;
    color: black;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

/* Conteúdo do formulário */
.login-content {
    padding: 15px;
}

/* Faixa superior estilo Windows */
.login-titlebar {
    background: linear-gradient(90deg, #1e90ff, #0078d7);
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 12px;
    cursor: default;
    user-select: none;
    text-align: left;
    border-bottom: 1px solid #0a58ca;
}

/* Campos */
.login-box input {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px 0;
    border: 3px solid #2711e7;
    border-radius: 5px;
    background: #222;
    color: white;
}

/* Botões */
.login-actions {
    display: flex;
    justify-content: space-between;
}

.login-actions button {
    background: dodgerblue;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.login-actions button:hover {
    background: deepskyblue;
}

#close-login {
    background: crimson;
}
#close-login:hover {
    background: red;
}

/* Animação de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}


@keyframes lightHit {
    0%   { text-shadow: none; transform: scale(1); }
    50%  { text-shadow: 0 0 10px #ffffff, 0 0 20px #1E90FF; transform: scale(1.3); }
    100% { text-shadow: none; transform: scale(1); }
}

.light-hit {
    animation: lightHit 0.3s ease-out;
    transition: transform 0.3s ease-out;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.content {
    opacity: 0;
    padding: 120px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    transition: opacity 1s ease-in-out;
    font-family: 'Arial', sans-serif;
}

.content.show {
    opacity: 1;
}

.content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, white, #1E90FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: #ccc;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: rgba(30, 144, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(60, 80, 100, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1E90FF;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 0;
    color: #ccc;
}

/* Responsividade para tablets */
@media (max-width: 768px) {
    .initial-prompt {
        font-size: 35px;
    }
    
    .logo-container {
        font-size: 16px;
    }
    
    .top-menu {
        height: 55px;
        padding: 0 15px;
    }
    
    .left-section {
        gap: 12px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .sidebar {
        top: 55px;
        height: calc(100vh - 55px);
        width: 280px;
        left: -280px;
    }
    
    .content {
        padding: 80px 15px 30px;
    }
    
    .content h1 {
        font-size: 2.5rem;
    }
    
    .content p {
        font-size: 1.1rem;
    }
    
    .services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
}

/* Responsividade para celulares */
@media (max-width: 480px) {
    .initial-prompt {
        font-size: 25px;
    }
    
    .logo-container {
        font-size: 16px;
    }
    
    .top-menu {
        height: 50px;
        padding: 0 10px;
    }
    
    .left-section {
        gap: 8px;
    }
    
    .hamburger-btn {
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        height: 2px;
    }
    
    .sidebar {
        top: 50px;
        height: calc(100vh - 50px);
        width: 250px;
        left: -250px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .content {
        padding: 60px 10px 20px;
    }
    
    .content h1 {
        font-size: 2rem;
    }
    
    .content p {
        font-size: 1rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
}

