/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Variáveis CSS para as novas cores */
:root {
    --cor-primaria: #2d5a3d;
    --cor-secundaria: #cc5a1a;
    --cor-primaria-escura: #1e3d2a;
    --cor-secundaria-escura: #a6470e;
    --cor-primaria-clara: #3d6b4a;
    --cor-secundaria-clara: #e6702e;
    --cor-texto: #1a252f;
    --cor-texto-claro: #495057;
    --cor-fundo: #f8f9fa;
    --cor-branco: #ffffff;
    --sombra-suave: rgba(45, 90, 61, 0.1);
    --sombra-media: rgba(45, 90, 61, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
.cabecalho {
    background: #2d5a3d;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.cabecalho .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white !important;
    transition: all 0.3s ease;
    z-index: 1001;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo:hover svg {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.2);
}

.menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle .hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

.navegacao {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.3);
}

/* Botões de ação no header */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-header {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-header:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-header.primary {
    background: var(--cor-secundaria);
    color: white;
    border-color: var(--cor-secundaria);
}

.btn-header.primary:hover {
    background: #e6691a;
    color: white;
    border-color: #e6691a;
}

/* Conteúdo principal */
.principal {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--cor-primaria);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(45, 90, 61, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

/* Filtros */
.filtros {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.formulario-filtros {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.campo-grupo label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.campo-grupo input,
.campo-grupo select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.campo-grupo input:focus,
.campo-grupo select:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a3d 0%, #cc5a1a 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(68, 149, 114, 0.4);
}

.btn-secondary {
    background: #FF762B;
    color: white;
}

.btn-secondary:hover {
    background: #e6691a;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Grid de anúncios */
.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.anuncio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.anuncio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.anuncio-imagem {
    height: 250px !important;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    min-height: 250px;
    max-height: 250px;
}

.anuncio-imagem img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    min-height: 250px;
    max-height: 250px;
    display: block;
}

.sem-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

.anuncio-conteudo {
    padding: 1.5rem;
}

.anuncio-titulo {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.anuncio-descricao {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.anuncio-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.anuncio-cidade {
    font-weight: 500;
}

.anuncio-contato {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
}

.anuncio-contato strong {
    color: #333;
}

/* Formulários */
.formulario-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.formulario-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.formulario-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formulario .campo-grupo {
    min-width: auto;
}

.formulario input {
    width: 100%;
}

.formulario small {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.formulario-links {
    text-align: center;
    margin-top: 1rem;
}

.formulario-links a {
    color: var(--cor-primaria);
    text-decoration: none;
}

.formulario-links a:hover {
    text-decoration: underline;
}

/* Mensagens */
.mensagem {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.mensagem.erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensagem.sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Sem resultados */
.sem-resultados {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sem-resultados p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Rodapé */
.rodape {
    background: #2d5a3d;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Página de detalhes do anúncio */
.detalhes-anuncio {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.detalhes-imagem {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.detalhes-imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.detalhes-conteudo {
    padding: 2rem;
}

.detalhes-titulo {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.detalhes-descricao {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.detalhes-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.info-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Galeria de imagens */
.galeria-imagens {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.galeria-item {
    height: 150px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.galeria-item:hover {
    transform: scale(1.05);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Painel administrativo */
.painel-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 140px);
}

.painel-sidebar {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.painel-sidebar h3 {
    margin-bottom: 1rem;
    color: #000000 !important;
    font-weight: 700 !important;
}

.painel-menu {
    list-style: none;
}

.painel-menu li {
    margin-bottom: 0.5rem;
}

.painel-menu a {
    display: block;
    padding: 0.75rem;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500 !important;
}

.painel-menu a:hover,
.painel-menu a.ativo {
    background: #449572 !important;
    color: white !important;
}

.painel-conteudo {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.painel-titulo {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Tabelas */
.tabela-container {
    overflow-x: auto;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tabela th,
.tabela td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.tabela th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.tabela tr:hover {
    background: #f8f9fa;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.ativo {
    background: #d4edda;
    color: #155724;
}

.status-badge.inativo {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.pendente {
    background: #fff3cd;
    color: #856404;
}

/* Ações */
.acoes {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d5a3d 0%, #cc5a1a 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Garantir que o banner sempre fique visível */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    max-width: none !important;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner-text strong {
    color: #fff;
    font-weight: 600;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.cookie-btn-accept {
    background: #4CAF50;
    color: white;
}

.cookie-btn-accept:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Responsividade para banner de cookies */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-text {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .logo {
        gap: 0.5rem;
    }
    
    .logo-main {
        font-size: 1.4rem;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .navegacao {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .formulario-filtros {
        flex-direction: column;
    }
    
    .campo-grupo {
        min-width: auto;
        width: 100%;
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
    }
    
    .painel-container {
        grid-template-columns: 1fr;
    }
    
    .painel-sidebar {
        order: 2;
    }
    
    .painel-conteudo {
        order: 1;
    }
    
    .detalhes-info {
        grid-template-columns: 1fr;
    }
    
    .galeria-imagens {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .formulario-card {
        padding: 1.5rem;
    }
    
    .anuncio-conteudo {
        padding: 1rem;
    }
    
    .painel-conteudo {
        padding: 1rem;
    }
}

/* Rodapé */
.rodape {
    background: #2d5a3d;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--cor-primaria);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: white;
    line-height: 1.6;
}

.footer-section {
    text-align: left;
    flex: 1;
    margin: 0;
    padding: 0;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsividade para rodapé */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Responsividade Mobile - Header */
@media (max-width: 768px) {
    .cabecalho {
        padding: 0.8rem 0;
    }
    
    .cabecalho .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.4rem;
        gap: 0.8rem;
    }
    
    .logo svg {
        width: 40px;
        height: 40px;
    }
    
    .logo-main {
        font-size: 1.4rem;
    }
    
    /* Mostrar menu toggle */
    .menu-toggle {
        display: block;
    }
    
    /* Esconder navegação desktop */
    .navegacao {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #2d5a3d 0%, #cc5a1a 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }
    
    .navegacao.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 80%;
        text-align: center;
        border-radius: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
        width: 80%;
    }
    
    .btn-header {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Responsividade Mobile - Conteúdo */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Estilos para Botões WhatsApp */
.btn-whatsapp, .btn-whatsapp-admin {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    background: #25D366 !important;
    color: white !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-whatsapp:hover, .btn-whatsapp-admin:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: white !important;
    text-decoration: none;
}

.btn-whatsapp:active, .btn-whatsapp-admin:active {
    transform: translateY(0);
}

.btn-whatsapp span:first-child, .btn-whatsapp-admin span:first-child {
    font-size: 1.2rem;
}

/* Responsividade para botões WhatsApp */
@media (max-width: 768px) {
    .btn-whatsapp, .btn-whatsapp-admin {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-whatsapp span:first-child, .btn-whatsapp-admin span:first-child {
        font-size: 1.1rem;
    }
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed !important;
    bottom: 80px !important;
    right: 30px !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.3s ease !important;
}

/* Debug: Forçar visibilidade */
.whatsapp-float.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    display: block !important;
    position: fixed !important;
    z-index: 99999 !important;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

.whatsapp-text {
    font-size: 13px;
    white-space: nowrap;
}

/* Animação de pulsação */
.whatsapp-float.pulse .whatsapp-btn {
    animation: pulse-whatsapp 1s ease-in-out;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

/* Responsividade para botão flutuante */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 70px !important;
        right: 20px !important;
    }
    
    .whatsapp-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .whatsapp-icon {
        width: 18px;
        height: 18px;
    }
    
    .whatsapp-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 60px !important;
        right: 15px !important;
    }
    
    .whatsapp-btn {
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }
}
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .filtros {
        padding: 1.5rem 0;
    }
    
    .formulario-filtros {
        flex-direction: column;
        gap: 1rem;
    }
    
    .campo-grupo {
        width: 100%;
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .anuncio-card {
        margin-bottom: 1rem;
    }
    
    .rodape {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* PWA e Mobile Optimizations */
.pwa-mode {
    /* Ajustes para quando rodando como PWA */
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
}

.pwa-mode .cabecalho {
    padding-top: calc(1rem + var(--safe-area-inset-top));
}

.pwa-mode .rodape {
    padding-bottom: calc(1rem + var(--safe-area-inset-bottom));
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .anuncio-card, .nav a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .anuncio-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Dark mode support - DESABILITADO para manter sempre modo claro */
/* @media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .anuncio-card {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .formulario-card {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
} */

/* Forçar modo claro sempre - mesmo com dark mode do sistema */
* {
    color-scheme: light !important;
}

html {
    color-scheme: light !important;
}

body {
    background-color: #f8f9fa !important;
    color: #1a1a1a !important;
}

/* Garantir que todos os elementos mantenham cores claras */
.anuncio-card,
.formulario-card,
.painel-conteudo,
.painel-sidebar,
.hero,
.filtros,
.detalhes-anuncio,
.sem-resultados,
.tabela-container,
.cookie-banner {
    background-color: white !important;
    color: #1a1a1a !important;
}

/* Inputs e selects sempre claros */
input,
select,
textarea {
    background-color: white !important;
    color: #1a1a1a !important;
    border-color: #e1e5e9 !important;
}

/* Links sempre com cores padrão */
a {
    color: var(--cor-primaria) !important;
}

a:hover {
    color: var(--cor-primaria) !important;
    text-decoration: underline !important;
}

/* Botões mantêm cores originais */
.btn-primary {
    background: #449572 !important;
    color: white !important;
    border: none !important;
}

.btn-primary:hover {
    background: #3a7a5a !important;
    color: white !important;
}

.btn-secondary {
    background: #FF762B !important;
    color: white !important;
    border: none !important;
}

.btn-secondary:hover {
    background: #e6691a !important;
    color: white !important;
}

/* Cabeçalho mantém cor verde sólida */
.cabecalho {
    background: #2d5a3d !important;
    color: white !important;
}

/* Garantir que todos os elementos do header sejam brancos */
.cabecalho *,
.cabecalho a,
.cabecalho h1,
.cabecalho h2,
.cabecalho h3,
.cabecalho h4,
.cabecalho h5,
.cabecalho h6,
.cabecalho .logo,
.cabecalho .nav-link,
.cabecalho .logo-main {
    color: white !important;
}

/* ========================================
   ESTILOS PARA FORMULÁRIO SIMPLIFICADO DE ANÚNCIOS
   ======================================== */

.criar-anuncio-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Formulário Simplificado */
.formulario-simples {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Seções do Formulário */
.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--cor-primaria);
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.section-header h3 {
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.section-header p {
    color: var(--cor-texto-claro);
    font-size: 1rem;
}

.section-info {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(45, 90, 61, 0.1);
    border-radius: 6px;
}

.info-text {
    font-size: 0.9rem;
    color: var(--cor-primaria);
}

/* Campos Simplificados */
.campo-grupo-simples {
    margin-bottom: 1.5rem;
}

.campo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cor-texto);
}

.label-text {
    font-size: 1rem;
}

.label-required {
    color: #dc3545;
    font-weight: bold;
}

.label-optional {
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
    font-weight: normal;
}

/* Sistema de Ajuda Simplificado */
.campo-help-simples {
    margin-bottom: 0.5rem;
}

.help-text-simples {
    font-size: 0.9rem;
    color: var(--cor-texto-claro);
    font-style: italic;
}

/* Campos de Input Simplificados */
.campo-input-simples,
.campo-textarea-simples,
.campo-select-simples {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.campo-input-simples:focus,
.campo-textarea-simples:focus,
.campo-select-simples:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.campo-textarea-simples {
    resize: vertical;
    min-height: 100px;
}

/* Contadores Simplificados */
.campo-counter-simples {
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
}

/* Grid de Contatos Simplificado */
.contato-grid-simples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.campo-full {
    grid-column: 1 / -1;
}

/* Upload Simplificado */
.upload-simples {
    margin-top: 0.5rem;
}

.upload-area-simples {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.upload-area-simples:hover,
.upload-area-simples.drag-over {
    border-color: var(--cor-primaria);
    background: rgba(45, 90, 61, 0.05);
}

.upload-content-simples {
    pointer-events: none;
}

.upload-icon-simples {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-text-simples strong {
    display: block;
    color: var(--cor-primaria);
    margin-bottom: 0.3rem;
}

.upload-text-simples span {
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
}

.upload-area-simples input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

/* Preview Simplificado */
.preview-simples {
    margin-top: 1rem;
}

.preview-simples img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
}

.preview-grid-simples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.preview-item-simples {
    position: relative;
}

.preview-item-simples img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #dee2e6;
}

.btn-remove-simples {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.btn-remove-simples:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Dicas Simplificadas */
.contato-tip-simples,
.imagens-tip-simples {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(45, 90, 61, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--cor-primaria);
}

.tip-text-simples {
    font-size: 0.9rem;
    color: var(--cor-texto);
    line-height: 1.4;
}

/* Seção Final e Botão de Envio */
.form-section-final {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #dee2e6;
}

.submit-container {
    text-align: center;
}

.btn-submit-principal {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.btn-submit-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
}

.submit-info {
    margin-top: 1rem;
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsividade Simplificada */
@media (max-width: 768px) {
    .contato-grid-simples {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-submit-principal {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .upload-area-simples {
        padding: 1rem;
    }
}

/* ========================================
   ESTILOS PARA MODAL DE EDIÇÃO DE ANÚNCIOS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 0.5rem;
    border-radius: 50%;
}

.close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

/* Animações do Modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   ESTILOS PARA GRID DE USUÁRIOS (ADMIN)
   ======================================== */

.usuarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.usuario-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.usuario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.usuario-header {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.usuario-info {
    flex: 1;
}

.usuario-nome {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.usuario-id {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

.usuario-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.tipo-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tipo-badge.admin {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.tipo-badge.usuario {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.usuario-detalhes {
    padding: 1.5rem;
    background: #f8f9fa;
}

.detalhe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--cor-primaria);
}

.detalhe-item:last-child {
    margin-bottom: 0;
}

.detalhe-label {
    font-weight: 600;
    color: var(--cor-texto);
    font-size: 0.9rem;
}

.detalhe-valor {
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.usuario-acoes {
    padding: 1.5rem;
    background: white;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.acao-form {
    display: inline-block;
}

.btn-status {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: var(--cor-texto);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-status:hover {
    border-color: var(--cor-primaria);
    background: rgba(45, 90, 61, 0.05);
}

.btn-suspender {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-suspender:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-deletar {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deletar:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.sua-conta {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem;
}

/* Responsividade para Grid de Usuários */
@media (max-width: 768px) {
    .usuarios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .usuario-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .usuario-status {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    
    .usuario-acoes {
        flex-direction: column;
        align-items: stretch;
    }
    
    .acao-form {
        width: 100%;
    }
    
    .btn-status,
    .btn-suspender,
    .btn-deletar {
        width: 100%;
        text-align: center;
    }
    
    .detalhe-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detalhe-valor {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .usuario-nome {
        font-size: 1.1rem;
    }
    
    .usuario-header {
        padding: 1rem;
    }
    
    .usuario-detalhes {
        padding: 1rem;
    }
    
    .usuario-acoes {
        padding: 1rem;
    }
}

/* ========================================
   ESTILOS PARA PAGINAÇÃO DE USUÁRIOS
   ======================================== */

.paginacao-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.paginacao-info {
    flex: 1;
}

.paginacao-texto {
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
    font-weight: 500;
}

.paginacao-botoes {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-paginacao {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.btn-anterior {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    border-color: var(--cor-primaria);
}

.btn-anterior:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
    color: white;
}

.btn-proximo {
    background: linear-gradient(135deg, var(--cor-secundaria) 0%, var(--cor-primaria) 100%);
    color: white;
    border-color: var(--cor-secundaria);
}

.btn-proximo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 90, 26, 0.3);
    color: white;
}

/* Responsividade da Paginação */
@media (max-width: 768px) {
    .paginacao-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .paginacao-info {
        order: 2;
    }
    
    .paginacao-botoes {
        order: 1;
        justify-content: center;
        width: 100%;
    }
    
    .btn-paginacao {
        flex: 1;
        justify-content: center;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .paginacao-container {
        padding: 1rem;
    }
    
    .paginacao-botoes {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-paginacao {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    
    .paginacao-texto {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Barra de Progresso */
.progress-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-number {
    background: var(--cor-primaria);
    color: white;
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: var(--cor-primaria);
    font-weight: 600;
}

/* Formulário Melhorado */
.form-description {
    text-align: center;
    color: var(--cor-texto-claro);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.formulario-melhorado {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.step-header h3 {
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.step-header p {
    color: var(--cor-texto-claro);
    font-size: 1rem;
}

/* Campos Melhorados */
.campo-grupo-melhorado {
    margin-bottom: 2rem;
}

.campo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cor-texto);
}

.label-text {
    font-size: 1rem;
}

.label-required {
    color: #dc3545;
    font-weight: bold;
}

.label-optional {
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
    font-weight: normal;
}

/* Sistema de Ajuda */
.campo-help {
    position: relative;
    margin-bottom: 0.5rem;
}

.help-icon {
    display: inline-block;
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.help-text {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    display: none;
    font-size: 0.9rem;
}

.campo-help:hover .help-text {
    display: block;
}

.help-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.help-text li {
    margin-bottom: 0.3rem;
}

/* Campos de Input */
.campo-input,
.campo-textarea,
.campo-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.campo-input:focus,
.campo-textarea:focus,
.campo-select:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.campo-input.valid,
.campo-textarea.valid,
.campo-select.valid {
    border-color: #28a745;
}

.campo-input.invalid,
.campo-textarea.invalid,
.campo-select.invalid {
    border-color: #dc3545;
}

.campo-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Exemplos e Dicas */
.campo-examples {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--cor-primaria);
}

.campo-examples strong {
    color: var(--cor-primaria);
    display: block;
    margin-bottom: 0.5rem;
}

.example-item {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--cor-texto);
}

.example-description {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Feedback em Tempo Real */
.campo-feedback {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.campo-feedback.success {
    color: #28a745;
}

.campo-feedback.error {
    color: #dc3545;
}

/* Contadores */
.campo-counter {
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
}

/* Grid de Contatos */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.campo-full {
    grid-column: 1 / -1;
}

/* Upload de Imagens Melhorado */
.upload-container-melhorado {
    margin-top: 0.5rem;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--cor-primaria);
    background: rgba(45, 90, 61, 0.05);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-text strong {
    display: block;
    color: var(--cor-primaria);
    margin-bottom: 0.3rem;
}

.upload-text span {
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
}

.upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Garantir que botões de ação não sejam afetados */
.step-actions {
    position: relative;
    z-index: 10;
}

.step-actions button {
    position: relative;
    z-index: 10;
}

/* Preview de Imagens */
.preview-container {
    margin-top: 1rem;
}

.preview-image {
    position: relative;
    display: inline-block;
}

.preview-image img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.preview-item {
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.btn-remove,
.btn-remove-small {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.btn-remove-small {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    margin: 0;
}

.btn-remove:hover,
.btn-remove-small:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Dicas e Informações */
.location-tip,
.contato-tip,
.imagens-tip,
.finalizacao-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(45, 90, 61, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--cor-primaria);
}

.tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.9rem;
    color: var(--cor-texto);
    line-height: 1.4;
}

/* Revisão Final */
.revisao-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.revisao-section {
    margin-bottom: 1.5rem;
}

.revisao-section:last-child {
    margin-bottom: 0;
}

.revisao-section h4 {
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.revisao-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.revisao-item {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.revisao-item:last-child {
    margin-bottom: 0;
}

.revisao-item strong {
    min-width: 120px;
    color: var(--cor-texto);
    margin-right: 1rem;
}

.revisao-item span {
    color: var(--cor-texto-claro);
    flex: 1;
    word-break: break-word;
}

/* Botões de Navegação */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.btn-back,
.btn-next,
.btn-finalizar {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next {
    background: var(--cor-primaria);
    color: white;
}

.btn-next:hover {
    background: var(--cor-primaria-escura);
    transform: translateY(-2px);
}

.btn-finalizar {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-finalizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 61, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .progress-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-bar::before {
        display: none;
    }
    
    .contato-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-back,
    .btn-next,
    .btn-finalizar {
        width: 100%;
        justify-content: center;
    }
    
    .revisao-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .revisao-item strong {
        min-width: auto;
    }
}

/* Rodapé mantém cor verde igual ao header */
.rodape {
    background: #2d5a3d !important;
    color: white !important;
}

/* Garantir visibilidade dos elementos do painel */
.painel-sidebar p {
    color: #000000 !important;
    font-weight: 500 !important;
}

.painel-sidebar h3 {
    color: #000000 !important;
    font-weight: 700 !important;
}

.painel-menu a {
    color: #000000 !important;
    font-weight: 500 !important;
}

.painel-menu a:hover,
.painel-menu a.ativo {
    background: #449572 !important;
    color: white !important;
}

.painel-titulo {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Botões do painel com cor #449572 */
.btn-warning {
    background: #449572 !important;
    color: white !important;
    border: none !important;
}

/* Melhorias de contraste e legibilidade */
.btn-primary, .btn-secondary {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover, .btn-secondary:hover {
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Melhorar contraste dos textos */
h1, h2, h3, h4, h5, h6 {
    color: var(--cor-texto);
    font-weight: 600;
}

/* Cards com melhor contraste */
.anuncio-card, .stat-card {
    box-shadow: 0 4px 6px var(--sombra-suave);
    transition: all 0.3s ease;
}

.anuncio-card:hover, .stat-card:hover {
    box-shadow: 0 8px 15px var(--sombra-media);
    transform: translateY(-2px);
}

/* Formulários com melhor foco */
input:focus, select:focus, textarea:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px var(--sombra-suave);
    outline: none;
}

/* Links com melhor contraste */
a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cor-primaria-escura);
    text-decoration: underline;
}

/* Status badges com melhor contraste */
.status-badge.ativo {
    background: var(--cor-primaria);
    color: white;
    font-weight: 600;
}

.status-badge.inativo {
    background: #dc3545;
    color: white;
    font-weight: 600;
}

.status-badge.pendente {
    background: var(--cor-secundaria);
    color: white;
    font-weight: 600;
}

.btn-warning:hover {
    background: var(--cor-primaria-escura) !important;
    color: white !important;
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
}

.btn-danger:hover {
    background: #c82333 !important;
    color: white !important;
}

/* Melhorar legibilidade de textos específicos */
h1, h2, h3, h4, h5, h6 {
    color: #000000 !important;
}

.anuncio-titulo {
    color: #000000 !important;
    font-weight: 700 !important;
}

.anuncio-descricao {
    color: #333333 !important;
    line-height: 1.6 !important;
}

.anuncio-info {
    color: #666666 !important;
}

.anuncio-contato {
    color: #000000 !important;
}

.anuncio-contato strong {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Melhorar contraste em elementos de interface */
.btn {
    color: white !important;
}

.btn-secondary {
    background: #6c757d !important;
    color: white !important;
}

.btn-secondary:hover {
    background: var(--cor-secundaria-escura) !important;
    color: white !important;
}

/* Melhorar legibilidade em formulários */
label {
    color: #000000 !important;
    font-weight: 600 !important;
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
    border-color: var(--cor-primaria) !important;
    box-shadow: 0 0 0 2px rgba(45, 90, 61, 0.2) !important;
}

/* Melhorar legibilidade em tabelas */
.tabela th {
    background: #f8f9fa !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

.tabela td {
    color: #000000 !important;
}

.tabela tr:hover {
    background: #f8f9fa !important;
}

/* Melhorar legibilidade em mensagens */
.mensagem {
    color: #000000 !important;
    font-weight: 600 !important;
}

.mensagem.erro {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.mensagem.sucesso {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .anuncio-card {
        border: 2px solid currentColor;
    }
}

/* Print styles */
@media print {
    .cabecalho, .rodape, .filtros {
        display: none;
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
    }
    
    .anuncio-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--cor-primaria);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 0.5rem;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--cor-primaria);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--cor-primaria);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
