:root {
  --primary: #3157d5;
  --primary-700: #233da8;
  --primary-950: #101c52;
  --accent: #ffb547;
  --accent-soft: #fff4df;
  --ink: #12203a;
  --muted: #66728a;
  --surface: #ffffff;
  --surface-soft: #f6f8fd;
  --border: #e4e9f3;
  --success: #14864b;
  --warning: #a86600;
  --danger: #c9364e;
  --shadow-sm: 0 8px 24px rgba(21, 38, 79, .07);
  --shadow: 0 22px 60px rgba(21, 38, 79, .11);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "Noto Sans Gujarati", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(49, 87, 213, .07), transparent 28rem),
    var(--surface-soft);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }

section { padding: 64px 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 4vw, 50px); margin: 0 0 10px; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin-top: 0; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 181, 71, .22), transparent 25%),
    radial-gradient(circle at 10% 100%, rgba(99, 148, 255, .22), transparent 30%),
    linear-gradient(135deg, #101c52 0%, #3157d5 68%, #4971e8 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -130px;
  border: 46px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 700px; margin: 8px 0 0; color: #dfe8ff; font-size: 17px; }
.page-kicker, .eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-hero .page-kicker { color: #ffd993; }

.card {
  background: rgba(255,255,255,.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: #c8d4f9; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #bdc9e9; box-shadow: 0 9px 20px rgba(21,38,79,.10); }
.btn-primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-700)); }
.btn-accent { border-color: transparent; color: #392500; background: linear-gradient(135deg, var(--accent), #ffd076); }
.btn-danger { border-color: transparent; color: #fff; background: var(--danger); }
.btn-success { border-color: transparent; color: #fff; background: var(--success); }
.btn-sm { min-height: 36px; padding: 7px 11px; border-radius: 9px; font-size: 12px; }
.btn-block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9eeff;
  color: var(--primary-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: capitalize;
}
.badge.success { color: var(--success); background: #e6f7ee; }
.badge.warning { color: var(--warning); background: #fff2d9; }
.badge.danger { color: var(--danger); background: #ffeaee; }
.badge.neutral { color: #556078; background: #eef1f6; }

.form-card { max-width: 900px; margin: 0 auto; }
.form-card-narrow { max-width: 560px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-group label { display: block; margin: 0 0 7px; color: #33415d; font-size: 13px; font-weight: 800; }
.form-group.full { grid-column: 1 / -1; }
.form-control {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #dce3f0;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:focus { border-color: #89a2ed; box-shadow: 0 0 0 4px rgba(49,87,213,.10); background: #fff; }
textarea.form-control { min-height: 135px; resize: vertical; }
.form-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.alert { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; padding: 13px 15px; border-radius: 12px; font-weight: 650; }
.alert.success { color: #11653a; background: #e6f7ee; }
.alert.error { color: #9c2639; background: #ffeaee; }
.alert.warning { color: #845400; background: #fff2d9; }

.layout { display: grid; grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sidebar h3 { margin: 0 0 15px; }
.sidebar a { display: block; padding: 11px 12px; border-radius: 10px; font-weight: 700; }
.sidebar a:hover, .sidebar a.active { color: var(--primary); background: #edf1ff; }

.job-list { display: grid; gap: 16px; }
.job-card { position: relative; overflow: hidden; }
.job-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--primary), #7996f3); }
.job-card h3 { margin: 14px 0 4px; font-size: 22px; }
.job-company { color: #2d3f65; font-weight: 800; }
.job-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: #f1f4fa; color: #54617a; font-size: 12px; font-weight: 700; }
.job-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.job-detail-copy h2 { margin-top: 0; }
.job-detail-copy h3 { margin: 28px 0 8px; }
.detail-list { display: grid; gap: 15px; }
.detail-list div { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.detail-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list small { display: block; color: var(--muted); font-weight: 700; }
.detail-list strong { display: block; margin-top: 3px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 13px; }
th { color: #566178; background: #f6f8fc; font-size: 11px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
tbody tr:hover { background: #fbfcff; }
tbody tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.empty { grid-column: 1 / -1; padding: 50px 24px; text-align: center; color: var(--muted); }
.empty i { display: block; margin-bottom: 12px; color: #9aace2; font-size: 38px; }

.workspace-section { padding: 38px 0 72px; }
.workspace-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 25px; align-items: start; }
.workspace-sidebar {
  position: sticky;
  top: 94px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.workspace-profile { display: flex; align-items: center; gap: 11px; padding: 19px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #f6f8ff, #fff); }
.workspace-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--primary), #7290ed); font-weight: 900; }
.workspace-profile strong, .workspace-profile span { display: block; }
.workspace-profile strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.workspace-profile span { color: var(--muted); font-size: 10px; font-weight: 700; }
.workspace-nav { display: grid; gap: 5px; padding: 12px; }
.workspace-nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 9px 11px; border-radius: 10px; color: #566178; font-size: 13px; font-weight: 800; }
.workspace-nav a i { width: 20px; color: #8291af; font-size: 17px; }
.workspace-nav a:hover, .workspace-nav a.active { color: var(--primary); background: #edf1ff; }
.workspace-nav a.active i { color: var(--primary); }
.workspace-main { min-width: 0; }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.workspace-heading h1 { margin: 0; font-size: clamp(29px, 3.8vw, 43px); }
.workspace-heading p { margin: 7px 0 0; color: var(--muted); }
.dashboard-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.dash-card { position: relative; overflow: hidden; min-height: 135px; padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); color: var(--muted); font-size: 12px; font-weight: 800; }
.dash-card::after { content: ""; position: absolute; right: -22px; bottom: -25px; width: 80px; height: 80px; border-radius: 50%; background: rgba(49,87,213,.07); }
.dash-card i { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 10px; color: var(--primary); background: #edf1ff; font-size: 16px; }
.dash-card b { display: block; margin-top: 4px; color: var(--ink); font-size: 29px; line-height: 1; }
.dashboard-panel { margin-top: 20px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.progress-track { overflow: hidden; height: 9px; margin: 13px 0 4px; border-radius: 999px; background: #e8edf7; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #7290ed); }

.info-strip { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border: 1px solid #d7e1ff; border-radius: 14px; background: #f1f5ff; }
.info-strip i { color: var(--primary); font-size: 20px; }
.company-card .icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; color: var(--primary); background: #edf1ff; font-size: 23px; }
.company-card h3 { margin-bottom: 6px; }
.metric-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

.auth-section { padding: 56px 0 78px; }
.auth-shell { display: grid; grid-template-columns: .8fr 1.2fr; max-width: 980px; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-aside { padding: 42px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255,181,71,.2), transparent 30%), linear-gradient(145deg, #101c52, #3157d5); }
.auth-aside h2 { color: #fff; font-size: 34px; }
.auth-aside p { color: #dfe7ff; }
.auth-points { display: grid; gap: 13px; margin-top: 28px; }
.auth-points span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.auth-form { padding: 42px; }
.auth-form h1 { font-size: 35px; }
.auth-links { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-links a { color: var(--primary); font-weight: 800; }

.content-card { max-width: 900px; margin: 0 auto; }
.content-card h2 { margin-top: 30px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 13px; }
.contact-item i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--primary); background: #edf1ff; }

@media (max-width: 1020px) {
  .grid-4, .dashboard-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .auth-shell { grid-template-columns: 1fr; max-width: 720px; }
  .auth-aside { padding: 30px 34px; }
}

@media (max-width: 820px) {
  .grid, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout, .workspace-layout, .contact-grid { grid-template-columns: 1fr; }
  .sidebar, .workspace-sidebar { position: static; }
  .workspace-nav { display: flex; overflow-x: auto; padding-bottom: 13px; }
  .workspace-nav a { flex: 0 0 auto; white-space: nowrap; }
  .workspace-profile { display: none; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 22px, 1180px); }
  section { padding: 44px 0; }
  .page-hero { padding: 42px 0; }
  .grid, .grid-2, .grid-4, .dashboard-cards, .form-grid { grid-template-columns: 1fr; }
  .section-head, .workspace-heading, .job-actions { align-items: stretch; flex-direction: column; }
  .form-group.full { grid-column: auto; }
  .card { padding: 19px; border-radius: 15px; }
  .btn { width: 100%; }
  .table-actions .btn { width: auto; }
  .dash-card { min-height: 118px; }
  .auth-aside, .auth-form { padding: 27px 21px; }
  .auth-aside h2 { font-size: 27px; }
  .workspace-section { padding-top: 20px; }
  .workspace-sidebar { margin-inline: -2px; }
}

/* Bootstrap-aligned responsive polish */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(49, 87, 213, .12);
}

main { min-height: 52vh; }
img { height: auto; }

button,
[type="button"],
[type="submit"],
[type="reset"],
a {
  touch-action: manipulation;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(49, 87, 213, .30);
  outline-offset: 3px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(49, 87, 213, .18);
}

.form-control,
.form-select {
  max-width: 100%;
}

.table-wrap {
  scrollbar-width: thin;
  scrollbar-color: #a9b8df #eef2f9;
  -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: #eef2f9; }
.table-wrap::-webkit-scrollbar-thumb { border-radius: 999px; background: #a9b8df; }

@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .container {
    width: min(100% - 24px, 1180px);
    max-width: none;
    padding-inline: 0;
  }
  section { padding: 40px 0; }
  h1 { font-size: clamp(29px, 9vw, 40px); }
  h2 { font-size: clamp(23px, 7vw, 31px); }
  .page-hero { padding: 40px 0; }
  .page-hero p { font-size: 15px; }
  .grid,
  .grid-2,
  .grid-4,
  .dashboard-cards,
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .layout,
  .workspace-layout,
  .contact-grid { gap: 18px; }
  .sidebar { order: 2; }
  .section-head,
  .workspace-heading,
  .job-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .job-actions .btn,
  .form-actions .btn { width: 100%; }
  .job-meta { gap: 7px; }
  .job-meta span { max-width: 100%; }
  .workspace-nav {
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .workspace-nav::-webkit-scrollbar { display: none; }
  .workspace-nav a { scroll-snap-align: start; }
  .table-wrap {
    margin-inline: -2px;
    border-radius: 14px;
  }
  .auth-section { padding: 34px 0 54px; }
  .auth-shell { border-radius: 22px; }
  .auth-aside,
  .auth-form { padding: 28px 22px; }
}

@media (max-width: 575.98px) {
  .container { width: min(100% - 20px, 1180px); }
  input,
  select,
  textarea,
  .form-control { font-size: 16px; }
  .form-control { min-height: 52px; }
  .btn { min-height: 48px; }
  .page-hero { padding: 34px 0; }
  .page-hero::after { opacity: .65; }
  .card { padding: 18px; border-radius: 16px; }
  .job-card h3 { font-size: 20px; }
  .job-meta span { width: 100%; }
  .workspace-section { padding-bottom: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
