/* --- OPTIMUS LOCUS - STYLESHEET (REVAMPED IDENTITY) --- */

/* --- Variáveis CSS Globais --- */
:root {
    /* Cores Principais (Mantidas e Refinadas) */
    --primary-color: #55a69d; /* Levemente ajustado para um tom mais rico de teal */
    --primary-dark-color: #43837a;
    --primary-light-color: #e8f3f2; /* Tom pastel para fundos suaves */
    --primary-rgb: 85, 166, 157;

    --secondary-color: #f39c12; /* Laranja mais vibrante e padrão */
    --secondary-dark-color: #c87f0e;
    --secondary-rgb: 243, 156, 18;

    /* Cores Neutras e de Suporte */
    --background-color: #f8f9fa;  /* Cinza muito claro, quase branco */
    --card-background: #ffffff;
    --card-background-alt: #fdfdfd; /* Um pouco mais quente que o branco puro para variedade */

    --text-color: #343a40; /* Cinza escuro, não preto puro, para suavidade */
    --text-light-color: #6c757d; /* Cinza médio para texto secundário */
    --text-extra-light-color: #adb5bd; /* Cinza claro para metadados */

    --border-color: #dee2e6; /* Cinza claro para bordas sutis */
    --border-color-strong: #ced4da;

    --danger-color: #e74c3c;
    --danger-dark-color: #c0392b;
    --success-color: #2ecc71; /* Verde mais vibrante para sucesso */
    --success-dark-color: #27ae60;

    /* Cores para Status (Novas e refinadas para melhor contraste e apelo) */
    --color-status-pending: #ffc107;    /* Amarelo - Mantido */
    --color-status-analysis: #007bff;   /* Azul vibrante */
    --color-status-progress: #17a2b8;   /* Ciano */
    --color-status-resolved: #28a745;   /* Verde sucesso (diferente do --success-color geral se precisar) */
    --color-status-rejected: #dc3545;   /* Vermelho perigo (diferente do --danger-color geral se precisar) */

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.12);
    --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.08);

    /* Tipografia */
    --font-sans: 'Inter', 'Roboto', sans-serif; /* Inter como primária, Roboto como fallback */
    --font-logo: 'FUTRST', 'Roboto', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Transições */
    --transition-fast: all 0.15s ease-in-out;
    --transition-std: all 0.25s ease-in-out;
    --transition-slow: all 0.4s ease-in-out;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-pill: 50px;
}

/* --- Google Fonts Import (Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Definição de Fonte Personalizada (FUTRST) --- */
@font-face {
  font-family: 'FUTRST';
  src: url('fonts/FUTRST.TTF') format('truetype');
  font-weight: normal; /* Geralmente fontes display como esta são usadas em um peso */
  font-style: normal;
}

/* --- Reset e Estilos Globais --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-normal);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--background-color); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: var(--border-radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark-color); }
* { scrollbar-width: thin; scrollbar-color: var(--primary-color) var(--background-color); }

/* --- Tipografia de Cabeçalho --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 0.75em; /* Espaçamento padrão abaixo dos cabeçalhos */
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark-color); text-decoration: underline; }

/* --- Cabeçalho --- */
header {
    background-color: var(--card-background); /* Header branco para um look mais clean */
    color: var(--text-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm); /* Sombra mais sutil */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-title { display: flex; align-items: center; gap: 0.75rem; }
header img { width: 7rem; height: auto; } /* Logo pode ser um pouco menor e sem border-radius se for PNG transparente */
header h1 {
    font-family: var(--font-logo);
    font-size: 1.8rem; /* Um pouco menor para elegância */
    color: var(--primary-color); /* Cor do H1 do logo na primária */
    margin: 0;
    font-weight: var(--font-weight-bold); /* Se FUTRST tiver pesos */
    letter-spacing: 0.5px;
}
.user-info { display: flex; align-items: center; gap: 0.75rem; }
.user-info span { font-weight: var(--font-weight-medium); font-size: 0.9rem; color: var(--text-light-color); }

/* --- Botões Genéricos --- */
.btn {
    position: relative;
    overflow: hidden;
    padding: 0.65rem 1.25rem; /* Padding ajustado */
    border: 1px solid transparent;
    border-radius: var(--border-radius-md); /* Raio de borda padrão */
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-std);
    text-decoration: none;
    display: inline-flex; /* Para alinhar ícones se houver */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-xs);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }
}
.btn:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.4); /* Outline mais sutil */
    outline-offset: 1px;
    box-shadow: var(--shadow-sm);
}
.btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: var(--shadow-inset);
    transition-duration: 0.05s;
}

