/* =============================================
   olha o post – style.css
   Paleta:
   - "olha"  #2563EB (azul)
   - "o"     #111827 (quase preto)
   - "post"  #0EA5E9 (azul ciano)
   - Fundo   #F9FAFB
   - Borda   #E5E7EB
============================================= */

/* Reset e base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --azul-olha:   #2563EB;
    --preto-o:     #111827;
    --azul-post:   #0EA5E9;
    --fundo:       #F9FAFB;
    --fundo-card:  #FFFFFF;
    --borda:       #E5E7EB;
    --texto:       #111827;
    --texto-suave: #6B7280;
    --erro:        #EF4444;
    --sucesso:     #22C55E;
    --aviso:       #F59E0B;
    --radius:      10px;
    --sombra:      0 1px 4px rgba(0,0,0,0.07);
    --fonte:       'Inter', 'Segoe UI', sans-serif;
}

html, body {
    font-family: var(--fonte);
    font-size: 15px;
    color: var(--texto);
    background-color: var(--fundo);
    min-height: 100vh;
}

a {
    color: var(--azul-olha);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

/* =============================================
   Logo tipográfico
============================================= */
.logo-olha {
    color: var(--azul-olha);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo-o {
    color: var(--preto-o);
    font-weight: 400;
    margin: 0 4px;
}

.logo-post {
    color: var(--azul-post);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.login-logo {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    user-select: none;
}

.nav-logo {
    font-size: 1.3rem;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0;
}

/* =============================================
   LOGIN
============================================= */
.pagina-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--fundo);
}

.login-container {
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

/* =============================================
   LAYOUT ADMIN
============================================= */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--fundo-card);
    border-right: 1px solid var(--borda);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .nav-logo {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--texto-suave);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.sidebar-menu a:hover,
.sidebar-menu a.ativo {
    background: #EFF6FF;
    color: var(--azul-olha);
    text-decoration: none;
}

.sidebar-menu .icone {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-rodape {
    border-top: 1px solid var(--borda);
    padding-top: 1rem;
    margin-top: 1rem;
}

.sidebar-rodape a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--texto-suave);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.sidebar-rodape a:hover {
    background: #FEF2F2;
    color: var(--erro);
    text-decoration: none;
}

/* Conteúdo principal */
.conteudo {
    margin-left: 240px;
    padding: 2rem;
    flex: 1;
    max-width: calc(100vw - 240px);
}

/* =============================================
   TOPBAR (dentro do conteúdo)
============================================= */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.topbar h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--preto-o);
}

.topbar-acoes {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* =============================================
   CARDS DE RESUMO (dashboard)
============================================= */
.cards-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-resumo {
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-resumo .numero {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.card-resumo .rotulo {
    font-size: 0.85rem;
    color: var(--texto-suave);
    font-weight: 500;
}

.card-resumo.pendente .numero  { color: var(--aviso); }
.card-resumo.aprovado .numero  { color: var(--sucesso); }
.card-resumo.reprovado .numero { color: var(--erro); }
.card-resumo.total .numero     { color: var(--azul-olha); }

/* =============================================
   TABELAS
============================================= */
.tabela-container {
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--fundo);
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--texto-suave);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--borda);
}

td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--borda);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #F9FAFB;
}

/* =============================================
   BADGES DE STATUS
============================================= */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-pendente  { background: #FEF3C7; color: #92400E; }
.badge-aprovado  { background: #DCFCE7; color: #166534; }
.badge-reprovado { background: #FEE2E2; color: #991B1B; }

/* =============================================
   BOTÕES
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, background 0.15s;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.88;
    text-decoration: none;
}

.btn-primario {
    background: var(--azul-olha);
    color: #fff;
}

.btn-secundario {
    background: var(--fundo);
    color: var(--texto);
    border: 1px solid var(--borda);
}

.btn-sucesso {
    background: var(--sucesso);
    color: #fff;
}

.btn-perigo {
    background: var(--erro);
    color: #fff;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
}

/* =============================================
   FORMULÁRIOS
============================================= */
.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.1rem;
}

label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--texto);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--borda);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--fonte);
    color: var(--texto);
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--azul-olha);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-card {
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 1.75rem;
    max-width: 600px;
}

.form-acoes {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* =============================================
   ALERTAS
============================================= */
.alerta {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.alerta-erro    { background: #FEE2E2; color: #991B1B; }
.alerta-sucesso { background: #DCFCE7; color: #166534; }
.alerta-aviso   { background: #FEF3C7; color: #92400E; }
.alerta-info    { background: #EFF6FF; color: #1E40AF; }

/* =============================================
   PÁGINA DE APROVAÇÃO (cliente)
============================================= */
.pagina-aprovacao {
    min-height: 100vh;
    background: var(--fundo);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.aprovacao-header {
    margin-bottom: 2rem;
    text-align: center;
}

.aprovacao-header .logo-texto {
    font-size: 1.5rem;
}

.aprovacao-card {
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 720px;
    box-shadow: var(--sombra);
}

.aprovacao-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--preto-o);
}

.aprovacao-imagem {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--borda);
    margin-bottom: 1.5rem;
    object-fit: contain;
    max-height: 500px;
}

.aprovacao-acoes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.aprovacao-acoes .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.aprovacao-comentario {
    margin-top: 1.25rem;
}

.aprovacao-expirado,
.aprovacao-respondido {
    text-align: center;
    padding: 3rem 1rem;
}

.aprovacao-expirado h2,
.aprovacao-respondido h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.aprovacao-expirado p,
.aprovacao-respondido p {
    color: var(--texto-suave);
}

/* =============================================
   LINK DE COMPARTILHAMENTO
============================================= */
.link-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--fundo);
    border: 1px solid var(--borda);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--texto-suave);
    word-break: break-all;
}

.link-box input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.85rem;
    color: var(--texto);
    outline: none;
    padding: 0;
}

/* =============================================
   UTILITÁRIOS
============================================= */
.texto-suave  { color: var(--texto-suave); }
.texto-centro { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.flex-1 { flex: 1; }
.w-100  { width: 100%; }

/* =============================================
   RESPONSIVO
============================================= */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .conteudo {
        margin-left: 0;
        max-width: 100vw;
        padding: 1.25rem;
    }

    .cards-resumo {
        grid-template-columns: 1fr 1fr;
    }

    .aprovacao-acoes {
        flex-direction: column;
    }
}