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

:root {
  --bg-gradient: #f0f4ff;
  --panel-bg: rgba(255, 255, 255, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --backdrop: blur(12px);

  --text-main: #0f172a;
  --text-muted: #64748b;

  --primary: #037b90;
  /* User Requested Primary */
  --primary-hover: #049cb5;
  /* Lighter shade for hover */
  --primary-light: rgba(3, 123, 144, 0.12);

  --accent: #8b5cf6;
  /* Violet-500 */

  --orange: #ff7f50;
  /* User Requested Secondary (Coral) */
  --success: #10b981;
  --danger: #ef4444;

  --border-color: rgba(226, 232, 240, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  display: flex;
  min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.sidebar {
  width: 260px;
  background: #f1f5f9;
  /* var(--bg-sidebar) equivalent */
  color: #334155;
  /* var(--text-sidebar) equivalent */
  border-right: 1px solid #cbd5e1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  padding: 0 10px;
  /* Adjust padding to match */
}

.brand img {
  height: 32px;
  /* Slightly smaller to match text integration */
  width: auto;
}

.brand div {
  display: flex;
  flex-direction: column;
}

.brand .t1 {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--primary);
}

.brand .t2 {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.side-section-title {
  margin-top: 24px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: #334155;
  /* text-sidebar */
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.nav-item i {
  width: 20px;
  color: #64748b;
  /* text-muted */
  transition: color 0.2s;
  font-size: 1.05rem;
}

.nav-item:hover {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.nav-item:hover i {
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(3, 123, 144, 0.3);
}

.nav-item.active i {
  color: white;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}

.page-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
}

.searchbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 99px;
  padding: 10px 18px;
  max-width: 480px;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.searchbar:focus-within {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.searchbar input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-main);
}

.searchbar i {
  color: #94a3b8;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  padding: 8px 14px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-main);
  transition: all 0.2s;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.7);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-btn i {
  font-size: 1.1rem;
}

.user-pill {
  gap: 12px;
  cursor: pointer;
  padding-left: 6px;
  padding-right: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(3, 123, 144, 0.3);
}

.content {
  padding: 24px;
  width: min(100%, 1400px);
  margin: 0 auto;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal {
  width: min(900px, 100%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.small {
  width: min(420px, 95%);
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.5);
}

.modal-title {
  font-weight: 800;
  font-size: 1.1rem;
}

.modal-body {
  padding: 24px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input,
.field select,
.date-pill input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
}

.field input:focus,
.field select:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.date-range {
  display: flex;
  gap: 12px;
}

.date-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.6);
}

.date-pill input {
  border: none;
  background: transparent;
  padding: 10px 0;
}

.date-pill:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(248, 250, 252, 0.7);
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.4);
}

.switch-label {
  font-weight: 700;
  color: #334155;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 999px;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch input:checked+.slider {
  background: var(--primary);
}

.switch input:checked+.slider:before {
  transform: translateX(22px);
}

@media (max-width: 860px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .date-range {
    flex-direction: column;
  }
}

.card {
  background: var(--panel-bg);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.3);
}

.tab {
  padding: 16px 4px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 4px 12px rgba(3, 123, 144, 0.25);
}

.btn-primary:hover {
  filter: brightness(110%);
  box-shadow: 0 6px 16px rgba(3, 123, 144, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.sidebar {
  width: 270px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid transparent;
}

.badge-orange {
  background: rgba(255, 127, 80, 0.1);
  color: var(--orange);
  border-color: rgba(255, 127, 80, 0.2);
}

.badge-muted {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.2);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.vac-title {
  font-weight: 800;
  color: var(--text-main);
}

.vac-meta {
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  /* reduced gap, split by border */
  padding: 0;
}

.subnav {
  padding: 16px;
  border-right: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.3);
}

.subfilter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.subfilter:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
}

.subfilter.active {
  background: rgba(255, 127, 80, 0.1);
  border-color: transparent;
  color: var(--orange);
  box-shadow: none;
}

.tablewrap {
  padding: 16px 24px 24px;
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 14px;
  width: min(480px, 100%);
  transition: all 0.2s;
}

.table-search:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.table-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-main);
}

.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data thead th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 800;
}

.data tbody td {
  padding: 16px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  vertical-align: middle;
  transition: background 0.2s;
}

.data tbody tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}

.data tbody tr:last-child td {
  border-bottom: none;
}

.row-check {
  width: 40px;
}

input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.cand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #fcd34d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(255, 127, 80, 0.25);
  font-size: 0.9rem;
}

.cand-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.cand-meta {
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.5);
  background: rgba(248, 250, 252, 0.8);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.stage-pill:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

.kebab {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  /* cleaner look */
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
}

.kebab:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-color);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dropdown {
  position: absolute;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 8px;
  display: none;
  z-index: 50;
  animation: fadeIn 0.15s ease-out;
}

.dropdown.open {
  display: block;
}

.dropdown .dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: background 0.1s;
}

.dropdown .dd-item:hover {
  background: rgba(241, 245, 249, 0.8);
  color: var(--primary);
}

.small-muted {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Rec User Menu */
.rec-user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.15);
  padding: 10px;
  display: none;
  z-index: 80;
  animation: slideUp 0.15s ease-out;
}

.rec-user-menu.open {
  display: block;
}

.rec-user-menu-head {
  padding: 10px 12px 14px;
}

.rec-user-menu-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
}

.rec-user-menu-role {
  margin-top: 2px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.rec-user-menu-sep {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.rec-user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-main);
  text-align: left;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.rec-user-menu-item:hover {
  background: rgba(241, 245, 249, 0.8);
}

.rec-user-menu-danger {
  color: var(--danger);
}

.rec-user-menu-danger:hover {
  background: rgba(254, 226, 226, 0.4);
}

/* Compare Page */
.compare-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.4);
}

.compare-title {
  font-weight: 800;
  font-size: 1.1rem;
}

.compare-spacer {
  flex: 1;
}

.onb-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.4);
}

.ring {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(255, 127, 80, 0.5);
  background: rgba(255, 127, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--orange);
  transition: all 0.2s;
}

.ring:hover {
  background: rgba(255, 127, 80, 0.2);
  transform: scale(1.05);
}

.pb-plus {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 127, 80, 0.4);
  background: rgba(255, 127, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--orange);
  transition: all 0.2s;
}

.pb-plus:hover {
  background: rgba(255, 127, 80, 0.2);
  transform: scale(1.05);
}

.compare-table td {
  background: rgba(255, 255, 255, 0.4);
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.8);
}

.score-input {
  width: 100px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: inherit;
}

.score-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.offer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 150px;
  transition: all 0.2s;
}

.offer-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.row-mini-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mini-ic {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-muted);
}

.mini-ic:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: #cbd5e1;
  color: var(--text-main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Profile / Candidate View */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
}

.profile-card {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
}

.profile-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(255, 127, 80, 0.3);
}

.profile-name {
  text-align: center;
  font-weight: 800;
  font-size: 1.35rem;
}

.profile-section {
  margin-top: 24px;
}

.profile-section-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  margin-bottom: 12px;
}

.history-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
}

.history-pct {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
  text-align: right;
}

.history-bar {
  height: 8px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.history-bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 99px;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 32px;
  padding: 16px 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  margin-bottom: 10px;
}

.ptab {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.ptab:hover {
  color: var(--text-main);
}

.ptab.active {
  color: var(--text-main);
  font-weight: 700;
  border-bottom-color: var(--text-main);
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 24px 0 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
  opacity: 0.6;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Notes */
.note-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.note-ava {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #64748b;
}

.note-main {
  flex: 1;
}

.note-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.note-author {
  font-weight: 800;
  font-size: 0.9rem;
}

.note-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.note-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.note-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}

.notes-compose {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notes-compose-title {
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.notes-compose-box {
  display: flex;
  gap: 12px;
}

.notes-compose-box textarea {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  min-height: 60px;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
}

.notes-compose-box textarea:focus {
  background: #fff;
  border-color: var(--primary);
}

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(3, 123, 144, 0.3);
}

/* CV Frame */
.cv-frame-wrap {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #fff;
}

.cv-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Attachments */
.attach-block {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.attach-head {
  padding: 12px 16px;
  background: rgba(241, 245, 249, 0.5);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.attach-body {
  padding: 12px 16px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.file-row:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

/* Update UI Styles */
.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p)*1%), #e2e8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-circle::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: white;
  border-radius: 50%;
}

.progress-circle span {
  position: relative;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
}

.th-center {
  text-align: center;
}

.offer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  min-width: 110px;
}

.offer-pill:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.icon-btn-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn-sm:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Dashboard Stats Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
}

.stat-trend.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.stat-trend.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.stat-trend.neutral {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
}

/* Card Utilities */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.3);
}

.card-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.card-body {
  padding: 24px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(3, 123, 144, 0.2);
}

/* Hiring Pipeline */
.pipeline-container {
  min-height: 200px;
}

.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pipeline-stage {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pipeline-stage:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pipeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pipeline-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pipeline-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.pipeline-arrow {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  z-index: 1;
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-text strong {
  font-weight: 700;
  color: var(--primary);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Interview List */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.interview-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.interview-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.interview-time {
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.interview-day {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.interview-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.interview-details {
  flex: 1;
}

.interview-candidate {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.interview-position {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.interview-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Compact Table */
.data.compact thead th {
  padding: 12px 16px;
  font-size: 0.75rem;
}

.data.compact tbody td {
  padding: 14px 16px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .pipeline-flow {
    flex-direction: column;
  }

  .pipeline-arrow {
    display: none;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .card-head {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}