/* ============================================================
   RecruitFlow ERP — Main Stylesheet
   ============================================================ */

:root {
  --sidebar-bg:       #0f172a;
  --sidebar-hover:    #1e293b;
  --sidebar-active:   #2563eb;
  --sidebar-text:     #94a3b8;
  --sidebar-head:     #64748b;
  --sidebar-width:    260px;
  --topbar-height:    64px;
  --page-bg:          #f1f5f9;
  --card-bg:          #ffffff;
  --primary:          #2563eb;
  --primary-dark:     #1d4ed8;
  --success:          #059669;
  --warning:          #d97706;
  --danger:           #dc2626;
  --info:             #0891b2;
  --text-main:        #1e293b;
  --text-muted:       #64748b;
  --border:           #e2e8f0;
  --shadow:           0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:        0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:        0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius:           10px;
  --radius-sm:        6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

/* ─── SIDEBAR ──────────────────────────────────────────────── */
.rf-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform .3s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.rf-sidebar::-webkit-scrollbar { width: 4px; }
.rf-sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

.rf-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.rf-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  flex-shrink: 0;
}
.rf-logo-text { flex: 1; }
.rf-logo-name {
  display: block; color: #f1f5f9;
  font-size: 15px; font-weight: 700; line-height: 1.2;
}
.rf-logo-tag { display: block; color: #64748b; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }

.rf-nav { padding: 12px 0; flex: 1; }
.rf-nav-section { padding: 16px 20px 6px; color: var(--sidebar-head); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.rf-nav-item {
  display: flex; align-items: center;
  padding: 10px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
  gap: 12px;
  position: relative;
}
.rf-nav-item:hover {
  background: var(--sidebar-hover);
  color: #e2e8f0;
  text-decoration: none;
}
.rf-nav-item.active {
  background: rgba(37,99,235,.15);
  color: #93c5fd;
  border-left-color: #2563eb;
}
.rf-nav-item .nav-icon {
  width: 18px; text-align: center;
  font-size: 14px; flex-shrink: 0;
}
.rf-nav-item .nav-badge {
  margin-left: auto;
  background: #2563eb; color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  min-width: 20px; text-align: center;
}

.rf-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
}
.rf-user-info { display: flex; align-items: center; gap: 10px; }
.rf-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.rf-user-name { color: #e2e8f0; font-size: 13px; font-weight: 600; line-height: 1.2; }
.rf-user-role { color: #64748b; font-size: 11px; }

/* ─── MAIN LAYOUT ───────────────────────────────────────────── */
.rf-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ─── TOPBAR ────────────────────────────────────────────────── */
.rf-topbar {
  height: var(--topbar-height);
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.rf-topbar-left { display: flex; align-items: center; gap: 16px; }
.rf-page-title { font-size: 17px; font-weight: 700; color: var(--text-main); }
.rf-breadcrumb { font-size: 12px; color: var(--text-muted); }
.rf-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.rf-breadcrumb a:hover { color: var(--primary); }
.rf-topbar-right { display: flex; align-items: center; gap: 16px; }

.rf-topbar-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border);
  background: white; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
  transition: all .2s; text-decoration: none;
  position: relative;
}
.rf-topbar-btn:hover { background: #f8fafc; color: var(--primary); border-color: #cbd5e1; }
.rf-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #dc2626; border: 2px solid white;
}

/* ─── CONTENT AREA ──────────────────────────────────────────── */
.rf-content {
  flex: 1; padding: 28px;
}

/* ─── STAT CARDS ────────────────────────────────────────────── */
.rf-stat-card {
  background: white; border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden; position: relative;
}
.rf-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rf-stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; flex-shrink: 0;
}
.rf-stat-icon.blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.rf-stat-icon.green  { background: linear-gradient(135deg, #059669, #047857); }
.rf-stat-icon.purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.rf-stat-icon.orange { background: linear-gradient(135deg, #d97706, #b45309); }
.rf-stat-icon.cyan   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.rf-stat-icon.rose   { background: linear-gradient(135deg, #e11d48, #be123c); }

.rf-stat-body { flex: 1; }
.rf-stat-value { font-size: 28px; font-weight: 800; color: var(--text-main); line-height: 1; }
.rf-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.rf-stat-trend { font-size: 11px; margin-top: 6px; font-weight: 600; }
.rf-stat-trend.up   { color: var(--success); }
.rf-stat-trend.down { color: var(--danger); }

/* ─── CARDS ─────────────────────────────────────────────────── */
.rf-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden;
}
.rf-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.rf-card-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
.rf-card-body { padding: 22px; }
.rf-card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: #f8fafc; }

/* ─── TABLES ─────────────────────────────────────────────────── */
.rf-table-wrap { overflow-x: auto; }
.rf-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.rf-table thead th {
  background: #f8fafc; padding: 12px 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.rf-table tbody td {
  padding: 13px 16px; border-bottom: 1px solid #f1f5f9;
  color: var(--text-main); vertical-align: middle;
}
.rf-table tbody tr:hover { background: #f8fafc; }
.rf-table tbody tr:last-child td { border-bottom: none; }

/* ─── BADGES ─────────────────────────────────────────────────── */
.rf-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.badge-open     { background: #dbeafe; color: #1d4ed8; }
.badge-progress { background: #e0e7ff; color: #4338ca; }
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-info     { background: #cffafe; color: #155e75; }
.badge-secondary{ background: #f1f5f9; color: #475569; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.rf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .2s;
  text-decoration: none; white-space: nowrap;
  line-height: 1.4;
}
.rf-btn:hover { text-decoration: none; }
.rf-btn-primary  { background: var(--primary); color: white; border-color: var(--primary); }
.rf-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.rf-btn-success  { background: var(--success); color: white; border-color: var(--success); }
.rf-btn-success:hover { background: #047857; color: white; }
.rf-btn-danger   { background: var(--danger); color: white; border-color: var(--danger); }
.rf-btn-danger:hover { background: #b91c1c; color: white; }
.rf-btn-outline  { background: white; color: var(--text-main); border-color: var(--border); }
.rf-btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--text-main); }
.rf-btn-ghost    { background: transparent; color: var(--text-muted); border-color: transparent; }
.rf-btn-ghost:hover { background: #f1f5f9; color: var(--text-main); }
.rf-btn-sm { padding: 5px 12px; font-size: 12px; }
.rf-btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 6px; }

/* ─── FORMS ──────────────────────────────────────────────────── */
.rf-form-group { margin-bottom: 18px; }
.rf-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.rf-label .req { color: var(--danger); }

.rf-input, .rf-select, .rf-textarea {
  width: 100%; padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-main);
  background: white; transition: border .2s, box-shadow .2s;
  font-family: inherit;
}
.rf-input:focus, .rf-select:focus, .rf-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.rf-textarea { resize: vertical; min-height: 90px; }

.rf-form-row { display: grid; gap: 18px; }
.rf-form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.rf-form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.rf-alert {
  padding: 13px 18px; border-radius: var(--radius-sm);
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500;
}
.rf-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.rf-alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.rf-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.rf-alert-info    { background: #e0f2fe; color: #0c4a6e; border: 1px solid #bae6fd; }

/* ─── MODALS ─────────────────────────────────────────────────── */
.rf-modal .modal-content {
  border: none; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.rf-modal .modal-header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white; border-radius: var(--radius) var(--radius) 0 0;
  padding: 18px 22px; border: none;
}
.rf-modal .modal-title { font-weight: 700; font-size: 16px; }
.rf-modal .btn-close { filter: invert(1); opacity: .7; }
.rf-modal .btn-close:hover { opacity: 1; }
.rf-modal .modal-body { padding: 24px; }
.rf-modal .modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: #f8fafc; }

/* ─── SEARCH / FILTER BAR ───────────────────────────────────── */
.rf-filter-bar {
  background: white; padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.rf-search-input {
  padding: 8px 14px 8px 36px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13.5px;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 11px center;
  transition: all .2s; min-width: 220px;
}
.rf-search-input:focus { outline: none; border-color: var(--primary); background-color: white; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ─── PROGRESS BAR ──────────────────────────────────────────── */
.rf-progress {
  height: 7px; background: #e2e8f0; border-radius: 4px; overflow: hidden;
}
.rf-progress-bar {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width .4s ease;
}

/* ─── PIPELINE STAGE ────────────────────────────────────────── */
.rf-pipeline {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.rf-stage-pill {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: #f1f5f9; color: #64748b; border: 2px solid transparent;
  cursor: pointer; transition: all .2s;
}
.rf-stage-pill.active { background: #dbeafe; color: #1d4ed8; border-color: #2563eb; }
.rf-stage-pill:hover:not(.active) { background: #e2e8f0; }

/* ─── QUICK STATS ROW ───────────────────────────────────────── */
.rf-mini-stat {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted);
}
.rf-mini-stat strong { color: var(--text-main); font-size: 16px; }

/* ─── LOGIN PAGE ─────────────────────────────────────────────── */
.rf-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2460 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative; overflow: hidden;
}
.rf-login-page::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.rf-login-card {
  background: white; border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  width: 100%; max-width: 420px;
  padding: 44px 40px;
  position: relative; z-index: 1;
}
.rf-login-logo { text-align: center; margin-bottom: 32px; }
.rf-login-logo-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; color: white; margin-bottom: 14px;
}
.rf-login-logo h1 { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.rf-login-logo p  { font-size: 13px; color: #64748b; margin: 0; }
.rf-login-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.rf-login-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0;
  border-radius: 8px; font-size: 14px; color: #1e293b;
  transition: all .2s; background: #f8fafc;
}
.rf-login-input:focus { outline: none; border-color: #2563eb; background: white; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.rf-login-btn {
  width: 100%; padding: 12px; border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; font-size: 15px; font-weight: 700;
  border-radius: 8px; cursor: pointer; transition: all .2s;
  margin-top: 4px;
}
.rf-login-btn:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.4); }
.rf-login-divider { text-align: center; color: #94a3b8; font-size: 12px; margin: 16px 0; }
.rf-demo-creds { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 12px 16px; font-size: 12px; color: #0c4a6e; margin-top: 20px; }

/* ─── ACTIVITY FEED ─────────────────────────────────────────── */
.rf-activity-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.rf-activity-item:last-child { border-bottom: none; }
.rf-activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); margin-top: 6px; flex-shrink: 0;
}
.rf-activity-text { font-size: 13px; color: var(--text-muted); flex: 1; }
.rf-activity-text strong { color: var(--text-main); }
.rf-activity-time { font-size: 11px; color: #94a3b8; white-space: nowrap; }

/* ─── PROFILE / AVATAR ──────────────────────────────────────── */
.rf-avatar-lg {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 18px;
}

/* ─── RATING STARS ──────────────────────────────────────────── */
.rating-stars { font-size: 13px; }

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.rf-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.rf-empty-icon { font-size: 52px; margin-bottom: 16px; opacity: .3; }
.rf-empty h3 { font-size: 16px; font-weight: 600; color: var(--text-main); margin: 0 0 8px; }
.rf-empty p  { font-size: 13px; margin: 0 0 20px; }

/* ─── DEMAND PROGRESS ───────────────────────────────────────── */
.demand-fill-bar { display: flex; align-items: center; gap: 8px; }
.demand-fill-bar .rf-progress { flex: 1; }
.demand-fill-label { font-size: 11px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .rf-sidebar { transform: translateX(-100%); }
  .rf-sidebar.open { transform: translateX(0); }
  .rf-main { margin-left: 0; }
  .rf-form-row.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .rf-content { padding: 16px; }
  .rf-topbar { padding: 0 16px; }
  .rf-form-row.cols-2,
  .rf-form-row.cols-3 { grid-template-columns: 1fr; }
  .rf-login-card { padding: 30px 24px; }
}

/* ─── CHART WRAPPER ─────────────────────────────────────────── */
.rf-chart-wrap { position: relative; }

/* ─── SCROLLABLE TABLE WRAPPER ──────────────────────────────── */
.rf-scroll-y { max-height: 340px; overflow-y: auto; }
.rf-scroll-y::-webkit-scrollbar { width: 4px; }
.rf-scroll-y::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--text-muted) !important; }
.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }
.fs-sm        { font-size: 12px; }
.gap-1        { gap: 6px; }
.d-flex       { display: flex; }
.align-items-center { align-items: center; }
.justify-between    { justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.ms-auto      { margin-left: auto; }
.mb-0         { margin-bottom: 0; }
.mt-0         { margin-top: 0; }
.w-100        { width: 100%; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rf-stat-card, .rf-card { animation: fadeInUp .35s ease both; }
.rf-stat-card:nth-child(2) { animation-delay: .05s; }
.rf-stat-card:nth-child(3) { animation-delay: .10s; }
.rf-stat-card:nth-child(4) { animation-delay: .15s; }
.rf-stat-card:nth-child(5) { animation-delay: .20s; }
.rf-stat-card:nth-child(6) { animation-delay: .25s; }

/* Role permission grid */
.perm-grid th, .perm-grid td { text-align: center; }
.perm-grid td:first-child { text-align: left; }

/* ─── PAGE HEADER ─────────────────────────────────────────────── */
.rf-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.rf-section-title { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.rf-section-sub   { font-size: 13px; color: #64748b; margin: 0; }

/* ─── FORM SECTION TITLES ─────────────────────────────────────── */
.form-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: #64748b;
  padding: 14px 0 10px;
  margin: 8px 0 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center;
}

/* ─── SKILL TAGS ──────────────────────────────────────────────── */
.skill-tag {
  display: inline-block; background: #e0e7ff; color: #3730a3;
  padding: 3px 10px; border-radius: 20px; font-size: 12px;
  font-weight: 600; margin: 2px;
}
.skill-tag-sm {
  display: inline-block; background: #f0f9ff; color: #0369a1;
  padding: 2px 7px; border-radius: 12px; font-size: 11px;
  font-weight: 600; margin: 1px;
}

/* ─── MULTI-LAYER FILTER ──────────────────────────────────────── */
.rf-filter-row-main {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid #f1f5f9;
}
.rf-search-wrap {
  position: relative; flex: 1; min-width: 240px;
}
.rf-search-wrap > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 13px;
}
.rf-search-input-lg {
  width: 100%; padding: 9px 13px 9px 36px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-main);
  background: #f8fafc; transition: all .2s;
}
.rf-search-input-lg:focus {
  outline: none; border-color: var(--primary);
  background: white; box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.rf-filter-select {
  padding: 8px 32px 8px 11px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px;
  color: var(--text-main); background: white;
  min-width: 130px; cursor: pointer; max-width: 180px;
}
.rf-filter-select:focus { outline: none; border-color: var(--primary); }
.rf-filter-input {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px;
  color: var(--text-main); background: white;
}
.rf-filter-input:focus { outline: none; border-color: var(--primary); }

.rf-filter-advanced {
  display: none; padding: 0;
  background: #fafbfc; border-top: 1px solid #f1f5f9;
  animation: slideDown .2s ease;
}
.rf-filter-advanced.open { display: block; }
@keyframes slideDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.rf-filter-adv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 12px; padding: 16px 18px;
}
.rf-flt-group { display: flex; flex-direction: column; gap: 4px; }
.rf-flt-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }

.filter-count-badge {
  background: #dc2626; color: white;
  font-size: 10px; font-weight: 800;
  padding: 1px 6px; border-radius: 20px; margin-left: 4px;
}

/* ─── UPLOAD DROP ZONE ────────────────────────────────────────── */
.upload-drop-zone {
  border: 2px dashed #cbd5e1; border-radius: 12px;
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: #fafbfc;
}
.upload-drop-zone:hover, .upload-drop-zone.drag-over {
  border-color: #2563eb; background: #eff6ff;
}
.upload-drop-icon { font-size: 40px; color: #93c5fd; margin-bottom: 12px; }
.upload-drop-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.upload-drop-sub   { font-size: 13px; color: #64748b; }
.upload-drop-limit { font-size: 11px; color: #94a3b8; margin-top: 6px; }
.file-preview-box {
  display: flex; align-items: center; gap: 8px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600;
}
.paste-area { min-height: 220px; font-family: monospace; font-size: 13px; resize: vertical; }

.supported-formats { background: #f8fafc; border-radius: 8px; padding: 12px 14px; }
.sf-title { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 8px; }
.sf-grid  { display: flex; gap: 12px; flex-wrap: wrap; }
.sf-item  { font-size: 13px; font-weight: 600; color: #475569; display: flex; align-items: center; gap: 6px; }

/* ─── FIELD EXTRACTED INDICATOR ──────────────────────────────── */
.field-ok { border-color: #86efac !important; background: #f0fdf4 !important; }
.field-extracted {
  font-size: 11px; color: #059669; margin-top: 4px;
  font-weight: 600; display: flex; align-items: center; gap: 4px;
}
.text-purple { color: #7c3aed; }

/* ─── EXTRACT INFO GRID ───────────────────────────────────────── */
.extract-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px;
}
.extract-info-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: #f8fafc; padding: 12px; border-radius: 8px;
}
.extract-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #e0e7ff; color: #4338ca;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.extract-label { font-size: 13px; font-weight: 700; color: #1e293b; }
.extract-desc  { font-size: 11px; color: #64748b; }

/* ─── IMPORT MODULE ───────────────────────────────────────────── */
.import-type-bar {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow);
}
.import-type-btn {
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: #64748b; display: flex; align-items: center;
  transition: all .2s;
}
.import-type-btn:hover { background: #f8fafc; color: #1e293b; text-decoration: none; }
.import-type-btn.active { background: var(--primary); color: white; }

.import-step-card { position: relative; overflow: visible; }
.import-step-num {
  position: absolute; top: -12px; left: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: white;
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
}
.import-step-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 10px; padding-top:6px; }
.import-step-locked { opacity: .6; }

.import-upload-zone {
  border: 2px dashed #cbd5e1; border-radius: 10px;
  padding: 30px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: #fafbfc;
}
.import-upload-zone:hover { border-color: #059669; background: #f0fdf4; }

.import-summary { background: #f8fafc; border-radius: 8px; }
.import-summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.import-summary-row:last-child { border-bottom: none; }

.import-tips-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 12px;
}
.import-tip {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: #475569;
}

/* ─── RESPONSIVE IMPROVEMENTS ────────────────────────────────── */
@media (max-width: 768px) {
  .rf-filter-row-main { gap: 6px; }
  .rf-search-wrap     { min-width: 100%; }
  .rf-filter-select   { min-width: 100%; max-width: 100%; }
  .rf-filter-adv-grid { grid-template-columns: 1fr 1fr; }
  .rf-page-header     { flex-direction: column; align-items: stretch; }
  .rf-section-title   { font-size: 18px; }
  .extract-info-grid  { grid-template-columns: 1fr 1fr; }
  .import-type-bar    { flex-direction: column; }
  .import-type-btn    { justify-content: center; }
}
@media (max-width: 480px) {
  .rf-filter-adv-grid { grid-template-columns: 1fr; }
  .extract-info-grid  { grid-template-columns: 1fr; }
  .upload-drop-zone   { padding: 24px 16px; }
}

