/* ================================================
   TALENTFLOW ATS — style.css
   Theme: Light Blue + White Professional
   Font: Poppins (Google Fonts)
   ================================================ */

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

/* ===== CSS VARIABLES ===== */
:root {
  --primary:        #3498db;
  --primary-dark:   #2176ae;
  --primary-light:  #eaf4fd;
  --primary-mid:    #c8e4f8;
  --accent-green:   #2ecc71;
  --accent-red:     #e74c3c;
  --accent-orange:  #f39c12;
  --accent-purple:  #9b59b6;
  --accent-teal:    #1abc9c;
  --bg:             #f4f8fb;
  --white:          #ffffff;
  --text:           #2c3e50;
  --text-muted:     #7f8c8d;
  --border:         #dde6f0;
  --shadow-sm:      0 2px 8px rgba(52,152,219,0.08);
  --shadow:         0 4px 20px rgba(52,152,219,0.12);
  --shadow-hover:   0 8px 32px rgba(52,152,219,0.20);
  --sidebar-w:      250px;
  --sidebar-col:    68px;
  --topbar-h:       64px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     all 0.24s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-mid); border-radius: 10px; }

/* ===============================================================
   LOGIN PAGE
   =============================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeeff 0%, #f0f8ff 50%, #e8f5fd 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(52,152,219,0.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46,204,113,0.08) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(52,152,219,0.18);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: loginFadeIn 0.5s ease;
}
@keyframes loginFadeIn { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(52,152,219,0.35);
}
.login-logo h1 { font-size: 1.55rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.login-logo p { color: var(--text-muted); font-size: 0.85rem; margin-top: 3px; }
.login-hint {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.login-hint strong { color: var(--text); }
.role-pills {
  display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.role-pill {
  flex: 1; min-width: 80px;
  padding: 9px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 0.78rem; font-weight: 600;
  text-align: center;
  transition: var(--transition);
  color: var(--text-muted);
}
.role-pill.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.role-pill:hover { border-color: var(--primary); color: var(--primary); }

/* ===============================================================
   APP LAYOUT
   =============================================================== */
.app-layout { display: flex; min-height: 100vh; }

/* ===============================================================
   SIDEBAR
   =============================================================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 2px 0 20px rgba(52,152,219,0.06);
}
.sidebar.collapsed { width: var(--sidebar-col); }
.sidebar-header {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.sidebar-brand-text {
  font-weight: 800; font-size: 1rem; color: var(--text);
  white-space: nowrap; overflow: hidden;
  transition: var(--transition);
  letter-spacing: -0.3px;
}
.sidebar.collapsed .sidebar-brand-text { opacity: 0; width: 0; }

.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 0; }
.nav-section-label {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-muted);
  padding: 10px 20px 4px;
  white-space: nowrap; overflow: hidden;
  transition: var(--transition);
}
.sidebar.collapsed .nav-section-label { opacity: 0; height: 0; padding: 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin: 2px 8px;
  border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  white-space: nowrap; overflow: hidden;
  position: relative;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
  margin-left: -14px;
}
.nav-icon { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.nav-label { transition: var(--transition); }
.sidebar.collapsed .nav-label { opacity: 0; width: 0; overflow: hidden; }

.sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--border); flex-shrink: 0; }
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  overflow: hidden;
}
.user-pill:hover { background: var(--bg); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
}
.user-info { min-width: 0; overflow: hidden; }
.user-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role-badge { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.sidebar.collapsed .user-info { opacity: 0; width: 0; }
.sidebar-logout-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; margin-top: 6px;
  border-radius: var(--radius); border: none;
  background: transparent; cursor: pointer;
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent-red); width: 100%;
  transition: var(--transition); overflow: hidden;
  white-space: nowrap;
}
.sidebar-logout-btn:hover { background: #fdf2f0; }
.sidebar.collapsed .sidebar-logout-btn span.logout-label { opacity: 0; width: 0; overflow: hidden; }

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(44,62,80,0.45);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ===============================================================
   MAIN CONTENT
   =============================================================== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.main-content.sidebar-collapsed { margin-left: var(--sidebar-col); }

/* ===============================================================
   TOPBAR
   =============================================================== */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-toggle {
  width: 38px; height: 38px; border: none;
  background: var(--bg); border-radius: var(--radius);
  cursor: pointer; font-size: 18px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.topbar-toggle:hover { background: var(--primary-light); color: var(--primary); }
.topbar-search-wrap {
  flex: 1; max-width: 420px;
  position: relative;
}
.topbar-search-wrap .search-ico {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px; pointer-events: none;
}
.topbar-search {
  width: 100%; padding: 9px 12px 9px 36px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: 0.85rem; color: var(--text);
  outline: none; transition: var(--transition);
}
.topbar-search:focus { border-color: var(--primary); background: var(--white); }
.topbar-search::placeholder { color: var(--text-muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  width: 38px; height: 38px; border: none;
  background: var(--bg); border-radius: var(--radius);
  cursor: pointer; font-size: 17px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); position: relative;
}
.topbar-btn:hover { background: var(--primary-light); color: var(--primary); }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-red); border: 2px solid var(--white);
}
.topbar-page-title { font-weight: 700; font-size: 1rem; color: var(--text); }

