/* Shared styles for data tables with filters and badges */

/* Filter Dropdowns (used in outreaches and companies tables) */
.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-s);
  transition: background-color 0.15s ease;
}

.filter-btn:hover {
  background: #f1f5f9;
}

.filter-menu {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 12px;
  z-index: 1050;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.filter-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.filter-menu .form-check {
  margin-bottom: 6px;
}

.filter-menu .form-check:last-child {
  margin-bottom: 0;
}

.filter-radio {
  margin-right: 8px;
}

.filter-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Badge Size Classes */
.badge-sm {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-regular {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Signal Type Badges (yellow pills used in both outreaches and companies) */
.signal-type-badge {
  display: inline-block;
  background-color: #fff8e1;
  color: #8a6914;
  border: 1px solid #f5e6a3;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  margin-right: 4px;
  margin-bottom: 2px;
}

/* Segment Badges (with proper spacing) */
.segment-badges .badge {
  margin-right: 6px;
  margin-bottom: 2px;
  font-size: 11px;
  padding: 3px 8px;
}

/* ID Display (monospace code styling) */
.id-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: var(--radius-s);
  border: 1px solid #e5e7eb;
  color: var(--muted);
}



/* Score Badges */
.score-badge-high {
  background: rgba(5, 150, 105, 0.12);
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.score-badge-medium {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.score-badge-low {
  background: rgba(220, 38, 38, 0.12);
  color: #7f1d1d;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Filter input groups (for text inputs with buttons) */
.filter-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}

.filter-input-group input {
  flex: 1;
  min-width: 0;
}

.filter-input-group button {
  flex-shrink: 0;
}

/* Active filter badges display */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.active-filter-badge .remove-filter {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  margin-left: 2px;
}

.active-filter-badge .remove-filter:hover {
  color: #1e40af;
}

/* Batch actions styling */
.batch-actions {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.batch-actions-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.batch-actions-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.batch-actions .form-select {
  min-width: 200px;
}

/* Table enhancements */
.data-table {
  font-size: 14px;
  width: 100%;
  table-layout: auto;
}

.data-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  text-align: left;
}

.data-table td {
  font-size: 14px;
  vertical-align: middle;
  text-align: left;
}

.data-table .table-cell-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Status badges for different states */
.status-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-new { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.status-starting { background: rgba(14, 165, 233, 0.12); color: #075985; border-color: rgba(14, 165, 233, 0.3); }
.status-waiting { background: rgba(217, 119, 6, 0.12); color: #92400e; border-color: rgba(217, 119, 6, 0.3); }
.status-enrichment { background: rgba(139, 69, 19, 0.12); color: #451a03; border-color: rgba(139, 69, 19, 0.3); }
.status-ready { background: rgba(5, 150, 105, 0.12); color: #065f46; border-color: rgba(5, 150, 105, 0.3); }
.status-processing { background: rgba(37, 99, 235, 0.12); color: #1e3a8a; border-color: rgba(37, 99, 235, 0.3); }
.status-processed { background: rgba(34, 197, 94, 0.12); color: #14532d; border-color: rgba(34, 197, 94, 0.3); }
.status-failed { background: rgba(239, 68, 68, 0.12); color: #7f1d1d; border-color: rgba(239, 68, 68, 0.3); }
.status-cancelled { background: rgba(156, 163, 175, 0.12); color: #374151; border-color: rgba(156, 163, 175, 0.3); }
.status-not-available { background: rgba(220, 38, 38, 0.12); color: #7f1d1d; border-color: rgba(220, 38, 38, 0.3); }

/* Channel badges */
.channel-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.channel-email { background: rgba(37, 99, 235, 0.12); color: #1e3a8a; border-color: rgba(37, 99, 235, 0.3); }
.channel-phone { background: rgba(5, 150, 105, 0.12); color: #065f46; border-color: rgba(5, 150, 105, 0.3); }
.channel-linkedin { background: rgba(14, 165, 233, 0.12); color: #075985; border-color: rgba(14, 165, 233, 0.3); }

/* Action buttons in tables */
.table-action-btn {
  font-size: 12px;
  padding: 4px 8px;
  min-height: 28px;
  line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-menu {
    position: fixed;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 16px !important;
    min-width: auto;
    max-width: none;
    width: auto;
  }
  
  .batch-actions-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .batch-actions .form-select {
    min-width: auto;
  }
  
  .filter-input-group {
    min-width: auto;
    flex-direction: column;
    align-items: stretch;
  }
}
/* Minimal, clean internal UI */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --success: #059669;
  --info: #0ea5e9;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-s: 6px;
  --radius-m: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --control-h: 36px;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container { max-width: 1600px; margin: 0 auto; padding: 0 24px; }
.app-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand-link { font-weight: 600; color: var(--text); text-decoration: none; font-size: 14px; }
.nav { display: flex; gap: 12px; align-items: center; }
.nav-link { color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: var(--radius-s); font-size: 14px; }
.nav-link:hover { color: var(--text); background: #f1f5f9; }
main.container { padding-top: 20px; padding-bottom: 40px; }

/* Responsive container adjustments for large screens */
@media (min-width: 1400px) {
  .container { max-width: 1800px; padding: 0 32px; }
}

@media (min-width: 1600px) {
  .container { max-width: 2000px; padding: 0 40px; }
}

@media (min-width: 1920px) {
  .container { max-width: 90vw; padding: 0 5vw; }
}

h1, h2, h3, h4, h5 { margin: 0 0 12px 0; font-weight: 600; line-height: 1.25; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3, h4, h5 { font-size: 14px; color: var(--muted); }
p { margin: 0 0 12px 0; }

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.col-md-12 { flex: 1 1 100%; }
.col-md-8 { flex: 1 1 66%; min-width: 300px; }
.col-md-4 { flex: 1 1 33%; min-width: 220px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-sm); }
.card-body { padding: 16px; }
.card-title { margin-bottom: 8px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 12px; min-height: var(--control-h); border-radius: var(--radius-m); text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; font-size: 14px; }
.btn:hover { background: #f8fafc; }
.btn-sm { padding: 0 10px; min-height: 32px; font-size: 13px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-secondary { color: var(--text); background: #eef2f7; border-color: #e2e8f0; }
.btn-secondary:hover { background: #e5eaf1; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: rgba(37, 99, 235, 0.08); }
.btn-outline-secondary { color: var(--muted); border-color: var(--border); background: transparent; }
.btn-outline-secondary:hover { background: #f8fafc; }
.btn-outline-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-outline-danger:hover { background: rgba(220, 38, 38, 0.08); }
/* Larger button size for prominent actions */
.btn-lg { padding: 0 16px; min-height: 42px; font-size: 15px; border-radius: 10px; }

.form-label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.form-control, .form-select { width: 100%; padding: 0 10px; min-height: var(--control-h); border-radius: var(--radius-m); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; }
.form-control::placeholder { color: #9ba3af; }
.form-control:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.form-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: none; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input { width: 16px; height: 16px; }
.form-text { display: block; color: var(--muted); margin-top: 6px; }
.text-muted { color: var(--muted); }

/* Code/mono for IDs */
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
code { font-size: 12px; background: #f3f4f6; padding: 2px 6px; border-radius: var(--radius-s); border: 1px solid #e5e7eb; }

.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 100%; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table th { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--muted); background: #fafbfc; }
.table tr:last-child td { border-bottom: 0; }
.table-striped tbody tr:nth-child(odd) { background: #fcfdff; }

.badge { display: inline-block; font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.bg-success { background: rgba(5, 150, 105, 0.12); color: #065f46; border-color: rgba(5, 150, 105, 0.3); }
.bg-danger { background: rgba(220, 38, 38, 0.12); color: #7f1d1d; border-color: rgba(220, 38, 38, 0.3); }
.bg-warning { background: rgba(217, 119, 6, 0.12); color: #92400e; border-color: rgba(217, 119, 6, 0.3); }
.bg-secondary { background: #eef2f7; color: #374151; border-color: #e5e7eb; }
.bg-info { background: rgba(14, 165, 233, 0.12); color: #075985; border-color: rgba(14, 165, 233, 0.3); }
.bg-primary { background: rgba(37, 99, 235, 0.12); color: #1e3a8a; border-color: rgba(37, 99, 235, 0.3); }

.alert { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.alert-notice { border-color: #c7e0ff; background: #f0f6ff; color: #1e3a8a; }
.alert-alert { border-color: #ffd1d1; background: #fff5f5; color: #7f1d1d; }

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }

/* Modern Pagination Styles */
.pagination-nav {
  margin: 24px 0 16px 0;
}

.pagination-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 640px) {
  .pagination-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.pagination-info {
  order: 2;
}

@media (min-width: 640px) {
  .pagination-info {
    order: 1;
  }
}

.pagination-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 1;
}

@media (min-width: 640px) {
  .pagination-controls {
    order: 2;
  }
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Navigation buttons (Previous/Next) */
.pagination-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  height: 36px;
  box-shadow: var(--shadow-sm);
}

.pagination-nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pagination-nav-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Page number buttons */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.pagination-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pagination-btn:active {
  transform: translateY(0);
}

/* Current page button */
.pagination-btn-current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.pagination-btn-current:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  transform: none;
}

/* Gap indicator */
.pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .pagination-nav-btn {
    padding: 0 10px;
    font-size: 13px;
    height: 32px;
  }
  
  .pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .pagination-gap {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* Focus states for accessibility */
.pagination-nav-btn:focus,
.pagination-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  border-color: var(--primary);
}

/* Animation for page transitions */
.pagination-btn {
  position: relative;
  overflow: hidden;
}

.pagination-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.pagination-btn:hover::before {
  left: 100%;
}


/* ============ Job Titles Voting UI ============ */
.job-titles-ui {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
}

@media (max-width: 920px) {
  .job-titles-ui { grid-template-columns: 1fr; }
}

.job-titles-main {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.job-title-active .title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

@media (min-width: 1400px) {
  .job-title-active .title { font-size: 44px; }
}

.job-title-active .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.job-title-active .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Vote success animation */
.job-title-active {
  position: relative;
}

/* We animate the container (.job-titles-main) to tint/fade the whole card */
.job-titles-main {
  transition: background-color .25s ease, box-shadow .25s ease, opacity .25s ease, transform .25s ease, border-color .25s ease;
}

/* subtle appear animation (fade-in) */
.job-titles-main.appearing {
  opacity: 0;
  transform: translateY(6px) scale(0.99);
}

/* Fade out card when moving to next */
.job-titles-main.fade-out {
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
}

/* Success tinted state before fade */
.job-titles-main.success-tint {
  background: linear-gradient(180deg, #d1fae5, #ecfdf5);
  box-shadow: 0 0 0 3px rgba(16,185,129,.22) inset, var(--shadow-md);
  border-color: rgba(16,185,129,.45);
}

.persona-btn {
  border-radius: 999px;
  padding: 8px 16px;
  text-transform: none;
  font-weight: 600;
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  transition: all .15s ease;
}

.persona-btn:hover,
.persona-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}

.persona-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Button turns green on vote */
.persona-btn.voted-success {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
}

.job-titles-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 8px;
  max-height: 560px;
  overflow-y: auto;
}

.job-titles-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.job-titles-item .name { font-weight: 600; }
.job-titles-item .metrics { display: inline-flex; align-items: center; gap: 6px; }
.job-titles-item .count { color: var(--muted); font-size: 13px; }

.job-titles-item:hover { background: #f8fafc; border-color: #e5e7eb; }

.job-titles-item.is-active {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) inset;
}

/* ============ Dark Card Header ============ */
.card-header-dark {
  background-color: #e9ecef;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
}

.card-header-dark h5 {
  margin-bottom: 0;
  color: #495057;
  font-weight: 600;
}

.card-header-dark .icon-success {
  color: #198754;
}

.card-header-dark .icon-info {
  color: #0dcaf0;
}

.card-header-dark .icon-primary {
  color: #0d6efd;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
