/* UI refinements for Admin Candidatos */

:root {
  --surface: #ffffff;
  --border: #eaeef3;
  --text-muted: #667085;
  --shadow-1: rgba(16, 24, 40, 0.06);
  --shadow-2: rgba(16, 24, 40, 0.08);
  --active-bg: #e9f7ee;
  --active-text: #137f4e;
  --inactive-bg: #f8e9ea;
  --inactive-text: #b42318;
}

.card-soft {
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px var(--shadow-1) !important;
  background: var(--surface);
}
.card-soft:hover { box-shadow: 0 4px 12px var(--shadow-2) !important; }

.card-soft .card-header { background: transparent; border-bottom: 0; padding: 0.75rem 0.9rem; }
.card-soft .card-body { padding: 0.75rem 0.9rem; }
.card-soft .card-footer { background: transparent; border-top: 0; padding: 0.6rem 0.9rem; }
.card-soft .h6, .card-soft .card-title { font-size: 0.95rem; }
.card-soft .btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

.badge-active, .badge-inactive { border-radius: 999px; padding: 6px 10px; font-weight: 600; }
.badge-active { background: var(--active-bg); color: var(--active-text); }
.badge-inactive { background: var(--inactive-bg); color: var(--inactive-text); }

.img-candidato { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.user-placeholder { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f2f4f7; color: #98a2b3; }

.table-clean thead th { border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
  .table-clean tbody td { border-top: 1px solid var(--border); }

  #searchInput { border-radius: 10px; }

/* (removido) estilo do botão flutuante de inscrição não é mais usado */

/* Chat widget */
.chat-widget-button {
  position: fixed;
  right: 16px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #17a2b8;
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  font-weight: bold;
  font-size: 22px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 10050;
}

.chat-widget-button--lg { width: 56px; height: 56px; font-size: 26px; line-height: 56px; }

.chat-widget-container {
  position: fixed;
  right: 16px;
  bottom: 156px;
  width: 320px;
  max-height: 60vh;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  display: none;
  z-index: 10050;
  overflow: hidden;
}

.chat-widget-header {
  background: #17a2b8;
  color: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.chat-widget-body { display: grid; grid-template-rows: auto 1fr; height: 360px; }
.chat-questions { border-bottom: 1px solid #eee; padding: 8px; }
.chat-questions button { display: block; width: 100%; text-align: left; margin-bottom: 6px; font-size: 0.9rem; }
.chat-messages { padding: 8px; overflow-y: auto; scroll-behavior: smooth; }

.chat-bubble { max-width: 85%; margin-bottom: 8px; padding: 8px 10px; border-radius: 12px; font-size: 0.9rem; }
.chat-bubble.user { background: #e9f7fb; margin-left: auto; }
.chat-bubble.bot { background: #f8f9fa; border: 1px solid #eee; }

.chat-close-btn { background: transparent; border: none; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }