/* Estilos Globais e Variáveis */
:root {
    --cor-fundo: #1a1a1a; /* Preto suave */
    --cor-texto: #f4f4f4; /* Branco suave */
    --cor-destaque: #e53935; /* Vermelho Montenegro */
    --cor-navbar: #212121; /* Um pouco mais claro que o fundo */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
}

main {
    padding: 20px;
}




/* ==================================================== NAVBAR  MENU TOPO CABEÇALHO ========================================================== */

/* ================= NAVBAR BASE ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 28px;

    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* ================= LOGO ================= */
.navbar-logo img {
    height: 90px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.navbar-logo img:hover {
    transform: scale(1.30);
}

/* ================= LINKS ================= */
.navbar-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;

    margin: 0;
    padding: 0;
}

/* ITEM */
.navbar-links li {
    position: relative;
}

/* LINK */
.navbar-links a {
    position: relative;

    text-decoration: none;
    font-weight: 500;
    font-size: 1,50rem;

    color: #bbb;

    padding: 6px 2px;

    transition: all 0.25s ease;
}

/* LINHA ANIMADA (EFEITO PREMIUM) */
.navbar-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;

    width: 0%;
    height: 2px;

    background: linear-gradient(90deg, #ff2a2a, #5a0000);

    transition: width 0.25s ease;
}

/* HOVER */
.navbar-links a:hover {
    color: #fff;
}

.navbar-links a:hover::after {
    width: 100%;
}

/* ================= LINK ATIVO ================= */
/* (adicione class="active" no HTML da página atual) */
.navbar-links a.active {
    color: #fff;
}

.navbar-links a.active::after {
    width: 100%;
}

/* ================= HOVER GERAL (leve glow) ================= */
.navbar-links li:hover a {
    text-shadow: 0 0 8px rgba(255,0,0,0.3);
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 10px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .navbar-logo img {
        height: 60px; /* Menor no mobile para dar espaço */
    }

    .navbar-links {
        width: 100%;
        gap: 15px;
        overflow-x: auto; /* Permite rolar para o lado */
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
        
        /* Ocultar barra de rolagem visual, mantendo a funcionalidade */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }
    
    .navbar-links::-webkit-scrollbar {
        display: none;
    }

    .navbar-links li {
        flex-shrink: 0; /* Impede que os links amassem */
    }

    .navbar-links a {
        font-size: 0.9rem;
        padding: 6px 8px;
    }
}
















/* --- ESTILOS GLOBAIS DO MODAL --- */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed; /* Fica por cima de tudo */
    z-index: 1000; /* Garante que fique na frente */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilita scroll se o conteúdo for muito grande */
    background-color: rgba(0,0,0,0.7); /* Fundo escuro semi-transparente */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--cor-navbar);
    margin: auto; /* Centraliza verticalmente e horizontalmente */
    padding: 30px;
    border: 1px solid #444;
    border-radius: 8px;
    width: 90%; /* Responsivo para mobile */
    max-width: 700px; /* Largura máxima para desktop */
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--cor-destaque);
    text-decoration: none;
    cursor: pointer;
}

/* --- Estilos de Formulário Gerais --- */
.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--cor-texto);
}

.modal-form input[type="text"],
.modal-form input[type="url"],
.modal-form input[type="number"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: var(--cor-texto);
    font-size: 1rem;
    box-sizing: border-box; /* Inclui padding e borda na largura total */
}

.modal-form input[type="text"]:focus,
.modal-form input[type="url"]:focus,
.modal-form input[type="number"]:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--cor-destaque);
    outline: none;
}

.modal-form .confirm-btn {
    background-color: var(--cor-destaque);
    color: var(--cor-texto);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.modal-form .confirm-btn:hover {
    background-color: #ff5252;
}