.btn-primary { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background-color: var(--primary-dark-color); border-color: var(--primary-dark-color); } }
.btn-primary:focus-visible { outline-color: var(--primary-dark-color); }

.btn-secondary { background-color: var(--secondary-color); color: white; border-color: var(--secondary-color); }
@media (hover: hover) and (pointer: fine) { .btn-secondary:hover { background-color: var(--secondary-dark-color); border-color: var(--secondary-dark-color); } }
.btn-secondary:focus-visible { outline-color: var(--secondary-dark-color); }

.btn-danger { background-color: var(--danger-color); color: white; border-color: var(--danger-color); }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background-color: var(--danger-dark-color); border-color: var(--danger-dark-color); } }
.btn-danger:focus-visible { outline-color: var(--danger-dark-color); }

.btn-outline { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background-color: var(--primary-light-color); color: var(--primary-dark-color); box-shadow: none; } }
.btn-outline:focus-visible { background-color: var(--primary-light-color); }

.btn-outline.btn-secondary { color: var(--secondary-color); border-color: var(--secondary-color); }
@media (hover: hover) and (pointer: fine) { .btn-outline.btn-secondary:hover { background-color: rgba(var(--secondary-rgb), 0.1); color: var(--secondary-dark-color); } }
.btn-outline.btn-secondary:focus-visible { background-color: rgba(var(--secondary-rgb), 0.1); }

/* Ripple (opcional, mas pode ser mantido e refinado) */
.ripple { position: absolute; border-radius: 50%; background-color: rgba(255, 255, 255, 0.35); transform: scale(0); animation: ripple-animation 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); pointer-events: none; opacity: 1; }
@keyframes ripple-animation { to { transform: scale(4.5); opacity: 0; } }

/* --- Main Content --- */
main { flex-grow: 1; padding: 2rem; max-width: 1200px; margin: 0 auto; width: 100%; } /* Sem margem superior se header é sticky */
.section { display: none; padding: 1.5rem 0; }
.section.active { display: block; animation: fadeInSection 0.5s ease-out forwards; }

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Landing Section --- */
#landing-section {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--card-background); /* Fundo mais clean */
    /* Optional: um gradiente sutil se desejado
    background: linear-gradient(145deg, var(--primary-light-color), var(--card-background) 60%); */
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 760px;
    margin: 2rem auto;
}
.landing-content h2 {
    font-family: var(--font-sans); /* Manter consistência com outros H2s */
    font-size: 2.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color); /* Cor primária no título */
    margin-bottom: 1rem;
}
.landing-content p {
    font-size: 1.1rem;
    color: var(--text-light-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.landing-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.landing-actions .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; min-width: 160px; }
#view-reports-btn-landing { /* Deixa como secondary, ou primário se for a ação principal */
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
@media (hover: hover) and (pointer: fine) {
    #view-reports-btn-landing:hover {
        background-color: var(--secondary-dark-color);
        border-color: var(--secondary-dark-color);
    }
}


