:root {
    --primary: #00bcd4;
    --secondary: #222831;
    --accent: #393e46;
    --text: #eeeeee;
    --highlight: #00fff5;
}

html {
    scroll-behavior: smooth;
    /* Isso ainda é útil para âncoras dentro da mesma página */
    scroll-padding-top: 0;
    /* Removido o padding top, pois o menu agora é sidebar */
}

body {
    margin: 0;
    padding: 0;
    background: transparent !important;
    color: var(--text);
    font-family: 'Roboto', Arial, sans-serif;
    scroll-behavior: smooth;
    padding-top: 0;
}

/* Plano de fundo global: imagem, desfoque e overlay escuro */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: -2;
    transform: scale(1.05);
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 20, 0.7);
    z-index: -1;
}

/* Main Content: Deve ser transparente e apenas um contêiner de layout */
.main-content {
    margin-left: 260px; /* Espaço para o sidebar em desktop */
    padding: 24px; /* Padding GERAL para as seções dentro do main-content */
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent; /* MUITO IMPORTANTE: transparente */
    backdrop-filter: none; /* MUITO IMPORTANTE: sem blur */
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

section {
    max-width: 900px; /* Largura padrão para seções gerais (home, sobre, etc.) */
    margin: 60px auto 0 auto;
    padding: 40px 24px;
    
    /* PROPRIEDADES DE EFEITO DE VIDRO PARA SEÇÕES */
    background: var(--accent); /* Cor de fundo da seção */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px; /* Bordas arredondadas da seção */
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5); /* Sombra da seção */

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1), transform 0.8s cubic-bezier(.4, 0, .2, 1);
}


/* Footer Social: Aplique o efeito de vidro aqui e ajuste o posicionamento */
.footer-social {
    /* PROPRIEDADES DE EFEITO DE VIDRO PARA O FOOTER */
    background: rgba(30, 32, 40, 0.30); /* Fundo com transparência */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px; /* Bordas arredondadas (se for bloco) */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); /* Sombra */
    transition: background 0.3s; /* Transição para o hover */

    text-align: center;
    color: #888;
    font-size: 1rem;
    padding: 30px 0 32px 0;
    margin-top: 40px;
    letter-spacing: 1px;

    /* REGRAS PARA POSICIONAMENTO E LARGURA EM RELAÇÃO AO SIDEBAR */
    margin-left: 260px; /* Empurra para a direita para o espaço do sidebar */
    width: calc(100% - 260px); /* Ocupa o restante da largura do main-content */
    box-sizing: border-box; /* Inclui padding na largura */
    border-radius: 0; /* Geralmente o footer vai de ponta a ponta, então sem border-radius */
    box-shadow: none; /* Removendo a sombra se ele for fixo ou no rodapé total */
    /* Remova max-width e margin-right: auto se quiser que ele vá de ponta a ponta */
}

/* Footer Hover (reforçado se removido do bloco geral) */
.footer-social:hover {
    background: rgba(30, 32, 40, 0.40);
}


/* Regras Responsivas para o main-content e footer-social */
@media (max-width: 900px) {
    .main-content {
        margin-left: 0; /* Remove o espaço do sidebar em mobile */
        padding: 24px 8px; /* Ajuste o padding para mobile */
        z-index: 0; /* Em mobile, o main-content pode ficar por baixo do overlay */
        background: transparent; /* Garante que o main-content não crie um novo fundo quando o sidebar abre */
        backdrop-filter: none;
    }
    /* Quando o sidebar está aberto, o overlay cobre a tela */
    .sidebar.open ~ .main-content {
        filter: blur(2px);
        pointer-events: none;
    }

    .footer-social {
        margin-left: 0; /* Remove a margem esquerda em mobile */
        width: 100%; /* Ocupa 100% da largura em mobile */
        max-width: 100%; /* Garante que não há limite em mobile */
        border-radius: 0; /* Ou mantenha 14px se preferir arredondado em mobile */
        padding-left: 15px; /* Ajuste o padding para mobile */
        padding-right: 15px; /* Ajuste o padding para mobile */
    }
}

/* Opcional: blocos ainda mais translúcidos ao passar o mouse */
section:hover,
.main-content:hover {
    background: rgba(30, 32, 40, 0.40);
}

header {
    text-align: center;
    padding: 60px 20px 30px 20px;
    background: transparent;
}

.logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 24px var(--primary));
}

