/* ============================================================
   Central de Comunicação v2 — visual reaproveitado do app atual
   (minha-central-de-comunicacao.html) + telas de login/setup.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, sans-serif; background: #FAF7F1; color: #241F1B; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: #D8CFC0; border-radius: 8px; }
.serif { font-family: 'Fraunces', serif; }
h1,h2,h3 { font-family:'Fraunces',serif; font-weight:600; margin:0; }
a { color:#96751D; }
.hidden { display:none !important; }

.chip { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid #D8CFC0; background: transparent; color: #5B5148; cursor: pointer; font-weight: 500; transition: all .15s ease; }
.chip.active { background: #241F1B; border-color: #241F1B; color: #fff; }
select, input[type=text], input[type=email], input[type=date], input[type=datetime-local] { font-size: 12px; padding: 5px 8px; border-radius: 7px; border: 1px solid #D8CFC0; background: #fff; color: #5B5148; font-family: 'Inter', sans-serif; }
textarea:focus, input:focus, select:focus { outline: 2px solid #96751D; outline-offset: 1px; }

.card { border-radius: 10px; padding: 12px 13px; transition: transform .12s ease, box-shadow .12s ease, background-color .3s ease, border-color .3s ease; cursor: grab; }
.card:active { cursor: grabbing; }
.card.dragging { opacity: 0.4; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36,31,27,0.12); }
.col-dropzone { transition: background-color .15s ease; border-radius: 12px; }
.col-dropzone.dragover { background-color: rgba(44,86,81,0.08); }
.navbtn { display:flex; align-items:center; justify-content:center; width:26px; height:22px; border-radius:6px; border:1px solid #ECE4D6; background:#fff; color:#8C8172; cursor:pointer; font-size:13px; }
.navbtn:disabled { background:#F7F3EA; color:#D8CFC0; cursor:default; }
.btn-outline { display:inline-flex; align-items:center; gap:6px; background:transparent; border:1px solid #D8CFC0; border-radius:8px; padding:7px 12px; font-size:12px; color:#8C8172; cursor:pointer; font-family:'Inter',sans-serif; }
.btn-outline.dark { background:#241F1B; border-color:#241F1B; color:#fff; }
.btn-gold { display:inline-flex; align-items:center; gap:6px; background:#96751D; border:none; border-radius:8px; padding:9px 15px; font-size:12.5px; font-weight:700; color:#fff; cursor:pointer; font-family:'Inter',sans-serif; }

.overlay { position: fixed; inset: 0; background: rgba(36,31,27,0.35); display:flex; justify-content:flex-end; z-index:50; }
.drawer { width: min(560px, 100%); background: #FFFDF9; height: 100%; overflow-y: auto; padding: 24px; box-shadow: -8px 0 30px rgba(0,0,0,0.15); }
.drawer textarea, .drawer select, .drawer input[type=text], .drawer input[type=datetime-local] { width: 100%; font-family:'Inter',sans-serif; }
.drawer textarea { font-size: 13.5px; line-height: 1.55; padding: 12px; border-radius: 10px; border: 1px solid #E7DFD1; background: #fff; resize: vertical; color: #241F1B; }

.status-btn { font-size: 11px; padding: 6px 10px; border-radius: 7px; cursor: pointer; border: 1px solid #E7DFD1; background: transparent; color: #8C8172; font-weight: 600; font-family:'Inter',sans-serif; }
.status-btn.active { background: #2C5651; border-color: #2C5651; color: #fff; }
.check-box { width:18px; height:18px; border-radius:5px; flex-shrink:0; border:1.5px solid #D8CFC0; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff; }
.check-label { display:flex; align-items:center; gap:10px; cursor:pointer; font-size:13.5px; margin-bottom:8px; }
.legend-block { border-left: 2px solid #ccc; padding-left: 10px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #241F1B; color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 12px; z-index: 100; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.toast.show { opacity: 1; }

/* topbar + nav de seções */
.topbar { padding:24px 28px 14px; border-bottom:1px solid #E7DFD1; }
.topbar-row { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.topbar h1 { font-size:26px; font-weight:600; letter-spacing:-0.01em; }
.topbar .sub { font-size:13px; color:#8C8172; margin-top:2px; }
.topbar-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.mini-lbl { font-size:10px; color:#8C8172; text-transform:uppercase; letter-spacing:.08em; }

.topnav { display:flex; flex-wrap:wrap; gap:6px; padding:16px 28px 0; }
.topnav button { display:flex; align-items:center; gap:7px; padding:9px 15px; border-radius:10px 10px 0 0; border:1px solid #E7DFD1; border-bottom:none; background:#F2ECE0; color:#8C8172; cursor:pointer; font-size:13px; font-weight:600; font-family:'Inter',sans-serif; }
.topnav button.active { background:#FAF7F1; color:#241F1B; }

.section { padding: 22px 28px 60px; }
.lbl { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#96751D; margin-bottom:5px; }
.fld { display:block; margin-bottom:13px; }
.fld input[type=text], .fld input[type=email], .fld input[type=date], .fld textarea, .fld select { width:100%; font-family:'Inter',sans-serif; font-size:13.5px; color:#241F1B; background:#fff; border:1px solid #D8CFC0; border-radius:9px; padding:9px 11px; line-height:1.55; }
.fld textarea { resize:vertical; min-height:62px; }
.fld small { display:block; color:#8C8172; font-size:11px; margin-top:4px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:760px){ .grid2 { grid-template-columns:1fr; } }
.panel { background:#fff; border:1px solid #E7DFD1; border-radius:14px; padding:18px; }
.panel + .panel { margin-top:14px; }
.panel h2 { font-size:16px; margin-bottom:3px; }
.panel .hint { color:#8C8172; font-size:12.5px; margin:0 0 14px; }
.subtabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
.subtab { padding:6px 12px; border-radius:999px; border:1px solid #D8CFC0; background:transparent; color:#5B5148; cursor:pointer; font-size:12px; font-weight:600; font-family:'Inter',sans-serif; }
.subtab.active { background:#241F1B; border-color:#241F1B; color:#fff; }
.libgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(265px,1fr)); gap:12px; }
.libcard { border:1px solid #E7DFD1; border-radius:12px; padding:14px; background:#FFFDF9; }
.libcard h3 { font-size:14px; display:flex; align-items:center; gap:7px; }
.libcard .cat { font-size:10px; text-transform:uppercase; letter-spacing:.07em; color:#96751D; font-weight:700; margin:3px 0 7px; }
.libcard p { margin:0; font-size:12.5px; color:#5B5148; white-space:pre-wrap; }
.libcard .q { margin-top:8px; font-size:12px; color:#8C8172; font-style:italic; }
.libcard .acts { margin-top:10px; display:flex; gap:6px; flex-wrap:wrap; }
.briefbox { white-space:pre-wrap; font-family:ui-monospace,'SF Mono',Menlo,monospace; font-size:12px; line-height:1.6; background:#FAF7F1; border:1px solid #D8CFC0; border-radius:12px; padding:16px; max-height:420px; overflow:auto; color:#241F1B; }
.tag { display:inline-flex; align-items:center; font-size:10px; font-weight:700; padding:2px 7px; border-radius:999px; letter-spacing:.02em; }
.tag.camp { background:#241F1B; color:#fff; }
.tag.fase { background:#EFE9DD; color:#5B5148; }
.empty { text-align:center; padding:40px 16px; border:1px dashed #D8CFC0; border-radius:12px; color:#8C8172; font-size:13px; }

.asset-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; margin-top:8px; }
.asset-item { border:1px solid #E7DFD1; border-radius:10px; padding:8px; background:#fff; font-size:11px; color:#5B5148; word-break:break-all; }
.asset-item img { width:100%; border-radius:6px; display:block; margin-bottom:6px; }

/* ---------- login / setup ---------- */
.setup { min-height:100vh; display:grid; place-items:center; padding:24px; }
.setup-card { width:min(520px,100%); background:#fff; border:1px solid #E7DFD1; border-radius:20px; padding:32px; box-shadow:0 12px 40px rgba(36,31,27,.10); }
.setup-card .kicker { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#96751D; }
.setup-card h1 { font-size:24px; margin:10px 0 6px; }
.setup-card p { color:#8C8172; line-height:1.55; font-size:13.5px; margin:0 0 6px; }
.setup-note { background:#FBF1DC; color:#694b17; border-radius:10px; padding:11px 12px; font-size:12.5px; margin-top:12px; }
.field { display:flex; flex-direction:column; gap:5px; margin-top:14px; }
.field label { font-size:12px; font-weight:700; }
.field input { width:100%; border:1px solid #D8CFC0; border-radius:10px; background:#fff; padding:11px 12px; color:#241F1B; font-size:13.5px; }
.button-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:18px; }
.primary { border:1px solid #96751D; background:#96751D; color:#fff; border-radius:9px; padding:10px 14px; font-weight:700; font-size:12.5px; cursor:pointer; font-family:'Inter',sans-serif; }
.secondary { border:1px solid #D8CFC0; background:#fff; color:#5B5148; border-radius:9px; padding:10px 14px; font-weight:700; font-size:12.5px; cursor:pointer; font-family:'Inter',sans-serif; }

@media (max-width:760px){
  .topbar, .topnav, .section { padding-left:16px; padding-right:16px; }
}