/* --- Auth Section --- */
#auth-section {
    background-color: var(--card-background);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 420px;
    margin: 2.5rem auto;
    text-align: center;
}
#auth-section h2 {
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    font-size: 1.75rem; /* Tamanho consistente com H2 de outras seções internas */
    font-weight: var(--font-weight-semibold);
}
#auth-section form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { margin-bottom: 0.5rem; /* Adiciona espaço extra se precisar */ }
.form-group label {
    display: block; text-align: left; margin-bottom: 0.4rem;
    font-weight: var(--font-weight-medium); font-size: 0.85rem;
    color: var(--text-light-color);
}
#auth-section input[type="email"],
#auth-section input[type="text"],
#auth-section input[type="password"] {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.95rem; width: 100%;
    transition: var(--transition-fast);
    background-color: var(--background-color); /* Input field com fundo levemente diferente */
}
#auth-section input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    background-color: var(--card-background);
}
#auth-section button[type="submit"] { padding: 0.75rem 1rem; font-size: 1rem; margin-top: 0.5rem; }
#auth-message { font-size: 0.85rem; font-weight: var(--font-weight-medium); min-height: 18px; margin-top: 0.8rem;}
.toggle-auth { margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-light-color); }
.toggle-auth a { color: var(--secondary-color); font-weight: var(--font-weight-medium); }
.toggle-auth a:hover, .toggle-auth a:focus { color: var(--secondary-dark-color); }
.section-navigation { margin-top: 2rem; margin-bottom: 1rem; /* Ajustado */ }
.section-navigation .btn-outline { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* --- Dashboard Section --- */
#dashboard-section h2 { /* Título da seção principal */
    font-family: var(--font-sans);
    margin-bottom: 0; /* Ajustado pelo .dashboard-actions */
    color: var(--text-color);
    font-size: 1.8rem; /* Maior e mais proeminente */
    font-weight: var(--font-weight-bold);
}
.dashboard-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
#post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.post-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-std), box-shadow var(--transition-std);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0; transform: translateY(20px); /* Para animação de entrada */
    border: 1px solid var(--border-color); /* Borda sutil */
}
.post-card-enter-animation { animation: postCardEnter 0.4s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes postCardEnter { to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) and (pointer: fine) {
    .post-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: var(--shadow-lg);
    }
}
.post-card:focus-within {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.post-card h3 {
    font-family: var(--font-sans);
    color: var(--text-color);
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.35;
    letter-spacing: 0.1px;
    word-break: break-word;
}
.post-card-content-wrapper { flex-grow: 1; display: flex; flex-direction: column; }
.post-card-footer {
    margin-top: auto; /* Empurra para baixo */
    padding-top: 1rem; /* Espaço antes do footer */
    border-top: 1px solid var(--border-color); /* Linha divisória sutil */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem; /* Espaço do conteúdo para o footer */
}
.post-card p { margin-bottom: 0.4rem; color: var(--text-light-color); font-size: 0.85rem; line-height: 1.4; }
.post-card p strong { color: var(--text-color); font-weight: var(--font-weight-medium); }
.post-card small { font-size: 0.75rem; color: var(--text-extra-light-color); }

.status {
    font-weight: var(--font-weight-semibold);
    padding: 0.35rem 0.8rem; /* Ligeiramente menor */
    border-radius: var(--border-radius-pill); /* Mais arredondado */
    font-size: 0.65rem; /* Menor para ser mais sutil */
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-width: 1px; /* Borda mais fina */
    border-style: solid;
    text-align: center;
    min-width: 90px;
    transition: var(--transition-fast);
}
/* Status com fundos claros e texto da cor principal */
.status-pendente { background-color: rgba(255, 193, 7, 0.15); color: #b38600; border-color: #b38600; } /* Darker yellow text for better contrast */
.status-em_analise { background-color: rgba(0, 123, 255, 0.15); color: var(--color-status-analysis); border-color: var(--color-status-analysis); }
.status-em_progresso { background-color: rgba(23, 162, 184, 0.15); color: var(--color-status-progress); border-color: var(--color-status-progress); }
.status-resolvido { background-color: rgba(40, 167, 69, 0.15); color: var(--color-status-resolved); border-color: var(--color-status-resolved); }
.status-rejeitado { background-color: rgba(220, 53, 69, 0.15); color: var(--color-status-rejected); border-color: var(--color-status-rejected); }

.sensitive-indicator {
    font-size: 0.65rem;
    font-weight: var(--font-weight-bold);
    color: var(--danger-color);
    margin-right: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.2em 0.4em;
    border: 1px solid var(--danger-color);
    border-radius: var(--border-radius-sm);
    background-color: rgba(231, 76, 60, 0.1);
    display: inline-block; /* Garante que fica na linha */
}
.sensitive-indicator-note, .sensitive-indicator-detail { /* Similar styling */
    font-size: 0.7rem; font-weight: bold; color: var(--danger-color);
    padding: 0.1em 0.3em; border: 1px solid var(--danger-color);
    border-radius: 4px; background-color: color-mix(in srgb, var(--danger-color) 10%, transparent);
}

.no-posts {
    text-align: center; padding: 2.5rem 1.5rem; color: var(--text-light-color); font-size: 1rem;
    background-color: var(--card-background); border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm); grid-column: 1 / -1;
    border: 2px dashed var(--border-color);
}
.no-posts:before { content: '🗂️'; font-size: 2rem; display: block; margin-bottom: 0.8rem; opacity: 0.7; }

/* --- FAQ Section --- */
#faq-section {
    background-color: var(--card-background);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 850px;
    margin: 2rem auto;
}
.faq-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
#faq-section h2 {
    color: var(--text-color); /* Cor do texto padrão para H2 de seção */
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; } /* Menor gap */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md); /* Consistente com outros cards */
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-xs); /* Sombra bem sutil */
}
@media (hover: hover) and (pointer: fine) { .faq-item:hover { box-shadow: var(--shadow-sm); border-color: var(--border-color-strong); } }