h1 {
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 2.8rem;
    letter-spacing: 2px;
    color: var(--highlight);
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px #00bcd4;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Removido `nav` e `.navbar` styles */

section {
    max-width: 900px;
    margin: 60px auto 0 auto;
    padding: 40px 24px;
    background: var(--accent);
    border-radius: 18px;
    box-shadow: 0 4px 32px #0005;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1), transform 0.8s cubic-bezier(.4, 0, .2, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:not(:first-of-type) {
    margin-top: 40px;
}

h2 {
    font-family: 'Orbitron', Arial, sans-serif;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

ul,
ol {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-left: 18px;
}

.activities {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.activity {
    flex: 1 1 220px;
    background: #222c;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 2px 10px #0003;
}

.activity span {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
    color: var(--highlight);
}

.requirements {
    background: #1a1f23;
    border-left: 4px solid var(--primary);
    padding: 18px 28px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 1.1rem;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.testimonial {
    background: #23272b;
    border-radius: 10px;
    padding: 18px 24px;
    margin: 10px 0;
    max-width: 320px;
    box-shadow: 0 2px 10px #0002;
    font-style: italic;
    color: #b2ebf2;
}

.testimonial .author {
    font-weight: bold;
    color: var(--primary);
    font-style: normal;
    margin-top: 10px;
    display: block;
    font-size: 0.95rem;
}

/* Remove .contact-form, use .join-form styles */

footer {
    text-align: center;
    color: #888;
    font-size: 1rem;
    padding: 30px 0 10px 0;
    margin-top: 40px;
    letter-spacing: 1px;
}

#videos {
    margin-top: 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.video-item {
    background: #181c20;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 14px #0004;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px #00bcd488;
}

.video-item iframe {
    width: 100%;
    min-height: 180px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
    background: #000;
}

.video-item span {
    color: #b2ebf2;
    font-size: 1.05rem;
    text-align: center;
    margin-top: 4px;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Ajuste para o player do MedalTV */
.video-item iframe[src*="medal.tv"] {
    background: transparent;
}

#contato {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    padding: 40px 20px;
    background: #181a23;
    border-radius: 18px;
    box-shadow: 0 4px 32px #0005;
}

.join-title {
    text-align: center;
    color: #00fff5;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 36px;
    position: relative;
}

.join-row {
    display: flex;
    gap: 36px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.join-col {
    flex: 1 1 340px;
    min-width: 320px;
}

.join-info h3 {
    color: #00fff5;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.join-info p {
    color: #eee;
    margin-bottom: 24px;
    font-size: 1.08rem;
}

.social-link {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.social-link .icon {
    width: 38px;
    height: 38px;
    margin-right: 16px;
    filter: brightness(1.2) drop-shadow(0 0 8px #00fff5aa);
}

.social-title {
    color: #00fff5;
    font-weight: bold;
    font-size: 1.07rem;
    letter-spacing: 1px;
}

.social-link a {
    color: #b2ebf2;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.social-link a:hover {
    color: #00fff5;
    text-decoration: underline;
}

/* Formulário */
.join-form form {
    background: #23272b;
    border-radius: 14px;
    padding: 28px 24px 18px 24px;
    box-shadow: 0 2px 18px #00bcd422;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.join-form label {
    color: #b2ebf2;
    font-weight: 500;
    margin-bottom: 2px;
}

.join-form input,
.join-form select,
.join-form textarea {
    background: #181c20;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    color: #eee;
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: 'Roboto', Arial, sans-serif;
}

.join-form button {
    background: #00bcd4;
    color: #181c20;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: 'Orbitron', Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, color 0.2s;
}

.join-form button:hover {
    background: #00fff5;
    color: #222;
}

.footer-social {
    background: #000;
    padding: 40px 0 32px 0;
    text-align: center;
    margin-top: 48px;
}

.footer-brand {
    font-family: 'Orbitron', Arial, sans-serif;
    color: #fff;
    font-size: 2.1rem;
    letter-spacing: 2px;
    margin-bottom: 32px;
    font-weight: bold;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-icon-bg {
    background: #222;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #0007;
}

.footer-icon-bg:hover {
    background: #00fff5;
    box-shadow: 0 4px 24px #00fff588;
}

.footer-icons img {
    width: 28px;
    height: 28px;
    filter: invert(1) brightness(1.5);
    transition: filter 0.2s;
}

.footer-icon-bg:hover img {
    filter: invert(0) brightness(1) drop-shadow(0 0 8px #111);
}

.pulse-logo {
    animation: pulse 1.6s infinite;
    box-shadow: 0 0 0 0 rgba(0, 255, 245, 0.7);
    transition: box-shadow 0.3s;
}

@keyframes pulse {
    0% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(0, 168, 255, 0.7));
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 12px rgba(0, 232, 255, 0.9));
    }

    100% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(0, 168, 255, 0.7));
    }
}

.atividades-titulo,
.requisitos-titulo,
.videos-titulo,
.depoimentos-titulo {
    text-align: center;
}

.sobre-section {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 40px 24px;
    background: #181a23;
    border-radius: 18px;
    box-shadow: 0 4px 32px #0005;
}

.sobre-titulo {
    text-align: center;
    color: #00bcd4;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
    position: relative;
}

.sobre-titulo::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #00fff5;
    margin: 14px auto 0 auto;
    border-radius: 2px;
}

.sobre-row {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-top: 42px;
    flex-wrap: wrap;
}

.sobre-col {
    flex: 1 1 340px;
    min-width: 320px;
}

.sobre-texto .sobre-destaque {
    color: #00fff5;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.sobre-texto p {
    color: #eee;
    margin-bottom: 18px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.sobre-blocos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sobre-bloco {
    background: #23272b;
    border-radius: 12px;
    padding: 22px 18px 18px 18px;
    box-shadow: 0 2px 12px #00bcd422;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 3px solid #00bcd4;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sobre-bloco:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 4px 24px #00fff544;
    border-bottom: 3px solid #00fff5;
}

.sobre-icone {
    font-size: 2.1rem;
    color: #00bcd4;
    margin-top: 2px;
    min-width: 38px;
    text-align: center;
}

.sobre-bloco-titulo {
    color: #fff;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.09rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.sobre-bloco-texto {
    color: #b2ebf2;
    font-size: 1rem;
    line-height: 1.4;
}

.lang-select {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 16px 24px;
    margin-top: 20px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.lang-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px #0003;
}

/* Sidebar e Main Content */
.main-content {
    margin-left: 260px;
    /* Espaço para o sidebar em desktop */
    padding: 24px 8px;
    /* Adicionado um padding inicial para o conteúdo principal */
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    /* Largura padrão para desktop */
    background: #222831;
    z-index: 1000;
    transform: translateX(0);
    /* Visível por padrão em desktop */
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
}

/* Botão "X" (fechar menu) - Visível apenas em mobile */
.sidebar-close {
    display: none;
    /* Escondido por padrão em desktop */
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1101;
    cursor: pointer;
}

.sidebar-close span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.sidebar-close span:first-child {
    transform: rotate(45deg);
}

.sidebar-close span:last-child {
    transform: rotate(-45deg);
}

.sidebar-logo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 16px;
}

.sidebar-logo img {
    max-width: 100%;
}

.sidebar-nav {
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    overflow: hidden;
    flex-grow: 1;
    /* Permite que o nav ocupe espaço restante */
}

.sidebar-nav a {
    display: block;
    padding: 14px 0 14px 32px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.02rem;
    letter-spacing: 1.5px;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: var(--accent);
    border-left: 3px solid var(--highlight);
    color: #fff;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    font-size: 0.92rem;
    color: #888;
    text-align: center;
    margin-top: auto;
    /* Empurra o footer para o final do sidebar */
}

.sidebar-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
}

.sidebar-credit {
    margin-top: 4px;
    color: #bbb;
    font-size: 0.88rem;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    text-decoration: none;
}

.discord-link img {
    width: 32px;
    height: 32px;
    filter: invert(1) brightness(1.5);
    transition: transform 0.2s;
}

.discord-link:hover img {
    transform: scale(1.1);
}

/* Botão hambúrguer - Visível apenas em mobile */
.sidebar-toggle {
    display: none;
    /* Escondido por padrão em desktop */
    position: fixed;
    top: 22px;
    left: 18px;
    z-index: 1100;
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    margin: 3px 0;
    transition: 0.3s;
}

/* Overlay para fechar o menu ao clicar fora */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Estado 'open' para o sidebar (ativado via JS) */
.sidebar.open {
    transform: translateX(0);
}

/* Responsivo */
@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        /* Remove o espaço do sidebar em mobile */
        padding: 24px 8px;
    }

    .sobre-row {
        flex-direction: column;
        gap: 32px;
    }

    .sobre-blocos {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Sidebar em mobile: inicia escondido */
    .sidebar {
        width: 80vw;
        max-width: 340px;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
    }

    /* Botão hambúrguer e "X" em mobile */
    .sidebar-toggle {
        display: flex;
        /* Mostra o botão hambúrguer em mobile */
    }

    .sidebar.open .sidebar-close {
        display: flex;
        /* Mostra o "X" quando o sidebar está aberto */
    }

    /* Oculta o toggle quando o sidebar está aberto */
    .sidebar.open+.sidebar-toggle {
        display: none;
    }

    /* Mostra o overlay quando o sidebar está aberto */
    .sidebar.open~.sidebar-overlay {
        display: block;
    }

    /* Previne o scroll do body quando o sidebar está aberto em mobile */
    body.body-no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

/* Animação para virar "X" (para o sidebar-toggle) */
.sidebar-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.safezone-title {
    white-space: nowrap;
    font-size: 2.2rem;
    letter-spacing: 0.25em;
    text-align: center;
    overflow-x: auto;
}

@media (max-width: 500px) {
    .safezone-title {
        font-size: 1.3rem;
        letter-spacing: 0.12em;
    }
}

/* Efeito mais suave para o scroll */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

input:invalid {
    border-color: red !important;
}

.error-message {
    display: none;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ... (Seu CSS existente) ... */

/* Ajuste da Logo no Sidebar para Mobile */
@media (max-width: 900px) {
    .sidebar-logo img {
        max-width: 120px;
        /* Reduz o tamanho da logo */
        height: auto;
        margin-top: 20px;
        /* Ajusta a margem superior */
        margin-bottom: 10px;
        /* Ajusta a margem inferior */
    }
}

/* Estilos para o Dropdown no Sidebar */
.sidebar-dropdown {
    position: relative;
    /* Necessário para posicionar o menu */
    width: 100%;
}

.sidebar-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /* Herda estilos de .sidebar-nav a */
    padding: 14px 0 14px 32px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.02rem;
    letter-spacing: 1.5px;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sidebar-dropdown .dropdown-toggle:hover {
    background: var(--accent);
    border-left: 3px solid var(--highlight);
    color: #fff;
}

.sidebar-dropdown .dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 10px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--text);
    transition: transform 0.3s ease-out;
    padding-right: 7px;
}

.sidebar-dropdown .dropdown-toggle.expanded .dropdown-arrow {
    transform: rotate(90deg);
    /* Gira a seta quando expandido */
}

.sidebar-dropdown .dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(45, 51, 60, 0.7);
    /* Fundo um pouco mais escuro para o submenu */
    max-height: 0;
    /* Esconde por padrão */
    overflow: hidden;
    /* Oculta conteúdo que ultrapassa */
    transition: max-height 0.3s ease-in-out;
    border-left: 3px solid var(--accent);
    /* Uma borda sutil para os subitens */
}

