/* assets/style.css */
:root{
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --warning: #b45309;
  --danger: #dc2626;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--primary); text-decoration: none; }
a:hover{ text-decoration: underline; }

.topbar{
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand{
  font-weight: 800;
  font-size: 28px;
  color: #334155;
  letter-spacing: 0.2px;
}

.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 18px 80px;
}

.page-title{
  text-align: center;
  font-size: 44px;
  margin: 30px 0 18px;
  letter-spacing: -0.5px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.card-subtitle{
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
}

.hr{
  height: 1px;
  background: var(--line);
  margin: 18px 0 22px;
}

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

label{
  font-weight: 700;
  font-size: 14px;
  color: #0b1220;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select{
  width: 100%;
  border: 1px solid #dbe2ef;
  background: #fff;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 16px;
  outline: none;
}
textarea{ min-height: 180px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(37,99,235,0.6);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.help, .note{
  font-size: 13px;
  color: var(--muted);
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.badge.success{
  background: rgba(22,163,74,0.12);
  border-color: rgba(22,163,74,0.35);
  color: #0f5b2a;
}

.badge.warning{
  background: rgba(180,83,9,0.12);
  border-color: rgba(180,83,9,0.35);
  color: #7a3e08;
}

.badge.danger{
  background: rgba(220,38,38,0.10);
  border-color: rgba(220,38,38,0.35);
  color: #7f1d1d;
}

.meta{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.meta-line{
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #111827;
}

.meta-line b{ color: #0f172a; }

.btn{
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .03s ease, filter .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.btn:active{ transform: translateY(1px); }

.btn.primary{ background: var(--primary); color: #fff; }
.btn.primary:hover{ background: var(--primary-dark); text-decoration: none; }

.btn.gray{ background: #737b8b; color: #fff; }
.btn.gray:hover{ filter: brightness(0.95); text-decoration: none; }

.btn.outline{ background: transparent; border: 1px solid #cbd5e1; color: #0f172a; }
.btn.outline:hover{ background: #f8fafc; text-decoration: none; }

.btn-row{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.checkbox{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 12px;
  margin: 18px 0 6px;
}

.checkbox input{
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.notice{
  padding: 14px 16px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.22);
  border-radius: 12px;
  color: #0b3aa8;
}

.notice strong{ color: #072f8e; }

.small-link{
  text-align: center;
  margin-top: 12px;
  font-weight: 700;
}

.timeline{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.timeline-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}

.avatar{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.timeline-head{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag{
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid var(--line);
}

.tag.green{
  background: rgba(22,163,74,0.12);
  border-color: rgba(22,163,74,0.35);
  color: #0f5b2a;
}

.timeline-date{
  color: var(--muted);
  font-weight: 700;
}

.timeline-text{
  color: #0f172a;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.footer-note{
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.alert{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(220,38,38,0.35);
  background: rgba(220,38,38,0.08);
  color: #7f1d1d;
  font-weight: 700;
  max-width: 860px;
  margin: 0 auto 14px;
}

/* Admin table support */
.table-wrapper{
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
}
table{ width: 100%; border-collapse: collapse; min-width: 980px; }
th, td{ padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th{ text-align: left; font-size: 13px; color: #334155; background: #f8fafc; position: sticky; top: 0; }
td code{ font-weight: 900; }

.status{ display: inline-flex; padding: 6px 10px; border-radius: 999px; font-weight: 900; font-size: 13px; border: 1px solid var(--line); background: #f8fafc; }
.status.novo{ background: rgba(37,99,235,0.10); border-color: rgba(37,99,235,0.25); color: #072f8e; }
.status.em_analise{ background: rgba(180,83,9,0.10); border-color: rgba(180,83,9,0.25); color: #7a3e08; }
.status.concluido{ background: rgba(22,163,74,0.12); border-color: rgba(22,163,74,0.35); color: #0f5b2a; }
.status.descartado{ background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.28); color: #7f1d1d; }

@media (max-width: 760px){
  .page-title{ font-size: 34px; }
  .row{ grid-template-columns: 1fr; }
  .btn-row{ flex-direction: column; align-items: stretch; }
  .btn{ width: 100%; }
}
.msg-admin {
    background: #eef2ff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.msg-denunciante {
    background: #f3f4f6;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.alert{
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}