.faq-question {
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    padding: 1rem 1.25rem; /* Padding ajustado */
    width: 100%; border: none; text-align: left; outline: none;
    font-family: var(--font-sans); font-size: 1.05rem; /* Ligeiramente maior */
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
    display: flex; justify-content: space-between; align-items: center;
}
@media (hover: hover) and (pointer: fine) {
    .faq-question:hover {
        background-color: var(--primary-light-color);
        color: var(--primary-dark-color);
    }
}
.faq-question.active {
    background-color: var(--primary-color);
    color: white;
}
.faq-question .faq-icon {
    font-size: 1.1rem; /* Ícone um pouco menor */
    font-weight: bold; /* Normal pode ser muito fino */
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1); /* Transição mais suave */
    color: var(--primary-color);
}
.faq-question.active .faq-icon {
    transform: rotate(45deg); /* Rotação 45deg para um 'x' mais elegante */
    color: white;
}
.faq-answer {
    padding: 0 1.25rem; /* Mesmo padding horizontal que a pergunta */
    background-color: var(--card-background-alt); /* Fundo sutilmente diferente */
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out;
}
.faq-answer p {
    padding: 1rem 0; /* Padding vertical para o conteúdo da resposta */
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-light-color);
    margin-bottom: 0; /* P já tem margem, ajuste se necessário */
}
.faq-answer p:last-child { padding-bottom: 1.25rem; } /* Espaço extra no final */
.faq-answer a { color: var(--secondary-color); font-weight: var(--font-weight-medium); }
.faq-answer a:hover, .faq-answer a:focus { color: var(--secondary-dark-color); }
.faq-answer ul { list-style-position: inside; padding-left: 0.5rem; margin-bottom: 1rem; }
.faq-answer ul li { margin-bottom: 0.5rem; }

/* --- Modal Styles --- */
.modal {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(34, 47, 62, 0.75); /* Mais escuro */
    align-items: center; justify-content: center; padding: 1rem;
}
.modal-content {
    background-color: var(--card-background);
    padding: 1.75rem 2.25rem;
    border-radius: var(--border-radius-lg); /* Consistente */
    box-shadow: var(--shadow-xl); /* Sombra mais pronunciada para modal */
    width: 100%; max-width: 600px; /* Ligeiramente menor como padrão */
    position: relative;
    animation: modalOpen 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: calc(100vh - 2rem); overflow-y: auto;
    z-index: 1001;
}
@keyframes modalOpen { from { opacity: 0; transform: translateY(-20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-close {
    color: var(--text-extra-light-color); /* Mais claro */
    position: absolute; top: 0.8rem; right: 1rem; /* Ajuste de posição */
    font-size: 1.8rem; font-weight: var(--font-weight-light);
    line-height: 1; cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
    padding: 0.2rem; border-radius: 50%;
}
.modal-close:hover, .modal-close:focus {
    color: var(--danger-color);
    transform: rotate(90deg);
    background-color: rgba(var(--danger-rgb, 231, 76, 60), 0.1); /* Fundo sutil no hover */
    outline: none;
}
.modal h2 { /* H2 dentro de modais */
    font-family: var(--font-sans);
    margin-bottom: 1.25rem;
    color: var(--primary-color); /* Cor primária */
    font-size: 1.6rem; /* Ligeiramente menor */
    font-weight: var(--font-weight-semibold);
    line-height: 1.25;
    padding-right: 2.5rem; /* Espaço para o X */
}
.modal form { display: flex; flex-direction: column; gap: 1rem; }
.modal label {
    font-weight: var(--font-weight-medium); margin-bottom: 0.3rem;
    display: block; color: var(--text-light-color); /* Cinza médio para labels */
    font-size: 0.85rem;
}
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="url"],
.modal textarea,
.modal select {
    padding: 0.7rem 0.9rem; /* Consistente com auth inputs */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem; width: 100%; resize: vertical;
    transition: var(--transition-fast);
    background-color: var(--background-color); /* Fundo sutil nos inputs */
}
.modal input:focus, .modal textarea:focus, .modal select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    background-color: var(--card-background);
}
.modal select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.22 6.03a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 0 0-1.06-1.06L8 8.94 4.22 6.03Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.1em;
    padding-right: 2.25rem;
}
.modal button[type="submit"] { margin-top: 0.8rem; } /* Menor margem superior */

