:root {
    --primary-color: #FF4500; /* Laranja Vibrante */
    --dark-bg: #121212;
    --text-color: #EAEAEA;
    --card-bg: #1E1E1E;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
}

/* --- Header e Navegação --- */
header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
  display:inline-flex; align-items:center; text-decoration:none;
}
.logo img{
  height:clamp(28px,6vw,48px); /* controla o tamanho responsivo */
  width:auto; display:block;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-login, .btn-register {
    padding: 0.6rem 1.2rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-register {
    background-color: var(--primary-color);
    color: #fff;
    margin-left: 1rem;
}

.btn-register:hover {
    transform: scale(1.05);
}

/* --- Seção Hero --- */
.hero {
    height: auto;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.6); /* Escurece a imagem de fundo */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    margin-top: -50px;
    margin-left: 0;
    margin-right: 0;

}

.hero-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 0;
}

.hero-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-top: auto;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: auto;
text-align: center;
}
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;

}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--dark-bg);
}


/* --- Outras Seções --- */
.how-it-works, .featured-products {
    padding: 1rem 10%;
    text-align: center;
}



.features {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.feature-item {
    max-width: 300px;
}
.feature-item img {
    border-radius: 50%;
}
.feature-item h3 {
    font-size: 1.5rem;

}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}
.product-card img:hover {
    transform: scale(1.03);
}

/* --- Rodapé --- */
footer {
    text-align: center;
    padding: 2rem;

    background-color: #000;
    font-size: 0.9rem;
}
/* --- ESTILOS PARA PÁGINAS DE FORMULÁRIO (LOGIN/CADASTRO) --- */

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;

 width: 80%; /* <-- DEFINE A LARGURA (ex: 80% da tela) */
    margin: auto; /* <-- CENTRALIZA O CONTAINER NA PÁGINA */

    padding: 2rem;
    background: url('https://via.placeholder.com/1920x1080.png?text=Imagem+de+Fundo+Escura') no-repeat center center;
    background-size: cover;
    position: relative;
}
.form-containerr {
    display: flex;
    justify-content: center;
    align-items: center;

}


.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.form-box {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px;
    z-index: 2;
    text-align: center;
}



.form-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-decoration: none;
    display: block;

}

.form-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #fff;

}

.input-group {
    text-align: left;
    margin-bottom: 1,5rem;
 
}

.input-group select {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--dark-bg);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;

    /* 1. Remove a aparência padrão do navegador */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* 2. Adiciona a nossa própria seta (um ícone SVG cinza) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3E%3Cpath d='M8 10.5L3 5.5h10L8 10.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;

    /* 3. Adiciona espaço para a nova seta não ficar em cima do texto */
    padding-right: 2.5rem;
}


.input-group label {
    display: block;

    font-size: 0.9rem;
    color: #ccc;
}

/* DEIXA OS CAMPOS DE INPUT E TEXTAREA COM O MESMO ESTILO */
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--dark-bg);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif; /* Garante a mesma fonte */
    box-sizing: border-box;
}

/* ESTILO ADICIONAL APENAS PARA A TEXTAREA */
.input-group textarea {
    resize: vertical; /* Permite que o usuário redimensione apenas na vertical */
    min-height: 150px; /* Define uma altura mínima inicial */
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    text-align: right;
 
}

.forgot-password {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.btn-form {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-form:hover {
    transform: scale(1.02);
}

.form-footer-text {

    color: #aaa;
    font-size: 0.9rem;
}

.form-footer-text a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}
/* --- ESTILO PARA MENSAGEM DE ERRO --- */
.error-message {
    background-color: #ffebee; /* Um fundo vermelho claro */
    color: #c62828; /* Um texto vermelho escuro */
    border: 1px solid #c62828;
    padding: 15px;

    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
/* --- ESTILOS PARA MENSAGEM DE STATUS AJAX --- */
.status-message {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}
.status-disponivel {
    color: #4BB543; /* Verde */
}
.status-indisponivel {
    color: #c62828; /* Vermelho */
}
/* --- ESTILO PARA BOTÃO VOLTAR/SECUNDÁRIO --- */
.btn-back {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #ccc;
    background-color: transparent;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Garante que o padding não aumente a largura total */
}

.btn-back {
    background-color: #333;
    border-color: #666;
    color: #fff;
}
/* --- ESTILOS PARA O NOVO DASHBOARD (VERSÃO 2) --- */

body {
    background-color: var(--dark-bg);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* Coluna Esquerda (Sidebar Completa) */
.sidebar {
    width: 300px;
    background-color: #0d0d0d;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column; /* Organiza os filhos em uma coluna */
    height: 100vh; /* Ocupa a altura total da tela */
    position: fixed; /* Fixa a sidebar na tela */
}

/* Parte de Cima: Navegação */
.sidebar-nav {
    padding: 1.5rem;
    border-bottom: 1px solid #222;
    text-align: center; 
}

.logo-sidebar {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-align: center;

}

.nav-button {
    display: block;
    background-color: #2a2a2a;
    color: #fff;
    text-decoration: none;
    padding: 1rem;
    margin-bottom: 0.2rem;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
}

.nav-button:hover {
    background-color: var(--primary-color);
    transform: scale(1.03);
}

/* Parte de Baixo: Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz o chat ocupar todo o espaço restante */
    min-height: 0; /* Corrige um bug de flexbox no Chrome/Firefox */
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #222;
}

.chat-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.chat-contacts {
    flex-grow: 1;
    overflow-y: auto; /* Adiciona scroll se os contatos forem muitos */
}

.chat-contact {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #1a1a1a;
}

.chat-contact:hover {
    background-color: #1a1a1a;
}

.chat-contact img {
    width: 40px; height: 40px; border-radius: 50%; margin-right: 1rem;
}
.chat-contact strong {
    color: #fff; font-size: 0.9rem;
}
.chat-contact span {
    color: #888; font-size: 0.8rem; display: block;
}

/* Conteúdo Principal (Direita) */
.main-content {
    display: flex;          /* <-- ADICIONE ESTA LINHA */
    flex-direction: column; /* <-- ADICIONE ESTA LINHA */
    flex-grow: 1;
    padding: 2rem 3rem;
    color: #fff;
    margin-left: 300px;
}
/* --- ESTILOS DO CABEÇALHO DO CONTEÚDO PRINCIPAL --- */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;

    border-bottom: 1px solid #222;
    gap: 2rem; /* Adiciona espaçamento entre os elementos */
    
}

.header-title h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    margin: 0;
    color: #fff;
    white-space: nowrap; /* Impede que o título quebre a linha */
}