.sidebar-dropdown .dropdown-menu.show {
    max-height: 500px;
    /* Altura suficiente para mostrar todos os itens */
}

.sidebar-dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 0 10px 48px;
    /* Padding maior para indentação */
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Roboto', Arial, sans-serif;
    transition: background 0.2s, color 0.2s;
}

.sidebar-dropdown .dropdown-menu li a:hover,
.sidebar-dropdown .dropdown-menu li a.active {
    background: rgba(57, 62, 70, 0.8);
    color: var(--highlight);
}

/* Ajustes para a barra de rolagem vertical no sidebar */
.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    /* Adiciona barra de rolagem vertical se o conteúdo for muito grande */
    overflow-x: hidden;
    /* Garante que não haja scroll horizontal */
    padding-right: 15px;
    /* Espaço para a barra de rolagem */
    box-sizing: border-box;
    /* Inclui padding na largura */
}

/* Estilização da barra de rolagem (opcional, para navegadores WebKit como Chrome/Safari) */
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #393e46;
    /* Cor da trilha da barra de rolagem */
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    /* Cor do "polegar" da barra de rolagem */
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);
}

/* Garante que o main-content tenha espaço suficiente */
@media (min-width: 901px) {
    .main-content {
        margin-left: 260px;
        /* Largura do sidebar em desktop */
        padding: 24px;
        /* Padding padrão para o conteúdo principal */
    }
}