/* Detalhes do Post Modal */
#post-detail-modal .modal-content { max-width: 700px; }
#post-detail-modal h2#detail-title {
    font-family: var(--font-sans); color: var(--text-color);
    margin-bottom: 0.4rem; font-size: 1.75rem; /* Maior e mais peso */
    font-weight: var(--font-weight-bold); word-break: break-word;
}
#post-detail-modal p { margin-bottom: 0.2rem; font-size: 0.85rem; color: var(--text-light-color); }
#post-detail-modal p small { display: block; margin-bottom: 0.6rem; font-size: 0.9em; }
#post-detail-modal p strong { color: var(--text-color); font-weight: var(--font-weight-medium); }
#post-detail-modal #detail-description {
    font-size: 0.95rem; line-height: 1.65; color: var(--text-color);
    margin: 1.25rem 0; padding: 1rem;
    background-color: var(--primary-light-color); /* Usar cor primária clara */
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color); /* Destaque */
    white-space: pre-wrap; /* Preservar quebras de linha */
}
#post-detail-modal .detail-status {
    margin: 0.8rem 0 1.25rem 0; font-size: 0.8rem; /* Status menor e mais espaçado */
    padding: 0.5rem 1rem; min-width: 110px;
}
#post-detail-modal img {
    max-width: 100%; height: auto; border-radius: var(--border-radius-md);
    margin: 1rem 0 1.5rem 0; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color); object-fit: cover;
}
#organization-actions, .responses-section {
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}
#organization-actions h3, .responses-section h3 {
    font-family: var(--font-sans); font-size: 1.15rem; /* H3 um pouco menor */
    color: var(--text-color); /* Cor de texto padrão para H3 interno */
    margin-bottom: 0.8rem; font-weight: var(--font-weight-semibold);
}
.response-item {
    background-color: var(--card-background-alt); /* Fundo levemente diferente */
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md); margin-bottom: 0.75rem;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-xs);
}
.response-item p:first-of-type { margin-bottom: 0.15rem; }
.response-item p:first-of-type strong {
    color: var(--secondary-color); /* Destaque para o autor da resposta */
    font-size: 0.95rem; font-weight: var(--font-weight-semibold);
}
.response-item p:not(:first-of-type) { /* Corpo da resposta */
    font-size: 0.9rem; color: var(--text-light-color);
    line-height: 1.6; margin-bottom: 0.4rem; white-space: pre-wrap;
}
.response-item small { /* Timestamp */
    font-size: 0.75rem; color: var(--text-extra-light-color);
    display: block; margin-top: 0.4rem;
}
#no-responses-message {
    text-align: center; color: var(--text-light-color);
    padding: 1rem; font-style: italic; font-size: 0.9rem;
}
/* Specific for delete post modal */
#confirm-delete-modal .modal-content { max-width: 480px; }
#confirm-delete-modal h2 { color: var(--danger-color); font-size: 1.5rem; }
#confirm-delete-message { font-size: 0.95rem; line-height: 1.6; color: var(--text-light-color); }
.confirm-delete-actions { margin-top: 1.5rem; }


/* --- Footer --- */
footer {
    margin-top: auto;
    background-color: var(--text-color); /* Footer escuro para contraste */
    color: var(--primary-light-color); /* Texto claro no footer escuro */
    text-align: center;
    padding: 1.25rem 1rem; /* Padding ajustado */
    font-size: 0.85rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.08);
}
footer p { margin: 0; letter-spacing: 0.3px; }

