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

/* ===== VARIÁVEIS ===== */
:root {
  --primary: #005baa;
  --secondary: #008A7C;
  --accent: #00AC4A;
  --light: #f5f7fa;
  --text: #2c3e50;
}

/* ===== RESET ===== */
* {
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
}

/* ===== HEADER ===== */
header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  padding: 0.75rem 1.5rem;
}

header .navbar-brand img {
  height: 56px;
}

header .nav-link {
  color: var(--primary);
  font-weight: 500;
}

header .nav-link:hover {
  color: var(--secondary);
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.sidebar h6 {
  font-weight: 600;
  color: var(--primary);
}

.sidebar a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  transition: .2s;
}

.sidebar a:hover {
  background: #eef5fb;
  color: var(--primary);
}

/* ===== CARDS ===== */
.document-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.2rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 15px rgba(0,0,0,0.04);
  transition: all .3s ease;
  overflow: hidden;
}

/* FILETE VERDE PADRÃO */
.document-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  transition: all .3s ease;
}

/* HOVER */
.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.document-card:hover::before {
  width: 8px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
}

/* ATIVO */
.document-card.active {
  border: 1px solid var(--secondary);
  box-shadow: 0 0 0 2px rgba(0,138,124,0.15);
}

/* TÍTULO */
.document-card h5 {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 600;
}

/* META */
.document-meta {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.document-meta i {
  color: var(--secondary);
}

/* TEXTO */
.document-card p {
  font-size: 0.9rem;
  margin-top: 8px;
  color: #555;
}

/* ===== BADGES ===== */
.badge {
  background: #eaf3fb;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}

/* ===== BOTÕES ===== */
.btn {
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 6px 14px;
  transition: all .2s ease;
}

.btn-primary {
  background: var(--primary);
  border: none;
}

.btn-primary:hover {
  background: #004080;
}

.btn-success {
  background: var(--secondary);
  border: none;
}

.btn-success:hover {
  background: var(--accent);
}

.btn-outline-primary {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== INPUTS ===== */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.15rem rgba(0,138,124,0.2);
}

/* ===== PAGINAÇÃO ===== */
.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  color: var(--primary);
  border: none;
}

.pagination .page-link:hover {
  background: #eef5fb;
}

.pagination .active .page-link {
  background: var(--primary);
  color: #fff;
}

/* ===== MOBILE ===== */
@media (max-width: 992px) {
  aside.sidebar {
    display: none;
  }

  .filters-dropdown {
    display: block;
  }
}

@media (min-width: 993px) {
  .filters-dropdown {
    display: none;
  }
}

/* BOTÃO MOBILE */
.filters-dropdown button {
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-weight: 500;
  border-radius: 8px;
}

.filters-dropdown button:hover {
  background: var(--secondary);
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #888;
}

/* ===== TRANSIÇÕES ===== */
a, button {
  transition: all .2s ease;
}