@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #0d6efd;
  --primary-dark: #111827;
  --accent-color: #0ea5e9;
  --bg-light: #f8fafc;
  --text-muted: #6b7280;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: #333;
}

.text-primary-dark {
  color: var(--primary-dark) !important;
}

.card-shadow {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.custom-border {
  border: 1px solid var(--border-color) !important;
}

.header-bg {
  background-color: #ffffff;
}

.badge-official {
  background-color: #f0fdf4;
  color: #16a34a;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.feature-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-wrapper.green { background-color: #dcfce7; color: #16a34a; }
.icon-wrapper.blue { background-color: #e0f2fe; color: #0284c7; }
.icon-wrapper.amber { background-color: #fef3c7; color: #d97706; }
.icon-wrapper.slate { background-color: #e2e8f0; color: #334155; }

.custom-input {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}
.custom-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.25);
  background-color: #ffffff;
  border: 1px solid var(--accent-color) !important;
}

.btn-primary-dark {
  background-color: var(--primary-dark);
  color: white;
  border: none;
}
.btn-primary-dark:hover {
  background-color: #1f2937;
  color: white;
}

/* Cards de obra */
.obra-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.obra-card:hover {
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.15);
  transform: translateY(-2px);
}

.situacao-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}
.situacao-em_andamento { background-color: #e0f2fe; color: #0369a1; }
.situacao-paralisada { background-color: #fee2e2; color: #b91c1c; }
.situacao-concluida { background-color: #dcfce7; color: #15803d; }

/* Status de protocolos e-SIC */
.status-recebido { background-color: #e0f2fe; color: #0369a1; }
.status-em_tratamento { background-color: #fef3c7; color: #b45309; }
.status-respondido { background-color: #dcfce7; color: #15803d; }
.status-indeferido { background-color: #fee2e2; color: #b91c1c; }

.prazo-vencido { color: #b91c1c; font-weight: 600; }

.protocolo-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.protocolo-card:hover {
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.15);
  transform: translateY(-2px);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.25rem;
  border-left: 2px solid var(--border-color);
  margin-left: 0.5rem;
}
.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.4rem;
  top: 0.2rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.ql-editor {
  min-height: 200px;
  background-color: #ffffff;
}

.pie-chart {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.filtro-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
}

/* Área administrativa: sidebar clara, no mesmo padrão do Governo Digital */
aside .nav-link.active {
  background-color: var(--bg-light);
  color: var(--primary-dark) !important;
  font-weight: 600;
}
aside .nav-link:hover {
  background-color: var(--bg-light);
}

/* Tabs (mesmo padrão do Governo Digital) */
.custom-tabs {
  border-bottom: 1px solid var(--border-color);
}
.custom-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  background: transparent;
  padding-bottom: 1rem;
  position: relative;
}
.custom-tabs .nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 600;
  background: transparent;
}
.custom-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

/* Área de upload de arquivos */
.upload-zone {
  border: 1px dashed var(--text-muted);
  background-color: var(--bg-light);
  cursor: pointer;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s ease;
}
.upload-zone:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Alinhamento de texto gerado pelo editor rico (Quill) */
.ql-editor .ql-align-center,
.rich-content .ql-align-center {
  text-align: center;
}
.ql-editor .ql-align-right,
.rich-content .ql-align-right {
  text-align: right;
}
.ql-editor .ql-align-justify,
.rich-content .ql-align-justify {
  text-align: justify;
}