/* --- Toast Notifications --- */
#toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 12px; pointer-events: none;
}
.toast-notification {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 12px 18px; /* Padding ajustado */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg); /* Sombra mais forte para "flutuar" */
    display: flex; align-items: center; gap: 10px;
    opacity: 0; transform: translateX(100%) scale(0.95); /* Começa mais à direita e menor */
    transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 280px; max-width: 360px;
    border-left: 5px solid; /* Borda mais grossa */
    pointer-events: auto;
}
.toast-notification.show { opacity: 1; transform: translateX(0) scale(1); }

.toast-notification.success { border-left-color: var(--success-color); }
.toast-notification.success .toast-icon { color: var(--success-color); }
.toast-notification.error { border-left-color: var(--danger-color); }
.toast-notification.error .toast-icon { color: var(--danger-color); }

.toast-icon { font-size: 1.4rem; line-height: 1; }
.toast-message { font-size: 0.9rem; font-weight: var(--font-weight-medium); line-height: 1.35; }


/* --- Responsividade --- */
@media (max-width: 992px) {
    main { padding: 1.5rem; }
    #post-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
    .post-card { padding: 1.25rem; }
    .post-card h3 { font-size: 1.1rem; }
    .landing-content h2 { font-size: 2.2rem; }
    #faq-section h2, #dashboard-section h2, #auth-section h2 { font-size: 1.7rem; }
    .modal-content { padding: 1.5rem 2rem; }
    .modal h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    header {
        flex-direction: column; padding: 0.8rem 1.25rem; gap: 0.6rem;
        text-align: center;
    }
    header img { width: 6.5rem; }
    header h1 { font-size: 1.6rem; }
    .user-info { margin-top: 0.4rem; }
    main { padding: 1.25rem; margin: 0 auto; } /* Sem margem superior se header não tem altura fixa e main flui */
    .landing-content h2 { font-size: 1.9rem; }
    .landing-content p { font-size: 1rem; }
    .landing-actions .btn { width: 100%; max-width: 280px; }
    #dashboard-section h2, #auth-section h2, #faq-section h2 { font-size: 1.6rem; }
    .dashboard-actions { flex-direction: column; align-items: stretch; }
    .dashboard-actions h2 { text-align: center; margin-bottom: 1.25rem; }
    #auth-section { padding: 1.75rem 1.25rem; }
    .modal-content {
      padding: 1.25rem;
      max-width: calc(100% - 1.5rem); /* Mais espaço nas laterais */
      margin: 0.75rem; /* Margem para evitar colar nas bordas da tela */
      max-height: calc(100vh - 1.5rem);
    }
    .modal h2 { font-size: 1.45rem; }
    .faq-question { font-size: 0.95rem; padding: 0.8rem 1rem; }
    .faq-answer p { font-size: 0.85rem; }
    .status { font-size: 0.6rem; padding: 0.3rem 0.7rem; }
    #toast-container { top: 10px; right: 10px; left: 10px; width: auto; align-items: center; }
    .toast-notification { min-width: 0; width: 100%; max-width: calc(100% - 20px); }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    header { padding: 0.75rem 1rem; gap: 0.4rem; }
    header img { width: 6rem; }
    header h1 { font-size: 1.4rem; }
    main { padding: 1rem; }
    .landing-content h2 { font-size: 1.7rem; }
    .landing-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .landing-actions { gap: 0.75rem; }
    #post-list { grid-template-columns: 1fr; gap: 1rem; }
    .post-card { padding: 1rem; }
    .post-card h3 { font-size: 1.05rem; }
    .status { font-size: 0.55rem; padding: 0.25rem 0.6rem; letter-spacing: 0.4px; }
    #auth-section { padding: 1.25rem 1rem; }
    #auth-section h2 { font-size: 1.45rem; }
    .modal-content { padding: 1rem; }
    .modal h2 { font-size: 1.3rem; }
    .modal label, .modal input, .modal textarea, .modal select { font-size: 0.85rem; }
    .modal button[type="submit"] { font-size: 0.9rem; padding: 0.55rem 1rem; }
    .btn { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
    footer { padding: 0.8rem; font-size: 0.75rem; }
}