/* =========================================================
   GEPLANNER / ESTÁGIOFÁCIL - MASTER TEMPLATE VISUAL
   ========================================================= */

/* Base e Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0a2a1f; font-family: 'Segoe UI', Roboto, sans-serif; padding: 20px; color: #333; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }

.container { width: 100%; max-width: 900px; background: #fffaf0; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); margin-bottom: 20px; }

/* Cabeçalho Tecnológico Global */
.header-brand { background: linear-gradient(135deg, #0a2a1f, #1a5e4a); padding: 30px 20px; text-align: center; position: relative; }
.header-brand h1 { color: #f5a623; margin: 0; font-size: 24px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; }
.header-line { width: 80px; height: 3px; background: #f5a623; margin: 15px auto 0; border-radius: 2px; }

.btn-voltar { position: absolute; left: 20px; top: 25px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 8px 15px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-voltar:hover { background: #f5a623; color: #0a2a1f; border-color: #f5a623; }

/* Painéis de Controles e Ações */
.painel-controle, .painel-preenchimento { background: #ffffff; padding: 25px; border-bottom: 2px dashed #cbd5e0; text-align: center; }
.painel-controle h3, .painel-preenchimento h3 { color: #1a5e4a; margin-bottom: 15px; text-transform: uppercase; font-size: 16px; }
.painel-controle p { font-size: 13px; color: #718096; margin-bottom: 20px; }

/* Botões Globais */
.btn-acao { background: linear-gradient(to right, #1a5e4a, #0a2a1f); color: #f5a623; border: none; padding: 14px 25px; border-radius: 8px; cursor: pointer; font-weight: 800; font-size: 14px; text-transform: uppercase; box-shadow: 0 4px 6px rgba(26,94,74,0.3); transition: 0.3s; margin: 5px; display: inline-block; }
.btn-acao:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(26,94,74,0.4); }
.btn-imprimir { background: #2c5282; color: #fff; }

/* Botão Visual de Assinatura */
.btn-assinar-visual { background: #f5a623; color: #0a2a1f; border: none; padding: 8px 15px; border-radius: 6px; font-weight: bold; cursor: pointer; display: inline-block; font-size: 12px; margin-top: 5px; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-assinar-visual:hover { background: #1a5e4a; color: #fff; }

/* Documento Oficial (Folha A4) */
.area-documento { background: #edf2f7; padding: 40px; }
.folha-a4 { background: #fff; padding: 60px 70px; border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); color: #000; line-height: 1.6; font-family: 'Times New Roman', Times, serif; font-size: 15px; text-align: justify; max-width: 210mm; min-height: 297mm; margin: 0 auto; position: relative; }

.timbre { text-align: center; margin-bottom: 30px; font-weight: bold; text-transform: uppercase; font-size: 14px; border-bottom: 2px solid #0a2a1f; padding-bottom: 15px; }
.timbre h1 { font-size: 20px; color: #0a2a1f; margin-bottom: 5px; }
.timbre p { font-size: 12px; color: #4a5568; letter-spacing: 1px; }
.titulo-doc { text-align: center; font-weight: bold; font-size: 16px; margin-bottom: 30px; text-transform: uppercase; text-decoration: underline; }
.texto-corrido { text-indent: 50px; margin-bottom: 15px; text-align: justify; }

/* Inputs dentro do Documento A4 */
.input-inline { border: none; border-bottom: 1px dashed #1a5e4a; background: rgba(26, 94, 74, 0.03); font-family: 'Times New Roman', Times, serif; font-size: 15px; padding: 2px 5px; transition: 0.3s; color: #000; display: inline-block; }
.input-inline:focus { outline: none; background: #e6fffa; border-bottom: 1px solid #1a5e4a; }

.textarea-expansivel { width: 100%; border: none; border-bottom: 1px dashed #1a5e4a; background: rgba(26, 94, 74, 0.03); font-family: 'Times New Roman', Times, serif; font-size: 15px; padding: 10px; resize: none; overflow: hidden; min-height: 60px; transition: 0.3s; color: #000; margin-bottom: 15px; line-height: 1.5; }
.textarea-expansivel:focus { outline: none; background: #e6fffa; border-bottom: 1px solid #1a5e4a; }

/* Assinaturas Eletrônicas */
.bloco-assinaturas { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 30px; margin-top: 60px; }
.quadro-assinatura-final { text-align: center; }

/* Regras de Impressão e Geração de PDF */
@media print {
    body { background: #fff; padding: 0; }
    .container { box-shadow: none; max-width: 100%; border-radius: 0; margin: 0; }
    .header-brand, .painel-controle, .painel-preenchimento, .area-documento { padding: 0; background: transparent; }
    .header-brand, .painel-controle, .painel-preenchimento, .btn-acao, .btn-imprimir, .btn-assinar-visual, .instrucao { display: none !important; }
    .folha-a4 { box-shadow: none; padding: 0; width: 100%; max-width: 100%; min-height: auto; }
    .input-inline, .textarea-expansivel { border: none !important; background: transparent !important; resize: none; color: #000 !important; padding: 0; }
}