.header-title p {
    margin: 0; 
    color: #ccc;
    white-space: nowrap;
}

.header-search {
    display: flex;
    width: 100%; /* Faz a busca ocupar o máximo de espaço possível */
    max-width: 600px;
}

.header-search input {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 1rem;
    width: 900px;
    text-align: center;
    justify-content: center;
       
}
.header-search button {
    padding: 0.8rem 1.5rem;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.user-actions .btn-logout {
    background-color: #333; 
    color: #fff; 
    padding: 0.8rem 1.2rem;
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold;
    white-space: nowrap;
}

.user-actions .btn-logout:hover {
    background-color: var(--primary-color);
}


/* --- ESTILO DA SEÇÃO DE ANÚNCIOS --- */
/* (Este código você já deve ter, é só para garantir) */

.listings-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-top: 0rem;
    color: var(--primary-color);
    text-align:center;
}
.listings-section h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-top: 0rem;
    text-align:center;
}
.listings-section h3 {
    font-size: 1.0rem;
    margin-top: 0rem;
    text-align:center;
}

.listings-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.btn-logout {
    background-color: #333; color: #fff; padding: 0.6rem 1.2rem;
    text-decoration: none; border-radius: 5px; font-weight: bold;
}
.btn-logout:hover {
    background-color: var(--primary-color);
}

/* Seção dos Anúncios */
.listings-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
/* --- ESTILO CORRIGIDO PARA OS CARDS DE PRODUTO NO DASHBOARD --- */

.product-card-dashboard {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden; /* Essencial para que o 'object-fit' funcione bem */
    border: 1px solid #222;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column; /* Garante que a imagem e o texto fiquem um sobre o outro */
    position: relative;
}

.product-card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.product-card-dashboard img {
    width: 100%; /* Faz a imagem tentar ocupar toda a largura do card */
    height: 160px; /* Define uma altura fixa para a área da imagem */
    object-fit: cover; /* ESSA É A LINHA MÁGICA: Preenche o espaço sem distorcer a imagem */
    display: block;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    text-align: center;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #fff;
}
.product-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-align: center;
}

.product-info .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}
/* --- ESTILO PARA LINHA SEPARADORA PERSONALIZADA --- */
.custom-hr {
    border: 0; /* Remove a borda padrão do navegador */
    height: 1px; /* Define a espessura da linha para 1 pixel */
    background-color: #222; /* Uma cor cinza bem escura, quase preta */
    margin: 1rem 0; /* Adiciona um bom espaço acima e abaixo da linha */
}
/* --- ESTILOS PARA A PÁGINA DE PERFIL --- */

.profile-content {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.profile-picture-section,
.profile-details-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    text-align: center;
}

.profile-picture-section {
    flex-basis: 300px; /* Largura fixa */
    flex-shrink: 0;
    text-align: center;
}

.profile-details-section {
    flex-grow: 1; /* Ocupa o resto do espaço */
}

.profile-picture-section h3,
.profile-details-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #444;
    margin-bottom: 1rem;
}

.profile-details-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.profile-details-section p strong {
    color: #fff;
}
/* --- ESTILOS PARA FOTO E BOTÕES DE PERFIL NO HEADER --- */

/* Agrupa a foto e o nome do usuário */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 1rem; /* Cria um espaço entre a foto e o texto */
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Deixa a foto redonda */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    border: 2px solid #444;
}

/* Agrupa os botões de ação */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* <-- ADICIONE ESTA LINHA */
}

.btn-profile {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #555;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-profile:hover {
    background-color: #333;
    color: #fff;
}
.product-card-link {
    text-decoration: none; /* Remove o sublinhado */
    color: inherit; /* Faz o texto herdar a cor normal */
}
/* --- ESTILOS PARA A PÁGINA DE DETALHES DO ANÚNCIO --- */
/* --- ESTILOS PARA A GALERIA DE IMAGENS DO ANÚNCIO --- */
.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #333;
}

.gallery-thumbnails {
    display: flex;
     justify-content: center; 
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap; /* Permite que as miniaturas quebrem a linha se não couberem */
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #444;
    transition: border-color 0.2s;
}

.thumbnail-img:hover {
    border-color: #666;
}

/* Estilo para a miniatura que está ativa (selecionada) */
.thumbnail-img.active {
    border-color: var(--primary-color);
}
.anuncio-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
}

.anuncio-imagem {
    flex-basis: 50%;
}

.anuncio-imagem img {
    width: 100%;
    border-radius: 8px;
}

.anuncio-detalhes {
    flex-basis: 50%;
}

.anuncio-detalhes h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    margin-top: 0;
    line-height: 1.1;
    color: #fff;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.anuncio-detalhes h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.anuncio-detalhes p {
    color: #ccc;
    line-height: 1.8;
}

.vendedor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #0d0d0d;
    padding: 1rem;
    border-radius: 8px;
}

.vendedor-info .profile-pic {
    width: 50px;
    height: 50px;
}

.vendedor-info strong {
    color: #888;
    font-size: 0.9rem;
    display: block;
}

