/* ============================================================================
   One — Sistema de Gestão Imobiliária
   ============================================================================ */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --border: #e6e8f0;
  --border-strong: #d8dbe8;

  --text: #1e2230;
  --text-muted: #6b7280;
  --text-soft: #9aa1ad;

  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #eef2ff;

  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --blue-badge: #2563eb;
  --blue-badge-soft: #dbeafe;
  --purple-soft: #ede9fe;
  --purple-text: #7c3aed;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.06);

  --sidebar-w: 256px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}
  body.app-page {
    overflow-x: hidden;
  }

/* Layout Estrutural App */
.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Lateral */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}
  .sidebar-overlay {
    display: none;
  }
  
  .sidebar-toggle {
    display: none;
  }

.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.5px;
}

.nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

/* Área Principal de Conteúdo */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 40px;
}
@media (max-width: 900px) {
  .sidebar-toggle {
    display: inline-flex;
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 260;
    padding: 0;
  }

  .sidebar-toggle span {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2.5px;
    border-radius: 999px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  }

  .sidebar-toggle span:nth-child(1) { top: 16px; }
  .sidebar-toggle span:nth-child(2) { top: 22px; }
  .sidebar-toggle span:nth-child(3) { top: 28px; }

  .sidebar-toggle.is-open span:nth-child(1) {
    top: 22px;
    transform: translateX(-50%) rotate(45deg);
  }

  .sidebar-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .sidebar-toggle.is-open span:nth-child(3) {
    top: 22px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 180;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    width: min(84vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: var(--shadow-md);
    z-index: 220;
  }

  .sidebar .brand {
    padding-top: 72px;
  }

  .sidebar .nav {
    padding-top: 8px;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 78px 20px 24px;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .header-actions h1 {
    font-size: 24px;
  }

  .user-profile {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-cards,
  .books-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search {
    width: 100%;
    flex: 0 0 auto;
  }

  .search-input,
  .select {
    width: 100%;
  }

  .select {
    min-width: 0;
  }

  .search-input-fluid {
    display: block;
    width: 100%;
    flex: 1 1 auto;
  }

  .book-foot {
    align-items: stretch;
  }

  .book-foot-actions,
  .book-foot .btn {
    width: 100%;
  }

  .book-foot-actions {
    flex-direction: column;
  }

  .book-foot-form {
    width: 100%;
  }

  .book-foot-form .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .form-actions .btn-secondary,
  .form-actions .btn-danger {
    width: 100%;
    justify-content: center;
  }

  .panel-head,
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }

  .user-profile .btn {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-actions h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.user-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.user-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.user-identity:hover .user-name {
  color: var(--primary);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile .btn {
  flex-basis: 100%;
  justify-content: center;
}

/* Ícones SVG base */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Dashboard Cards (Grid) */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.nav-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.nav-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.nav-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.nav-card-icon.blue { background: var(--primary-soft); color: var(--primary); }
.nav-card-icon.purple { background: var(--purple-soft); color: var(--purple-text); }
.nav-card-icon.green { background: var(--green-soft); color: var(--green); }

/* Autenticação / Landing */
body.auth-page {
  background: radial-gradient(circle at top, rgba(29, 78, 216, 0.08), transparent 34%), var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  margin: 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-radius: 16px;
}

.auth-card--wide {
  max-width: 560px;
}

.auth-brand {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-stack.compact {
  gap: 16px;
}

.auth-footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.auth-note {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

.auth-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-alert.error {
  background-color: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.auth-alert.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-alert.info {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #fafbff);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  text-align: left;
}

.landing-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 78, 216, 0.25);
}

.landing-button-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary);
}

.landing-button-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.landing-button-description {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.landing-footer-link {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.landing-footer-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 22px;
  }
}

/* Tabelas e Paineis */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.search-input {
  padding: 0;
  border: none;
  border-radius: 0;
  width: 100%;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-input-fluid {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

th {
  background: #fafbfe;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

tr:hover td {
  background: #fdfdfe;
}

/* Botões Genéricos */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.1s;
}

.btn:hover { background: var(--primary-dark); }

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg); }

.btn-danger {
  background: var(--red);
}
.btn-danger:hover { background: #b91c1c; }

/* Status Badges */
.status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status.active, .status.ativo { background: var(--green-soft); color: var(--green); }
.status.ended, .status.encerrado { background: var(--red-soft); color: var(--red); }
.status.suspenso { background: #fef3c7; color: #d97706; }

/* --- Estilos Gerais de Formulários --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.dynamic-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    position: relative;
}

.btn-add-inline {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.15s;
}

.btn-add-inline:hover {
    background: #dbeafe;
}

/* --- Acabamentos Finais (Ajustes Utilitários) --- */
table tr:last-child td {
  border-bottom: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-remove-inline {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s;
}

.btn-remove-inline:hover {
  background: var(--red-soft);
  border-color: transparent;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1e293b);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------- E-books ---------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 0;
  min-height: 48px;
}

.filter-search .icon {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  min-width: 190px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.book-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.book-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 8px;
}

.book-cat.green { color: #10b981; }
.book-cat.orange { color: #ea580c; }

.book-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.book-author {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.book-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.book-foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.book-foot-form {
  display: inline;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.book-meta .icon {
  width: 16px;
  height: 16px;
}

/* Card de Sugestão */
.book-card.suggest {
  border: 2px dashed var(--border-strong);
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
}

.book-card.suggest:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--primary);
}

.suggest-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.book-card.suggest h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}

.book-card.suggest p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 20px;
}

/* Grid de Imóveis */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.imovel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

.imovel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Carrossel Interno */
.imovel-media-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
}

.imovel-media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.imovel-media-item.active {
    display: block;
}

.no-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-soft);
    background: var(--bg);
    font-size: 13px;
}

/* Setas acionadas no hover do card */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.imovel-card:hover .nav-arrow {
    opacity: 1;
}

.nav-arrow.prev { left: 8px; }
.nav-arrow.next { right: 8px; }

.media-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.imovel-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.imovel-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.imovel-card-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.imovel-card-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.captador-tag {
    font-size: 12px;
    color: var(--text-soft);
}

/* Esconde a barra de rolagem do carrossel */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE e Edge antigo */
    scrollbar-width: none;  /* Firefox */
}

@media (max-width: 900px) {
  .app-page .filter-bar {
    gap: 10px;
    padding: 10px;
  }

  .app-page .filter-search {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .app-page .search-input-fluid {
    flex: 1 1 auto;
    width: 100%;
  }

  .app-page .search-input {
    font-size: 13px;
    line-height: 1.2;
  }

  .app-page .filter-search .icon {
    width: 16px;
    height: 16px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #ede9fe; color: #6b21a8; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-green { background: #dcfce7; color: #166534; }