/* ==================================================
   INICIO DAS REGRAS GERAIS FIXAS - NÃO EDITAR
   ================================================== */

/* ==============================
   RESET E CONFIGURAÇÕES GERAIS
   ============================== */
:root {
    --font-primary: 'Poppins', sans-serif;
    --color-text: #fff;
    --color-background: #1e1e2e;
    --color-primary: #5a9bd5;
    --color-primary-dark: #4c8cbf;
    --color-white: #fff;
    --color-black: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background: linear-gradient(135deg, var(--color-background), #252540);
    color: var(--color-text);

    /*Personalização*/    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0; /* Remova os paddings anteriores */
}

/* ==============================
   HEADER E NAVEGAÇÃO
   ============================== */
header {
    background: rgba(40, 40, 60, 0.8);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /*Personalização*/    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
    /*height:80px;*/
}

header nav {
    display: flex;
    margin-left: auto; /* Move o menu para a direita */
    gap: 8px;
}

nav {
    background: linear-gradient(135deg, #121212, #1a1a1a); /* Tons bem escuros de cinza */
    border-radius: 10px;
    padding: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: bold;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #44446a, #2b2b4a);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

nav ul li a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0px 0px 15px rgba(90, 90, 159, 0.8);
    transform: scale(1.1);
}

a {
    color: #5a9bd5;
    font-weight: bold;
    
}

/* ==============================
   BOTÕES E INTERATIVOS
   ============================== */
button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    color: var(--color-white);
    padding: 8px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
}

button:hover {
    background: linear-gradient(135deg, #7a7acc, #5050aa);
    box-shadow: 0px 0px 15px rgba(90, 90, 159, 0.8);
    transform: scale(1.1);
}

/* ==============================
   CONTEÚDO PRINCIPAL E ELEMENTOS
   ============================== */
main {
    background: rgba(50, 50, 80, 0.7);
    border-radius: 15px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5);

    /*Personalização*/    
    flex: 1;
    padding: 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    margin-top: 80px; /* Ajuste conforme a altura do header */
    margin-bottom: 80px; /* Ajuste conforme a altura do footer */

}

h1, h2, h3, h4, h5, h6 {
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.2);
}

p {
    line-height: 1.6;
    opacity: 0.9;
}

blockquote {
    font-style: italic;
    padding: 8px;
    border-left: 4px solid var(--color-primary);
    margin: 10px 0;
}

ul, ol {
    padding: 8px;
}

/* ==============================
   FORMULÁRIOS
   ============================== */
form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 8px;
    max-width: 400px;
    width: 100%;
    text-align: left;
}

fieldset {
    border: none;
    padding: 0;
}

legend {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: bold;
}

label {
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
}

input, textarea, select {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
    outline: none;
}

/* ==============================
   FOOTER
   ============================== */
footer {
    background: rgba(30, 30, 50, 0.8);
    border-radius: 15px;
    padding: 8px;
    text-align: center;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.5);
    margin-top: 20px;

    /*Personalização*/    
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
}


/* ==============================
   RESPONSIVIDADE
   ============================== */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    main {
        padding: 8px;
    }

    form {
        padding: 8px;
    }

    input, textarea, select {
        padding: 8px;
    }

    button {
        padding: 8px;
        font-size: 14px;
    }
}

/* ########################################## FIM DAS REGRAS GERAIS FIXAS | INÍCIO DAS REGRAS EDITÁVEIS ########################################## */

/* ==============================
   ÍCONES DO MENU
   ============================== */

nav .menu-item::before {
    font-size: 20px;
    margin-right: 8px;
}

.menu-item.inicio::before {
    content: "\1F3E0"; /* 🏠 Casa */
}

.menu-item.sobre::before {
    content: "\2139"; /* ℹ️ Informação */
}

.menu-item.contato::before {
    content: "\2709"; /* ✉️ E-mail */
}

.menu-item.blog::before {
    content: "\1F4F0"; /* 📰 Jornal */
}

.menu-item.comunidade::before {
    content: "\1F465"; /* 👥 Grupo */
}