.vendedor-info span {
    color: #fff;
    font-weight: bold;
}
.btn-edit {
    display: block;
  

    text-align: center;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s;
}
.btn-edit:hover {
    background-color: var(--primary-color);
}
.btn-vendido {
    display: block;
  

    text-align: center;
    background-color: #18ed00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s;
}
.btn-vendido:hover {
    background-color: var(--primary-color);
}

.alinhar-centro {
    text-align: center;
}
a.chat-contact-link {
    text-decoration: none;
}
.chat-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Empurra os itens para as pontas */
    padding: 1rem;
    background-color: #0d0d0d;
    border-bottom: 1px solid #222;
}
/* Estilo para destacar conversas com novas mensagens na sidebar */
.chat-contact-link.nova-mensagem .chat-contact {
    background-color: #33231d; /* Um fundo laranja bem escuro */
    border-left: 3px solid var(--primary-color);
}

.chat-contact-link.nova-mensagem .chat-contact strong {
    color: #fff; /* Deixa o nome branco e mais destacado */
    font-weight: bold;
}
/* --- ESTILO PARA A BARRA DE CONTEXTO DO ANÚNCIO NO CHAT --- */
.chat-anuncio-contexto {
    padding: 0.8rem 1rem;
    background-color: #1a1a1a;
    border-bottom: 1px solid #222;
}
.chat-anuncio-contexto a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #ccc;
    transition: background-color 0.2s;
}
.chat-anuncio-contexto a:hover {
    color: #fff;
}
.chat-anuncio-contexto img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}
.chat-anuncio-contexto span {
    font-weight: bold;
    font-size: 0.9rem;
}
.denunciar-container {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.denunciar-container a {
    color: #888;
    font-size: 0.8rem;
    text-decoration: underline;
    transition: color 0.2s;
}
.denunciar-container a:hover {
    color: #FF4500;
}
.link-denuncia {
    background: none; border: none; padding: 0; font: inherit;
    color: #888; font-size: 0.8rem; text-decoration: underline;
    cursor: pointer; transition: color 0.2s;
}
.link-denuncia:hover { color: #FF4500; }
/* --- ESTILOS PARA O MODAL (Janela Popup) DE DENÚNCIA --- */

.modal-overlay {
    display: none; /* <-- ESTA É A LINHA MAIS IMPORTANTE: Esconde o modal por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    align-items: center;
    text-align: center;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.modal-close:hover,
.modal-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.card-actions {

    display: flex;
    gap: 0.5rem;
}
.card-actions .btn-edit, .card-actions .btn-delete {
    flex-grow: 1; /* Faz os botões ocuparem o espaço igualmente */

}
.btn-delete {
    background-color: #721c24; /* Vermelho escuro */
    color: #fff;
    text-align: center;

    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s;
}
.btn-delete:hover {
    background-color: #c62828; /* Vermelho mais claro */
}
.btn-delete-page {
    color: #c62828;
    font-weight: bold;
    text-decoration: none;
    margin-right: auto; /* Empurra este botão para a esquerda */
    align-self: center;
}
.admin-button {
    background-color: #581c0c; /* Um laranja/vermelho mais escuro */
    border: 1px solid var(--primary-color);
}
/* --- ESTILO PARA BOTÃO COM IMAGEM --- */

.botao-imagem {
    /* Faz o link se comportar como um bloco para podermos definir tamanho */
    display: inline-block; 
    
    /* Para remover um espaço em branco fantasma que às vezes aparece sob a imagem */
    line-height: 0; 
    
    /* CANTOS ARREDONDADOS: 50% cria um círculo perfeito */
    border-radius: 10%; 
    
    /* Essencial: Esconde as partes da imagem que "vazam" para fora dos cantos arredondados */
    overflow: hidden; 
    
    /* A MOVIMENTADA: Prepara o botão para uma animação suave de 0.2 segundos */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* O estilo da imagem que está DENTRO do botão */
.botao-imagem img {
    display: block; /* Garante que a imagem se comporte bem dentro do link */
    width: 250px;    /* Largura do botão */
    height: 170px;   /* Altura do botão */
}

/* O EFEITO AO PASSAR O MOUSE */
.botao-imagem:hover {
    /* A MOVIMENTADA: Aumenta o tamanho do botão em 10% */
    transform: scale(1.1); 
    
    /* Bónus: Adiciona uma sombra para dar um efeito de "elevação" */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}
/* --- ESTILO PARA BOTÃO COM IMAGEM E TEXTO SOBREPOSTO --- */

.botao-imagem-texto {
    /* --- O Container Principal --- */
    position: relative; /* ESSENCIAL: Torna-se a 'âncora' para os elementos de dentro */
    display: inline-block; /* Faz o link se comportar como um bloco */
    border-radius: 15px; /* Cantos arredondados */
    overflow: hidden; /* Corta tudo o que sair dos cantos arredondados */
    text-decoration: none;
    transition: transform 0.2s ease-in-out; /* Prepara para a animação */
}

/* --- A Imagem de Fundo --- */
.botao-imagem-texto img {
    display: block;
    width: 250px;  /* Largura do botão */
    height: 150px; /* Altura do botão */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
}

/* --- O Texto --- */
.texto-botao {

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

/* --- A Animação ao Passar o Mouse --- */
.botao-imagem-texto:hover {
    transform: scale(1.05); /* A "movimentada": aumenta o botão em 5% */
}
.botao-imagem-texto .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Preto com 50% de transparência */
    transition: background-color 0.3s;
}

.botao-imagem-texto:hover .overlay {
    background-color: rgba(0, 0, 0, 0.7);
}


/* --- ESTILOS PARA A PÁGINA DA GALERIA --- */

.gallery-section h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    /* Cria um grid responsivo com colunas de no mínimo 350px */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
}

.gallery-card-header2 {
    align-items: center;

}

.profile-pic-small {
    width: 35px;
    height: 35px;
    border-radius: 50%; /* O ícone redondo que você pediu */
    object-fit: cover;
}
.gallery-card-header2 p {

    color: #fff;
    text-align: center;
}
.gallery-card-header span {
    font-weight: bold;
    color: #fff;
}

.gallery-image {
    width: 100%;
    height: 250px; /* A altura será automática para manter a proporção */
    object-fit: cover; /* <-- A MÁGICA: Preenche o espaço sem distorcer, cortando o excesso */
    display: block;
}

.gallery-card-footer {
    font-size: 0.9rem;
}

.gallery-card-footer .legenda {
    margin: 0 0 0.2 0;
    color: #ccc;
 
}

.gallery-card-footer .legenda strong {
    color: #fff;
}

.gallery-card-footer .data-publicacao {
    font-size: 0.75rem;
    color: #888;
}



/* --- ESTILOS PARA A PÁGINA DE DETALHES DA FOTO --- */

.foto-detalhe-container {
    display: flex;
    gap: 2rem;
    background-color: var(--card-bg);
    border: 1px solid #222;
}

.foto-principal {

    flex: 2; /* Faz a coluna da foto ser maior */
    background-color: #000;
}

.foto-principal img {
    width: 100%;
    height: 100%;
    max-height: 80vh; /* Limita a altura máxima da imagem */
    object-fit: contain; /* Mostra a imagem inteira, sem cortar */
}

.foto-info {
    flex: 1; /* Faz a coluna de info ser menor */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.foto-legenda {
    padding: 1rem 0;
}
.foto-legenda p { 
    margin: 0 0 0.8rem 0;
     color: #ccc;
     }
.foto-legenda .data-publicacao { 
    font-size: 0.8rem;
     color: #888; 
     text-align: center;
    }

.comentarios-secao {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.comentarios-secao h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.lista-comentarios {
    flex-grow: 1;
    overflow-y: auto; /* Adiciona scroll se houver muitos comentários */
    max-height: 40vh;
}

.comentario-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.comentario-conteudo {
    background-color: #2a2a2a;
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
}

.comentario-conteudo strong {
    color: #fff;
    font-size: 0.9rem;
}
.comentario-conteudo p {
    margin: 0.3rem 0 0 0;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.form-comentario {
    margin-top: auto; /* Empurra o formulário para o final */
    padding-top: 1rem;
    border-top: 1px solid #333;
}
.form-comentario textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}
.form-comentario button {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}




/* --- ESTILO PARA O BOTÃO 'FECHAR' NA PÁGINA DA FOTO --- */

/* 1. Prepara a coluna da direita para ser a 'âncora' do botão */
.foto-info {
    position: relative; /* Essencial para o posicionamento do 'X' */
    padding-top: 3rem;  /* Cria espaço no topo para o botão não sobrepor o conteúdo */
}

/* 2. Estiliza e posiciona o próprio botão 'X' */
.btn-fechar-detalhe {
    position: absolute; /* Permite que o botão 'flutue' sobre o resto */
    top: 1rem;          /* Distância do topo */
    right: 1.5rem;        /* Distância da direita */
    
    font-size: 2.5rem; /* Tamanho do 'x' */
    color: #888;
    text-decoration: none;
    line-height: 1; /* Garante que o alinhamento não quebre */
    transition: color 0.2s, transform 0.2s;
}

.btn-fechar-detalhe:hover {
    color: #fff;
    transform: scale(1.2); /* Efeito de zoom subtil ao passar o mouse */
}



/* --- ESTILOS ATUALIZADOS PARA O RODAPÉ DO CARD DA GALERIA --- */
.gallery-card-footer {
    display: flex;
    flex-direction: column; /* Organiza os filhos (legenda, stats, data) em uma coluna */

    text-align: center;
}

.footer-stats {
    display: flex;
    flex-direction: column; /* FORÇA O EMPILHAMENTO das curtidas e comentários */
    align-items: flex-start; /* Alinha os itens à esquerda */
    gap: 0.5rem; /* Espaço entre a linha de curtidas e a de comentários */
    padding-top: 0.8rem;
    border-top: 1px solid #333;
 
}

.stat-item {
    display: flex;
    align-items: center; /* Alinha o ícone e o número verticalmente */
    font-size: 0.9rem;
    color: #aaa;


}

.stat-item i {
    color: var(--primary-color);
    margin-right: 8px; /* Espaço entre o ícone e o número */
    width: 20px; /* Largura fixa para os ícones alinharem */
    text-align: center;
}

.alert-info {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    background-color: #d1ecf1; /* Fundo azul claro */
    color: #0c5460;       /* Texto azul escuro */
    border: 1px solid #bee5eb;
}

.status-badge.removido {
    background-color: rgba(114, 28, 36, 0.8);
}

/* --- ESTILO PARA O BOTÃO DE APAGAR COMENTÁRIO --- */
.btn-delete-comment {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 8px;
    font-size: 0.7rem; /* Bem pequeno */
    color: #aaa;
    background-color: #444;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-delete-comment:hover {
    background-color: #c62828; /* Vermelho ao passar o mouse */
    color: #fff;
}

.foto-actions { padding-bottom: 1.5rem; display: flex; gap: 1rem; }
/* Estilo para a nova imagem de curtir */
.icone-curtir {
    width: 24px;   /* Ajuste este valor para o tamanho desejado */
    height: 24px;  /* Ajuste este valor para o tamanho desejado */
    opacity: 0.6;  /* Mais escuro quando não curtido */
    transition: all 0.2s ease-in-out;
}

/* Estilo quando o botão é curtido (muda a opacidade) */
.btn-curtir.curtido .icone-curtir {
    opacity: 1; /* Totalmente visível quando curtido */
}

/* Estilo ao passar o rato (hover) */
.btn-curtir:hover .icone-curtir {
    opacity: 0.8; /* Um pouco mais visível ao passar o rato */
}

/* Manter o contador de texto em negrito */
.btn-curtir.curtido span { 
    color: var(--primary-color); /* Se quiser manter a cor da sua primary color */
    font-weight: bold; 
}
/* Estilos gerais do botão (já deve estar, mas só para garantir) */
.btn-curtir {
    display: flex; align-items: center; gap: 8px;
    color: #aaa; text-decoration: none; font-size: 0.9rem; cursor: pointer;
}


.comentario-conteudo p,
.foto-legenda p,
.legenda {
    /* A propriedade mais moderna e recomendada */
    overflow-wrap: break-word;

    /* A propriedade mais antiga para compatibilidade máxima com navegadores mais velhos */
    word-wrap: break-word; 

    /* Garante que o texto não saia da caixa, mesmo em cenários extremos */
    hyphens: auto;
}


/* --- ESTILOS PARA A PÁGINA DE EVENTOS --- */
.events-section h1 { text-align: center; font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--primary-color); }
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }
.event-card-link { text-decoration: none; color: inherit; }
.event-card {
    position: relative;
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card-price {
    position: absolute; /* Faz o selo "flutuar" */
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Sombra para dar profundidade */
    z-index: 2; /* Garante que fique por cima da imagem */
}

.event-card:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.event-image { width: 200px; height: 150px; object-fit: cover; }
.event-info { display: flex; align-items: center; padding: 1rem; gap: 1.5rem; }
.event-date {
    display: flex; flex-direction: column; align-items: center;
    background-color: #111; padding: 0.8rem; border-radius: 5px;
    border: 1px solid #333; text-align: center;
}
.event-date .day { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--primary-color); line-height: 1; }
.event-date .month { font-size: 0.9rem; font-weight: bold; color: #aaa; text-transform: uppercase; }
.event-details h3 { font-size: 1.5rem; margin: 0 0 0.5rem 0; color: #fff; }
.event-details span { display: block; font-size: 0.9rem; color: #ccc; }
.event-details span i { margin-right: 5px; color: var(--primary-color); }



/* --- ESTILOS PARA A PÁGINA DE DETALHES DO EVENTO --- */
.event-detail-card { position: relative; background-color: var(--card-bg); border: 1px solid #222; border-radius: 8px; overflow: hidden;  }
.event-detail-image { width: 100%; height: 300px; object-fit: cover; }
.event-detail-content { padding: 2rem; }
.event-detail-content h1 { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: #fff; margin-top: 0; }
.event-meta { display: flex; gap: 2rem; color: #aaa; margin: -1rem 0 1rem 0; font-size: 0.9rem; }
.event-meta span i { margin-right: 8px; color: var(--primary-color); }
.organizer-info { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.event-description { line-height: 1.8; color: #ccc; }
.event-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #333; }
.event-price { font-size: 1.2rem; color: #ccc; }
.event-price strong { font-size: 1.5rem; color: var(--primary-color); }
.btn-inscrito { padding: 1rem 2rem; background-color: #28a745; color: #fff; border: none; border-radius: 5px; font-weight: bold; cursor: not-allowed; }


/* --- ESTILO PARA O BOTÃO 'FECHAR' NAS PÁGINAS DE DETALHES --- */


/* 2. Estiliza e posiciona o próprio botão 'X' */
.btn-fechar-detalhe {
    position: absolute; /* Permite que o botão 'flutue' */
    top: 1rem;          /* Distância do topo */
    right: 1.5rem;      /* Distância da direita */
    z-index: 10;        /* Garante que fique por cima da imagem */
    
    font-size: 2.5rem;
    color: #888;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.btn-fechar-detalhe:hover {
    color: #fff;
    transform: scale(1.2);
}

.status-pago {
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}
.btn-confirmar-pgto {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
}



.inscricao-status { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #333; }
.input-group-inline { display: flex; align-items: center; gap: 1rem; }


.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
}
.btn-secondary { /* Adicionando um estilo para o botão voltar */
    background-color: #333;
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}




/* --- ESTILOS PARA O NOVO MENU SANFONA (ACORDEÃO) --- */

.nav-topic {
    margin-bottom: 0.5rem;
}

.topic-button {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-button:hover {
    background-color: #2a2a2a;
    color: #fff;
}

/* Seta indicadora (feita com CSS) */
.topic-button::after {
    content: '\25B6'; /* Código para o triângulo/seta para a direita */
    font-size: 0.8rem;
    transition: transform 0.3s ease-in-out;
}
.topic-button.active::after {
    transform: rotate(90deg); /* Gira a seta para baixo quando ativo */
}


.sub-menu {
    max-height: 0; /* Começa fechado, com altura zero */
    overflow: hidden; /* Esconde o conteúdo que transborda */
    transition: max-height 0.3s ease-in-out; /* Animação suave de abrir/fechar */
    background-color: #111;
    border-radius: 0 0 5px 5px;
}

.sub-menu .nav-button {
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #222;
    text-align: left;
    padding-left: 2rem; /* Indentação para os sub-itens */
}
.sub-menu .nav-button:last-child {
    border-bottom: none;
}

/* --- ESTILO DE DESTAQUE PARA O BOTÃO DE TÓPICO DO ADMIN --- */

.topic-button.admin-button {
    background-color: #721c24; /* Vermelho escuro, a nossa cor de "perigo/ação importante" */
    border-color: #c62828;    /* Uma borda vermelha um pouco mais clara */
    color: #fff;              /* Texto branco para um bom contraste */
}

.topic-button.admin-button:hover {
    background-color: #c62828; /* Vermelho mais vivo ao passar o mouse */
}




/* --- ESTILOS PARA O POPOVER DE MENSAGEM --- */

.clickable-user-name {
    cursor: pointer;
    transition: color 0.2s;
}
.clickable-user-name:hover {
    color: var(--primary-color);
}

/* Garantir que o popover englobe totalmente os botões */
#user-popover.popover-menu {
  position: absolute !important;
  display: none;
  flex-direction: column !important;
  align-items: stretch !important;   /* faz os botões preencherem a largura do container */
  gap: 8px !important;

  box-sizing: border-box !important; /* importante para padding contar na largura */
  padding: 0.75rem !important;       /* espaço interno para os botões */
  min-width: 240px !important;       /* ajuste para seu layout */
  width: max-content !important;     /* cresce conforme o conteúdo, mas respeita min-width */

  /* sombra ampla — ajusta blur/spread se quiser maior */
  box-shadow: 0 12px 60px 18px rgba(0,0,0,0.6) !important;

  background-color: #0d0d0d !important;
  border: 1px solid #333 !important;
  border-radius: 6px !important;
  z-index: 9999 !important;
}

/* Forçar os links a respeitarem a largura do popover (sem "estourar") */
#user-popover.popover-menu a {
  display: block !important;
  width: 100% !important;           /* ocupa a largura interna do popover */
  box-sizing: border-box !important;
  padding: 0.55rem 0.6rem !important;
  text-align: center !important;
  text-decoration: none !important;
  border-radius: 4px !important;
}

/* Caso algum estilo global esteja adicionando margens negativas */
#user-popover.popover-menu * {
  margin: 0 !important;
}

/* Se um pai estiver com overflow:hidden cortando a sombra, permitir overflow visível */
#user-popover.popover-menu {
  overflow: visible !important;
}

#user-popover .btn-secondary,
#user-popover .btn-primary {
    display: block;          /* vira bloco, não inline */
    width: 100%;             /* mesma largura p/ os dois */
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    
}


.popover-menu a {
    width: 100%;              /* botão ocupa toda a largura do popover */
    text-align: center;       /* texto centralizado */
}





.btn-chat {
    background-color: #007bff; /* Um azul padrão para comunicação */
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn-chat:hover {
    background-color: #0056b3; /* Azul mais escuro */
}

/* --- ESTILOS PARA ESTATÍSTICAS DE PAGAMENTO NO CARD DE EVENTO --- */
.event-payment-stats {
    display: flex;
    gap: 1.5rem; /* Espaço entre os contadores */
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #333; /* Linha separadora */
    font-size: 0.85rem;
}

.stat-confirmado {
    color: #28a745; /* Verde para confirmados */
    font-weight: bold;
}

.stat-pendente {
    color: #ffc107; /* Amarelo/Laranja para pendentes */
    font-weight: bold;
}

.stat-confirmado i,
.stat-pendente i {
    margin-right: 5px;
}


.event-title-link {
    color: inherit; /* Faz o link herdar a cor branca do título */
    text-decoration: none;
    transition: color 0.2s;
}

.event-title-link:hover {
    color: var(--primary-color); /* Fica laranja ao passar o rato */
    text-decoration: underline;
}
/* --- ESTILOS PARA OS SELOS DE STATUS DOS CARDS --- */
.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

.status-badge.status-vendido {
    background-color: rgba(220, 53, 69, 0.85); /* Vermelho */
}

.status-badge.status-pendente {
    background-color: rgba(255, 136, 0, 0.85); /* Laranja */
}

.status-badge.status-rejeitado {
    background-color: rgba(50, 50, 50, 0.85); /* Cinza escuro */
}
.link-vendido {
    /* A MÁGICA ACONTECE AQUI: Desativa todos os eventos de clique */
    pointer-events: none; 

    /* O cursor do rato não mudará mais para a "mãozinha" */
    cursor: default;
}
.header-actions-chat {
    display: flex;
    gap: 0.5rem;
}
.btn-delete-chat {
    background-color: #721c24; /* Vermelho escuro */
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-delete-chat:hover {
    background-color: #c62828; /* Vermelho mais claro */
}
/* --- ESTILOS PARA OS DETALHES EXTRAS DO ANÚNCIO --- */
.anuncio-meta-detalhes {
    display: flex;
    gap: 1.5rem; /* Espaço entre os itens */
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha no telemóvel */
}

.meta-item {
    background-color: #2a2a2a;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.meta-item strong {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 3px;
}

.meta-item span {
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
}
/* --- ESTILO PARA O FORMULÁRIO DE BUSCA COM FILTROS --- */
.search-form-hero {
    display: grid;
    flex-direction: column; /* Empilha a busca e os filtros */
    gap: 0.5rem;
    flex-grow: 1; /* Ocupa o espaço do meio */
    max-width: 510px;
    min-width: 150px;
}

.search-main-bar {
    display: flex;
    width: 100%;
}

.search-form-hero input[type="search"] {
    flex-grow: 1;
    padding: 1.2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px 0 0 5px;
}

.search-form-hero button {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.search-filter-bar {
    display: flex;
    width: 100%;
    gap: 0.5rem; /* Espaço entre os 3 filtros */
}

.filter-select {
    flex-grow: 1; /* Faz os 3 filtros partilharem o espaço */
    padding: 0.8rem;
    background-color: var(--dark-bg);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3E%3Cpath d='M8 10.5L3 5.5h10L8 10.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}
/* --- ESTILO PARA O CRACHÁ DE NOTIFICAÇÃO DO CHAT --- */
.notification-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}
.notification-badge.hidden {
    display: none;
}


/* --- ESTILO FINAL E MINIMALISTA PARA O CALENDÁRIO --- */

/* 1. Define a "caixa" do calendário como mais estreita */
#calendario-container {
    flex: 1;
    max-width: 300px; /* Reduz a largura máxima */
    max-height: 300px;
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.5rem; /* Reduz o padding interno */
    margin-left: -400px;
    margin-right: 45px;
}




/* 2. Estilo "Militar" para o FullCalendar */
:root {
    --fc-bg-color: #1E1E1E;
    --fc-border-color: #333;
    --fc-text-color: #ccc;
    --fc-day-text-color: #fff;
    --fc-today-bg-color: #2a2a2a;
    --fc-event-bg-color: var(--primary-color);
}
.fc {
    color: var(--fc-text-color);
    background-color: var(--fc-bg-color);
}
/* Reduz o tamanho do título (Mês/Ano) */
.fc-toolbar-title {
    color: var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem; /* <-- BEM MENOR */
}
/* Esconde os botões (Hoje, <, >) */

.fc-header-toolbar {
    margin-bottom: 0.5rem !important; /* Menos espaço */
}
/* Reduz o tamanho das células dos dias */
.fc .fc-daygrid-day-frame {
    max-height: 30px;
}
.fc .fc-daygrid-day-top {
    padding: 0px; /* Menos padding */
}
.fc-daygrid-day-number {
    font-size: 0.7rem; /* Números bem pequenos */
    padding: 0;
}
.fc-col-header-cell {
    font-size: 0.8rem; /* Dias da semana pequenos */
}
/* Esconde os dias de outros meses */
.fc-day-other .fc-daygrid-day-number {
    visibility: hidden;
}
/* Remove o evento (o ponto ou a barra) */
.fc-daygrid-dot-event {
    display: none;
}
/* Destaque para dias com eventos (agora só no número) */
.fc-day-with-event .fc-daygrid-day-number {
    cursor: pointer; /* Mostra a "mãozinha" de clique */
    background-color: var(--primary-color);
    border-radius: 10%;
    width: 18px; /* Círculo pequeno */
    height: 18px;
    line-height: 11px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.7rem;
}


/* --- ESTILOS PARA A SECÇÃO DE BOAS-VINDAS (TEXTO + FOTOS) --- */

.hero-welcome-section {
    display: flex;
    align-items: center; /* Alinha o texto e a caixa de fotos verticalmente */
    gap: 2rem; /* Espaço entre as duas colunas */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-welcome-text {
    flex: 1; /* Faz o texto ocupar o espaço disponível */
}
.hero-welcome-text h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    text-align: left;
}
.hero-welcome-text p {
    font-size: 1.1rem;
    color: #ccc;
    text-align: left;
}

.hero-gallery-box {
    flex-basis: 300px; /* Define uma largura fixa para a caixa de fotos */
    flex-shrink: 0; /* Impede que a caixa encolha */
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-right: -500px;
    margin-left: 50px;
}
.hero-gallery-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.mini-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Grelha de 2x2 */
    gap: 0.5rem;
}
.mini-gallery-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s;
}
.mini-gallery-img:hover {
    transform: scale(1.05);
}

.btn-ver-galeria {
    display: block;
    margin-top: 1rem;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}
/* --- ESTILOS PARA O BOTÃO "VER QUEM CURTIU" E MODAL --- */

.like-actions {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espaço entre o botão curtir e o link */
    margin-top: 1rem;
}

.btn-ver-curtidas {
    background-color: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.btn-ver-curtidas:hover {
    background-color: var(--primary-color); /* Fica laranja ao passar o rato */
}

/* --- ESTILO DA JANELA MODAL (POP-UP) --- */
.modal-overlay {
    display: none; /* Começa escondido */
    position: fixed; /* Fixa na tela */
    z-index: 1000; /* Garante que fique acima de tudo */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); /* Fundo escuro transparente */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
  }
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    width: 90%;
    max-width: 400px; /* Largura máxima da janela */
    max-height: 70vh; /* Altura máxima (70% da altura da tela) */
    display: flex; /* Para organizar o conteúdo */
    flex-direction: column;
}
.modal-content h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-family: 'Bebas Neue', sans-serif;
    margin-top: -30px;
}
.modal-close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end; /* Alinha o "x" à direita */
    line-height: 1;
}

/* --- ESTILO DA LISTA DE UTILIZADORES DENTRO DO MODAL --- */
.user-like-list {
    overflow-y: auto; /* Adiciona scroll se a lista for muito longa */
    padding-right: 10px; /* Espaço para a barra de scroll */
}
.user-like-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a2a2a; /* Separador */
}
.user-like-item:last-child {
    border-bottom: none; /* Remove o separador do último item */
}
.profile-pic-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-color);
}
.user-like-item strong {
    color: #fff;
}
/* --- ESTILO PARA OS BOTÕES DE NAVEGAÇÃO DO CALENDÁRIO --- */

#calendario-container .fc-button {
    background: #333 !important; /* Cor de fundo do botão */
    border: none !important;
    opacity: 0.8;
    box-shadow: none !important;
}

#calendario-container .fc-button:hover {
    background: #444 !important; /* Cor ao passar o rato */
    opacity: 1;
}

