/* ========================================= */
/* Configurações Globais */
/* ========================================= */
:root {
    --primary-color: #8B4513;
    --secondary-color: #F5DEB3;
    --text-color: #333;
    --light-color: #fff;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================= */
/* Cabeçalho */
/* ========================================= */
.header {
    background: var(--light-color);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001; /* CORRIGIDO: Garante que o header fique acima do overlay */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    
    align-items: center;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Controla o tamanho da imagem do logo de forma estrita */
.header .logo img {
    height: 60px; /* Usamos altura fixa para consistência */
    width: auto;  /* Largura ajusta-se automaticamente */
    display: block; /* Remove espaços extra que imagens podem ter */
}

/* Estilo para o nome da empresa */
.header .logo span {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1; /* Ajuda no alinhamento vertical preciso */
}

.logo {
    display: inline-block;
    position: relative;
    overflow: hidden;
    /* Removemos qualquer estilo de hover diretamente no link */
}

/* 2. Removemos a transição da imagem para não haver zoom */
.logo img {
    max-height: 60px;
    width: auto;
    display: block; /* Melhora o alinhamento */
}

/* 3. Criamos o feixe de luz */
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    
    /* Posição inicial (fora, à esquerda) */
    transform: translateX(-150%) skewX(-30deg);
    
    /* A MUDANÇA PRINCIPAL: A transição fica aqui! */
    /* Isso faz com que ela se aplique tanto na ida quanto na volta. */
    transition: transform 0.8s ease-in-out;
}

/* 4. Posição final (quando o rato está por cima) */
.logo:hover::after {
    /* Move o feixe para fora, à direita */
    transform: translateX(250%) skewX(-30deg);
}

.logo span {
    font-family: var(--font-title); /* Usa a fonte de títulos */
    font-size: 1.6rem;              /* Tamanho da fonte */
    color: var(--primary-color);    /* Usa a cor primária */
    font-weight: 700;               /* Deixa o texto em negrito */
}

/* MENU DESKTOP */
.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    margin-left: auto;   /* ADICIONE ESTA LINHA */
    margin-right: 40px; /* ADICIONE ESTA LINHA */
}

.menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #000;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #8B4513;
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================= */
/* Hero */
/* ========================================= */
.hero {
    background: url('imagens/fundo_hero.jpg') no-repeat center center/cover;
    position: relative;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    min-height: 98vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 20px;
}

.hero .btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 2px solid #fff;
}

.hero .btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ========================================= */
/* Seções Gerais */
/* ========================================= */
section {
    padding: 60px 0;
}