.menu-item.chat::before {
    content: "\1F4AC"; /* 💬 Bate-papo */
}

.menu-item.politica::before {
    content: "\1F6E1"; /* 🛡️ Segurança */
}

.menu-item.termos::before {
    content: "\2696"; /* ⚖️ Justiça */
}


.menu-item.menu::before {
    content: "☰"; 
}

.menu-item.dashboard::before {
/*    content: "\1F4C8"; /* 📈 Gráficos */
}

.menu-item.perfil::before {
    content: "👤"; /* 👤 Usuário*/

}

.menu-item.sair::before {
    content: "\23FB"; /* ⏻ Desligar */
}

.menu-item.login::before {
    content: "\1F510"; /* 🔐 Acesso */
}

.menu-item.registro::before {
    content: "\1F4DD"; /* 📝 Cadastro */
}

.menu-item.conta::before {
    content: "\2699"; /* ⚙️ Configurações */
}

fieldset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    position: relative;
    }

fieldset button {
    align-self: center;
    margin-top: 10px;
    }    

/* ==============================
   FOOTER MENU
   ============================== */

footer ul {
    justify-content: center; /* Centraliza os itens do menu */
    align-items: center;
    padding: 0;
    margin: 0;
}

/* ==============================
   MENU MOBILE
   ============================== */

/* ===== Botão de Toggle do Menu ===== */
.menu-toggle {
    display: none; /* Oculta no desktop */
}

/* ===== Responsividade: Mobile ===== */
@media (max-width: 768px) {
    /* Exibe o botão de menu apenas no mobile */
.menu-toggle {
    display: block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
}

    /* Estiliza o menu no mobile */
    #user-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(40, 40, 60, 0.95);
        padding: 16px;
        z-index: 1000;
    }

    #user-menu.show {
        display: flex;
    }

    /* Alinha os links à esquerda */
    #user-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Alinha os links à esquerda */
        padding: 0;
        margin: 0;
        width: 100%;
    }

    #user-menu li {
        width: 100%;
    }

    #user-menu a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        text-align: left; /* Garante que o texto fique alinhado à esquerda */
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    }

    #user-menu a:hover {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* ==============================
   LOGO
   ============================== */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px; /* Tamanho do texto se precisar */
    font-weight: bold;
    color: var(--primary-color); /* Cor principal do site */
    transition: transform 0.2s ease-in-out;
}

.logo img {
    height: 50px; /* Ajuste o tamanho da logo */
    width: auto;
    max-width: 100%;
}

/* Efeito ao passar o mouse */
.logo:hover {
    transform: scale(1.05); /* Pequeno zoom */
}

/* Responsividade: Ajuste do tamanho da logo no mobile */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}






/* ==============================
   Estilo para o modal
   ============================== */
dialog {
    background: rgba(40, 40, 60, 0.95);
    color: var(--color-text);
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    padding: 20px;
    width: 80%;
    max-width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;  /* Impede interação até estar visível */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Quando o modal é aberto */
dialog[open] {
    opacity: 1;
    pointer-events: all;  /* Permite interação */
    transform: translate(-50%, -50%) scale(1);  /* Escala normal */
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.8); /* Fundo escuro semi-transparente */
    backdrop-filter: blur(5px); /* Aplica um leve desfoque */
}

/* Botão de fechar */
dialog button {
    text-decoration: none;
    color: red;
    font-weight: bold;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #44446a, #2b2b4a);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);

    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

dialog button:hover {
    color: var(--color-primary);
}

dialog section {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
    width: 100%;
}

dialog > section > a {
    display: inline-block;
    text-decoration: none;
    color: var(--color-white);
    font-weight: bold;
    padding: 8px;
    font-size:10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #44446a, #2b2b4a);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    height:80px;
    text-align:center;
    width:80px;
}

dialog > section > a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0px 0px 15px rgba(90, 90, 159, 0.8);
    transform: scale(1.1);
}

/* Ícones dentro dos links */
dialog > section > a::before {
    display: block;
    font-size: 20px;
    padding:8px;
}