#calendario-container .fc-icon {
    color: var(--primary-color); /* Cor laranja para as setas < e > */
}

/* --- ESTILOS PARA A PÁGINA DE PERFIL PÚBLICO --- */
.public-profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
}
.profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}
.profile-header-info h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin: 0;
}
.profile-header-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}
.profile-header-info p {
    color: #ccc;
    margin: 0.5rem 0 0 0;
}
.profile-header-info p i {
    margin-right: 8px;
}


/* --- ESTILOS PARA O PAINEL DE VISÃO GERAL --- */
.stat-boxes {
    display: grid;
    /* 4 colunas em ecrãs grandes, 2 em tablets, 1 em telemóveis */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.stat-box {
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.stat-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 0;
    text-transform: uppercase;
}
.stat-box .stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    display: block;
    text-align: right;
}
.stat-tables {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas para as tabelas */
    gap: 2rem;
}
.table-container h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: #fff;
    font-size: 1.5rem;
}
/* No telemóvel, as tabelas ficam uma em cima da outra */
@media (max-width: 768px) {
    .stat-tables {
        grid-template-columns: 1fr;
    }
}


/*LISTA DE DESEJOS*/

.termo-item { display: flex; justify-content: space-between; align-items: center; background-color: var(--dark-bg); padding: 0.8rem; border-radius: 5px; margin-bottom: 0.5rem; border: 1px solid #333; }































































/* ==========================================================
   ===           ESTILOS RESPONSIVOS (MOBILE)             ===
   ========================================================== */

/* Aplica estas regras para ecrãs com 768px de largura ou menos */
@media (max-width: 768px) {

    /* --- AJUSTES NO PAINEL LOGADO --- */

    /* --- AJUSTES RESPONSIVOS PARA A PÁGINA "MINHAS INSCRIÇÕES" --- */

/* Faz com que o card do evento empilhe a imagem e as informações no telemóvel */
.events-list .event-card {
    flex-direction: column;
}
.events-list .event-card .event-image {
    width: 100%; /* A imagem ocupa a largura total */
    height: 150px; /* Mantém uma altura razoável */
}

/* A correção principal: faz o formulário de upload empilhar os seus itens */
.input-group-inline {
    flex-direction: column; /* De lado a lado para um em cima do outro */
    align-items: flex-start; /* Alinha os itens à esquerda */
    gap: 0.8rem; /* Adiciona um espaço entre os itens empilhados */
}

.input-group-inline label {
    margin-bottom: 0; /* Remove margem extra */
}

.input-group-inline button {
    width: 100%; /* Faz o botão de envio ocupar a largura total */
    justify-content: center;
}


    .dashboard-container {
        flex-direction: column; /* Faz a sidebar e o conteúdo ficarem um em cima do outro */
    }

    .sidebar {
        position: relative; /* Remove a fixação da sidebar */
        width: 100%; /* Ocupa a largura total */
        height: auto; /* A altura será automática */
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .main-content {
        margin-left: 0; /* Remove a margem da sidebar */
        padding: 1rem; /* Reduz o espaçamento interno */
    }

    .main-header {
        flex-direction: column; /* Empilha a foto e os botões */
        align-items: flex-start; /* Alinha tudo à esquerda */
    }

    /* --- AJUSTES EM GRELHAS DE PRODUTOS/FOTOS --- */
    
    .product-grid,
    .gallery-grid {
        /* Muda a grelha para uma ou duas colunas no máximo */
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* --- AJUSTES NA PÁGINA DE DETALHES (FOTO/ANÚNCIO) --- */

    .anuncio-container,
    .foto-detalhe-container {
        flex-direction: column; /* Empilha a foto e as informações */
    }
    
    .foto-principal, .foto-info,
    .anuncio-imagem, .anuncio-detalhes {
        width: 100%; /* Faz cada coluna ocupar a largura total */
        flex-basis: auto;
    }

    /* --- AJUSTES NA PÁGINA INICIAL --- */
    
    .main-page-header {
        flex-direction: column;
        position: static; /* Deixa de flutuar */
        padding: 1rem;
    }
    
    .hero-search h1 {
        font-size: 2.5rem; /* Reduz o tamanho da fonte do título */
    }

    .features {
        flex-direction: column; /* Empilha os ícones de "Como Funciona" */
        align-items: center;
    }

    /* --- AJUSTES EM FORMULÁRIOS --- */
    .form-box {
        padding: 1.5rem;
    }

    .main-page-header {
    flex-direction: column; /* FORÇA O EMPILHAMENTO: logo em cima, busca no meio, botões em baixo */
    gap: 0rem; /* Reduz o espaço entre os itens empilhados */
    padding: 0rem;
}


.main-nav {
    width: 100%;
    display: flex;
     justify-content: center;/* Centraliza os botões "Meu Painel" e "Sair" */
     max-width: 50;
}

/* ... (as suas outras regras para sidebar, layout, etc., continuam aqui) ... */
    
    .main-page-header {
        flex-wrap: wrap;
        /* ... */
    }

    /* AS NOVAS REGRAS QUE CORRIGEM O PROBLEMA */
    .header-search input,
    .header-search button {
        padding: 0.2rem 1rem;
        font-size: 0.8rem;
    }

    .main-nav .btn-login,
    .main-nav .btn-register {
        margin-top: -125px;
        padding: 0.2rem 1rem;
        font-size: 0.8rem;
    }

    


    .hero-welcome-section {
    flex-direction: column; /* Empilha o texto e a galeria */
    padding-top: 1rem;
}
.hero-gallery-box {
    flex-basis: 20%; /* Ocupa a largura total */
    width: 100%;
    margin-right: 10px;
}
.mini-gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* Grelha de 2x2 */
    gap: 1.5rem;
}
.mini-gallery-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s;
}
.mini-gallery-img:hover {
    transform: scale(1.05);
}
.hero-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-top: auto;
    color: var(--primary-color);
    margin-left: 50px;
    
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: auto;
text-align: center;
margin-left: 50px;
}

.header-search {
    display: flex;
        margin-top: 20px;
    width: 100%; /* Faz a busca ocupar o máximo de espaço possível */
    max-width: 450px;
}

.search-filter-bar {
    display: flex;
    width: 10%;
    gap: 0rem; /* Espaço entre os 3 filtros */
}

.filter-select {
    flex-grow: 1; /* Faz os 3 filtros partilharem o espaço */
    padding: 0.4rem;
    background-color: var(--dark-bg);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 0.7rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3E%3Cpath d='M8 10.5L3 5.5h10L8 10.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

}