section h3 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.service-item {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-item h4 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ========================================= */
/* Galeria, Contato e Formulários (RE-ADICIONADOS) */
/* ========================================= */
.gallery {
    background: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.contact h3, .contact p {
    text-align: center;
    margin-bottom: 20px;
}

/* Estilo genérico para formulários de Contato, Login e Cadastro */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

.contact-form button {
    border: none;
    cursor: pointer;
    width: 100%;
}


/* ========================================= */
/* Painel do Cliente (ADICIONADO) */
/* ========================================= */
.orcamento-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.orcamento-info {
    flex-grow: 1;
}

.orcamento-info p {
    margin: 5px 0;
}

.orcamento-acao {
    margin-left: 20px;
}

/* ========================================= */
/* Modal Genérico e Modal de Detalhes */
/* ========================================= */
.btn {
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 1.2em;
    padding: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: black;
}

/* --- ESTILOS PARA O MODAL DE DETALHES TIPO CARTÃO (ADICIONADO) --- */
.modal-content h3 {
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-title);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.orcamento-detalhes-card {
    display: grid;
    gap: 15px;
}

.detalhe-campo {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.detalhe-campo:last-of-type {
    border-bottom: none;
}

.detalhe-label {
    font-weight: bold;
    color: var(--text-color);
    flex-shrink: 0;
    margin-right: 10px;
}

.detalhe-valor {
    color: #555;
    text-align: right;
    flex-grow: 1;
}

.detalhe-campo-bloco {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    margin-top: 15px;
}

.detalhe-campo-bloco .detalhe-label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

.detalhe-campo-bloco .detalhe-valor {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #333;
    text-align: left;
    font-size: 0.95em;
    border: 1px solid #ddd;
}

.orcamento-detalhes-card .btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* ========================================= */
/* Footer */
/* ========================================= */
.footer {
    background: var(--text-color);
    color: var(--light-color);
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

/* ========================================= */
/* RESPONSIVO - MOBILE */
/* ========================================= */
@media (max-width: 768px) {
    
    .logo img {
        max-height: 50px;
    }

    .header {
        padding: 0.4rem 0;
    }

    .menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* MENU COMPACTO - Como dropdown */
    body.menu-open .menu {
        display: flex;
        position: fixed;
        top: 65px;
        right: 12px;
        width: 180px;
        height: auto;
        
        flex-direction: column;
        z-index: 1000;
        list-style: none;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
        padding: 10px 0;
        border: 3px solid rgba(255,255,255,0.5);
		  padding: 0;
    margin-left: auto;   /* ADICIONE ESTA LINHA */
    margin-right: -9px; /* ADICIONE ESTA LINHA */
	 /* Alterado para 75% de opacidade */
    background: rgba(139, 69, 9, 0.90); 
    
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    }

    body.menu-open .menu a {
        color: white;
        font-size: 0.95rem;
        padding: 5px 15px;
       display: grid;
       place-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: all 0.2s ease;
    }

    body.menu-open .menu li:last-child a {
        border-bottom: none;
    }

    body.menu-open .menu a:hover {
        background-color: rgba(255,255,255,0.15);
        color: white;
        padding-left: 20px;
    }

    /* Animação hamburger em X */
    body.menu-open .hamburger .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    body.menu-open .hamburger .bar:nth-child(2) {
        opacity: 0;
    }
    body.menu-open .hamburger .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Overlay sutil */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.2);
        z-index: 999;
    }

    .hero {
        min-height: 50vh;
        margin-top: 50px;
        padding: 10px;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.8rem;
    }

    .hero .btn {
        font-size: 0.7em;
        padding: 6px 12px;
    }

    section {
        padding: 30px 0;
    }

    section h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .service-grid, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

/* ========================================= */
/* ESTILOS DO PAINEL DE ADMINISTRAÇÃO        */
/* ========================================= */

.admin-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna por padrão */
    gap: 30px;
}

/* Em telas maiores, cria duas colunas */
@media (min-width: 992px) {
    .admin-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-coluna {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
}

.coluna-titulo {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-admin {
    max-height: 600px; /* Altura máxima para a lista, com scroll */
    overflow-y: auto;
    padding-right: 10px; /* Espaço para a barra de scroll */
}

/* Estilo para item de mensagem */
.item-admin-mensagem, .item-admin-orcamento {
    border: 1px solid #e9e9e9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
}

.item-admin-mensagem .mensagem-corpo {
    font-style: italic;
    color: #555;
    margin: 10px 0;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #777;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.status {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    color: white;
}

.status-novo, .status-pendente {
    background-color: #007bff; /* Azul */
}

.status-em-análise {
    background-color: #ffc107; /* Laranja */
    color: #333;
}

.status-respondido {
    background-color: #28a745; /* Verde */
}

.btn-ver-detalhes {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-ver-detalhes:hover {
    background-color: #6a340d;
}
/* ========================================= */
/* ESTILOS DAS PÁGINAS DE DETALHES (ADMIN)   */
/* ========================================= */

.detalhe-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.detalhe-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.detalhe-header p {
    margin: 5px 0;
    font-size: 1.1em;
}

.detalhe-corpo h4 {
    color: var(--primary-color);
    font-family: var(--font-title);
    margin-bottom: 10px;
}
.detalhe-corpo p {
    line-height: 1.7;
    white-space: pre-wrap; /* Mantém as quebras de linha */
}

.detalhe-acoes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-voltar, .btn-responder, .btn-excluir {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-voltar { background-color: #6c757d; } /* Cinza */
.btn-responder { background-color: #007bff; } /* Azul */
.btn-excluir { background-color: #dc3545; } /* Vermelho */

.btn-voltar:hover, .btn-responder:hover, .btn-excluir:hover {
    opacity: 0.85;
}

/* Estilos específicos para a página de gerir orçamento */
.detalhe-card-admin p {
    margin-bottom: 12px;
}
.detalhe-card-admin hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}
.mensagem-bloco {
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: 4px;
    font-style: italic;
}

/* Formulário de resposta do admin */
.form-admin .form-group {
    margin-bottom: 20px;
}
.form-admin label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}
.form-admin input[type="text"],
.form-admin textarea,
.form-admin select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-body);
}
.form-admin textarea {
    resize: vertical;
}
.notification {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-weight: bold;
}
.notification.is-success {
    background-color: #28a745; /* Verde */
}
.notification.is-error {
    background-color: #dc3545; /* Vermelho */
}

/* ========================================= */
/* ESTILOS DO NOVO PAINEL DO UTILIZADOR      */
/* ========================================= */

.painel-grid {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna por padrão em telemóveis */
    gap: 30px;
}

/* Em telas maiores, cria duas colunas (60% para a lista, 40% para o form) */
@media (min-width: 992px) {
    .painel-grid {
        grid-template-columns: 3fr 2fr; /* Proporção de 3 para 2 */
    }
}

.painel-coluna {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
}

.painel-coluna .coluna-titulo {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.5rem; /* Título um pouco menor */
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-orcamentos-painel {
    max-height: 450px; /* Altura máxima com scroll */
    overflow-y: auto;
    padding-right: 10px;
}

/* Estilos para o formulário na coluna da direita */
.form-painel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-painel p {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

.form-painel input,
.form-painel textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.95em;
}

.form-painel textarea {
    resize: vertical;
}

/* Substitua a regra .btn-ver-resposta por esta */

.btn-ver-resposta {
    display: block;
    width: 100%;
    padding: 14px; /* Um pouco mais de padding para dar mais peso */
    margin-top: 25px;
    background-color: #28a745; /* Verde, para indicar uma ação positiva/pronta */
    color: white;
    border: none;
    border-radius: 8px; /* Cantos um pouco mais arredondados */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); /* Sombra correspondente à nova cor */
    
    /* A linha mais importante: aplica a animação 'pulse' */
    animation: pulse 2.5s infinite;
    
    /* Transição para o hover */
    transition: all 0.3s ease;
}

.btn-ver-resposta:hover {
    background-color: #218838; /* Verde um pouco mais escuro no hover */
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px); /* Efeito de elevação subtil */
}

.btn-ver-resposta i {
    margin-right: 8px;
}

/* Adicione este código no final do seu style.css */

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.02); /* Aumenta ligeiramente o tamanho no meio da animação */
        box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4); /* Aumenta o brilho da sombra */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
}
/* No seu style.css */
main {
    padding-top: 90px; /* Reduz de 120px para 90px */
    background-color: #f4f7f6;
    min-height: 100vh; /* Garante que o main ocupe pelo menos a altura da tela */
}

#user-panel p {
    margin-bottom: 20px; /* Ajusta a margem do parágrafo de boas-vindas */
}