/* ===============================================================
   PAGE CONTENT
   =============================================================== */
.page-content { padding: 28px; flex: 1; }
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-title h2 { font-size: 1.45rem; font-weight: 800; color: var(--text); letter-spacing: -0.4px; }
.page-title p { color: var(--text-muted); font-size: 0.82rem; margin-top: 3px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ===============================================================
   BUTTONS
   =============================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--radius);
  border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(52,152,219,0.35); transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--white); border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--accent-green); color: var(--white); }
.btn-success:hover { background: #27ae60; box-shadow: 0 4px 14px rgba(46,204,113,0.35); }
.btn-danger { background: var(--accent-red); color: var(--white); }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: var(--accent-orange); color: var(--white); }
.btn-warning:hover { background: #e08e0b; }
.btn-sm { padding: 6px 13px; font-size: 0.78rem; }
.btn-xs { padding: 4px 10px; font-size: 0.73rem; }
.btn-icon { padding: 8px; border-radius: var(--radius); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ===============================================================
   STAT CARDS
   =============================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px; margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.si-blue { background: #eaf4fd; }
.si-green { background: #eafaf1; }
.si-orange { background: #fef9e7; }
.si-purple { background: #f5eef8; }
.si-red { background: #fdf2f0; }
.si-teal { background: #e8f8f5; }
.stat-val { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ===============================================================
   CARDS
   =============================================================== */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.card-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); }

/* ===============================================================
   GRID LAYOUTS
   =============================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ===============================================================
   TABLES
   =============================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead tr { background: var(--bg); }
thead th {
  padding: 12px 16px; text-align: left;
  font-size: 0.73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted); white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 13px 16px; font-size: 0.855rem; color: var(--text);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--primary-light); }
tbody tr:last-child td { border-bottom: none; }

/* ===============================================================
   TAGS & BADGES
   =============================================================== */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 11px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.tag-blue    { background: #eaf4fd; color: var(--primary); }
.tag-green   { background: #eafaf1; color: #27ae60; }
.tag-orange  { background: #fef9e7; color: #d68910; }
.tag-red     { background: #fdf2f0; color: #c0392b; }
.tag-purple  { background: #f5eef8; color: #8e44ad; }
.tag-teal    { background: #e8f8f5; color: #17a589; }
.tag-gray    { background: #f2f3f4; color: var(--text-muted); }

/* ===============================================================
   FORMS
   =============================================================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.81rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label span.required { color: var(--accent-red); margin-left: 2px; }
.form-control {
  width: 100%; padding: 9px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.865rem; color: var(--text); background: var(--white);
  outline: none; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52,152,219,0.12); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 84px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-hint { font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.74rem; color: var(--accent-red); margin-top: 4px; display: none; }
.form-control.error { border-color: var(--accent-red); }

/* Resume upload area */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: var(--transition); background: var(--bg);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone .upload-ico { font-size: 36px; margin-bottom: 10px; }
.upload-zone p { font-size: 0.85rem; color: var(--text-muted); }
.upload-zone strong { color: var(--primary); }
.upload-status { margin-top: 10px; font-size: 0.8rem; color: var(--accent-green); font-weight: 600; display: none; }

/* ===============================================================
   MODALS
   =============================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(44,62,80,0.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 740px; }
.modal-xl { max-width: 900px; }
.modal-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--white); z-index: 5;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.modal-close {
  width: 34px; height: 34px; border: none;
  background: var(--bg); border-radius: var(--radius);
  cursor: pointer; font-size: 18px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: #fdf2f0; color: var(--accent-red); }
.modal-body { padding: 22px 26px; }
.modal-footer {
  padding: 14px 26px 22px;
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ===============================================================
   KANBAN BOARD
   =============================================================== */
.kanban-wrapper { overflow-x: auto; padding-bottom: 16px; }
.kanban-board {
  display: flex; gap: 16px;
  min-height: 520px; width: max-content; min-width: 100%;
}
.kanban-col {
  width: 230px; flex-shrink: 0;
  background: var(--bg); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  display: flex; flex-direction: column;
  max-height: 680px;
}
.kanban-col-head {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.kanban-col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.83rem; font-weight: 700; color: var(--text);
}
.kanban-count {
  background: var(--primary); color: var(--white);
  border-radius: 12px; padding: 1px 9px; font-size: 0.72rem; font-weight: 700;
}
.kanban-cards {
  flex: 1; overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 9px;
}
.kanban-card {
  background: var(--white); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); cursor: grab;
  transition: var(--transition);
}
.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kanban-card.dragging { opacity: 0.45; cursor: grabbing; transform: rotate(2deg); }
.kanban-col.drag-over { border-color: var(--primary); background: var(--primary-light); }
.kanban-col.drag-over .kanban-cards { background: rgba(52,152,219,0.04); }
.kc-name { font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.kc-role { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.kc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.kc-empty { text-align: center; padding: 28px 12px; color: var(--text-muted); font-size: 0.8rem; }

/* ===============================================================
   PIPELINE / PROGRESS TRACKER
   =============================================================== */
.pipeline-track {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; padding: 8px 0 16px; flex-wrap: nowrap;
}
.pipeline-step { display: flex; align-items: center; }
.pipeline-node {
  padding: 8px 18px; border: 2px solid var(--border);
  border-radius: var(--radius-xl); font-size: 0.79rem; font-weight: 600;
  color: var(--text-muted); background: var(--white); white-space: nowrap;
  transition: var(--transition);
}
.pipeline-node.done { background: var(--accent-green); border-color: var(--accent-green); color: var(--white); }
.pipeline-node.active { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(52,152,219,0.35); }
.pipeline-connector { width: 28px; height: 2px; background: var(--border); flex-shrink: 0; transition: var(--transition); }
.pipeline-connector.done { background: var(--accent-green); }

/* ===============================================================
   TIMELINE
   =============================================================== */
.timeline { padding: 4px 0; }
.tl-item {
  display: flex; gap: 14px; padding-bottom: 20px;
  position: relative;
}
.tl-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 14px; top: 28px;
  width: 2px; bottom: 0;
  background: var(--border);
}
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--primary);
}
.tl-dot.green { background: #eafaf1; border-color: var(--accent-green); color: var(--accent-green); }
.tl-dot.orange { background: #fef9e7; border-color: var(--accent-orange); color: var(--accent-orange); }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.tl-date { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.tl-desc { font-size: 0.80rem; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }

/* ===============================================================
   JOB CARDS (Student)
   =============================================================== */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.job-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 22px; transition: var(--transition);
  display: flex; flex-direction: column;
}
.job-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.job-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.job-card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.job-card-company { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.job-card-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.job-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.job-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

/* ===============================================================
   PROFILE CARD (Student)
   =============================================================== */
.profile-hero {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 22px;
}
.profile-banner { height: 130px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); position: relative; }
.profile-avatar-wrap { padding: 0 28px; }
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid var(--white); margin-top: -38px;
  background: linear-gradient(135deg, var(--primary), var(--accent-teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--white);
  box-shadow: var(--shadow); position: relative; z-index: 1;
}
.profile-info { padding: 14px 28px 26px; }
.profile-name { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.profile-email { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.skills-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.skill-chip {
  padding: 4px 13px; background: var(--primary-light);
  color: var(--primary); border-radius: 20px;
  font-size: 0.77rem; font-weight: 600;
}

/* ===============================================================
   FEEDBACK CARD
   =============================================================== */
.feedback-card {
  background: var(--bg); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
  border-left: 3px solid var(--primary);
}
.fb-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.fb-name { font-size: 0.87rem; font-weight: 700; }
.fb-rating { display: flex; gap: 2px; }
.fb-star { color: var(--accent-orange); font-size: 14px; }
.fb-date { font-size: 0.74rem; color: var(--text-muted); }
.fb-comment { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ===============================================================
   TOAST NOTIFICATIONS
   =============================================================== */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 14px 18px; min-width: 280px; max-width: 360px;
  display: flex; align-items: center; gap: 12px;
  border-left: 4px solid var(--primary);
  font-size: 0.855rem; font-weight: 500; color: var(--text);
  animation: toastIn 0.3s ease; pointer-events: all;
  line-height: 1.4;
}
.toast.success { border-color: var(--accent-green); }
.toast.error   { border-color: var(--accent-red); }
.toast.warning { border-color: var(--accent-orange); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }
.toast.out { animation: toastOut 0.3s ease forwards; }

/* ===============================================================
   EMPTY STATE
   =============================================================== */
.empty-state { text-align: center; padding: 52px 24px; color: var(--text-muted); }
.empty-state-ico { font-size: 52px; margin-bottom: 14px; }
.empty-state h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

/* ===============================================================
   MISC UTILITIES
   =============================================================== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-sm   { font-size: 0.82rem; }
.text-xs   { font-size: 0.74rem; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-800  { font-weight: 800; }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden    { display: none !important; }
.w-full    { width: 100%; }
.divider   { height: 1px; background: var(--border); margin: 16px 0; }
.section-gap { margin-bottom: 22px; }

/* Client badge colors */
.badge-client { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-admin   { background: #eaf4fd; color: var(--primary); }
.badge-student { background: #eafaf1; color: #27ae60; }
.badge-client-role  { background: #f5eef8; color: #8e44ad; }

/* ===============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   =============================================================== */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   =============================================================== */
@media (max-width: 768px) {
  /* Sidebar goes off-canvas on mobile */
  .sidebar {
    width: var(--sidebar-w) !important;
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0,0,0,0.18);
  }
  .main-content { margin-left: 0 !important; }

  .page-content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .topbar-search-wrap { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }

  .page-header { flex-direction: column; align-items: flex-start; }
  .page-actions { width: 100%; flex-wrap: wrap; }

  .modal { border-radius: var(--radius); max-height: 100vh; }
  .modal-header { border-radius: var(--radius) var(--radius) 0 0; }

  .kanban-board { width: 100%; flex-direction: column; }
  .kanban-col { width: 100%; max-height: 350px; }

  .pipeline-track { flex-wrap: nowrap; overflow-x: auto; }

  .job-card { padding: 16px; }
  .login-card { padding: 28px 22px; }

  .jobs-grid { grid-template-columns: 1fr; }
  .profile-banner { height: 90px; }
}

/* ===============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   =============================================================== */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-title h2 { font-size: 1.2rem; }
  .btn { padding: 8px 14px; }
  .topbar-right .topbar-btn:not(:first-child) { display: none; }
}

/* ===============================================================
   PRINT (minimal)
   =============================================================== */
@media print {
  .sidebar, .topbar, .page-actions { display: none !important; }
  .main-content { margin-left: 0 !important; }
}