/* Se tiver um h3 na secção do painel, também pode ajustar */
#user-panel h3 {
    margin-top: 0; /* Garante que não há margem extra no topo do h3 */
    margin-bottom: 30px; /* Espaçamento padrão */
}
/* ========================================= */
/* ESTILOS PARA O BOTÃO "VER DETALHES" NO PAINEL DO UTILIZADOR */
/* ========================================= */

.orcamento-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.orcamento-item:last-child {
    margin-bottom: 0;
}

.orcamento-info p {
    margin: 0;
    line-height: 1.4;
    color: #444;
}

.orcamento-info strong {
    color: #222;
}

.orcamento-acao .ver-detalhes-btn {
    background-color: var(--secondary-color) !important; /* Cor secundária do seu tema */
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orcamento-acao .ver-detalhes-btn:hover {
    background-color: #e09e0d !important; /* Tom mais escuro da cor secundária no hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ========================================= */
/* CORREÇÃO DE POSICIONAMENTO DO MODAL       */
/* ========================================= */

/* 1. Transformamos o fundo do modal num contentor Flex */
.modal {
display: none; /* Esta é a única propriedade display que deve existir aqui */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;

    /* O Flexbox será ativado via JavaScript, então removemos daqui */
    /* align-items: flex-start;  <-- Pode remover ou comentar */
    /* justify-content: center; <-- Pode remover ou comentar */
}

/* 2. Ajustamos o conteúdo do modal */
.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    
    /* NOVA PROPRIEDADE PARA "SUBIR" O MODAL */
    margin-top: 2vh; /* Cria uma margem de 10% da altura da tela */
    
    /* Removemos a margem antiga */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5vh; /* Adiciona um respiro em baixo */
}

.modal-content h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.orcamento-detalhes-card {
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.detalhe-campo {
    display: flex;
    justify-content: space-between;
    padding: 3px 0; /* REDUZIDO: Menos espaçamento vertical */
    border-bottom: 1px dashed #e0e0e0;
}

.detalhe-campo:last-of-type {
    border-bottom: none;
}

.detalhe-campo-bloco {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.detalhe-campo-bloco:last-of-type {
    border-bottom: none;
}

.detalhe-label {
    font-weight: bold;
    color: #555;
    flex-basis: 40%; /* Ajusta a largura do label */
}

.detalhe-valor {
    color: #333;
    text-align: right;
    flex-basis: 58%; /* Ajusta a largura do valor */
    word-wrap: break-word; /* Garante que o texto longo se quebre */
    white-space: pre-wrap; /* Mantém quebras de linha em textos pré-formatados */
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto; /* Pode subir ainda mais em telas pequenas */
    }
    .detalhe-campo, .detalhe-campo-bloco {
        flex-direction: column; /* Em telas pequenas, empilha label e valor */
        align-items: flex-start;
    }
    .detalhe-label, .detalhe-valor {
        flex-basis: auto;
        width: 100%;
        text-align: left;
    }
    .detalhe-label {
        margin-bottom: 5px;
    }
}

/* Adicione ao seu style.css */

.btn-aceitar-ideias {
    display: inline-block;
    background-color: #28a745; /* Verde para 'aceitar' */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-aceitar-ideias:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-aceitar-ideias i {
    margin-right: 8px;
}
/* ========================================= */
/* ESTILOS DA PÁGINA DE ALERTAS (ADMIN)      */
/* ========================================= */
.alert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .alert-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.alert-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.alert-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.alert-content {
    display: flex;
    flex-direction: column;
}

.alert-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.alert-label {
    font-size: 1.1rem;
    color: #666;
}
/* Adicione ao seu style.css */

/* Estilo para a grelha de estatísticas dentro da coluna */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
/* Adicione ao seu style.css */

.stats-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 40px; /* Espaço antes da grelha principal */
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Reutilizamos o estilo dos cartões de alerta que já tínhamos */
.alert-card {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.alert-icon { font-size: 2.5rem; color: var(--primary-color); }
.alert-content { display: flex; flex-direction: column; }
.alert-number { font-size: 2.8rem; font-weight: 700; line-height: 1; }
.alert-label { font-size: 1rem; color: #666; margin-top: 5px; }

/* Adicionar ao style.css */
.notification-subscribe-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.notification-subscribe-box p {
    margin-top: 0;
    margin-bottom: 15px;
}