@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root{
  --ink:#17211b;
  --muted:#718078;
  --paper:#f7f9f5;
  --card:rgba(255,255,255,.78);
  --line:#e4e9e3;
  --accent:#557a63;
  --accent-dark:#3f604c;
  --accent-soft:#e8f0e9;
  --cream:#f1eee5;
  --danger:#a65d5d;
  --shadow:0 18px 55px rgba(31,48,38,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:"DM Sans",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 10% 0%,rgba(107,145,119,.13),transparent 28rem),
    radial-gradient(circle at 90% 12%,rgba(219,211,185,.18),transparent 25rem),
    var(--paper);
  line-height:1.55;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.25;
  background-image:radial-gradient(#9aa79d 0.5px,transparent .5px);
  background-size:18px 18px;
  mask-image:linear-gradient(to bottom,black,transparent 75%);
}

a{color:var(--accent-dark);text-decoration:none}
a:hover{color:var(--accent);text-decoration:underline}

.navbar{
  position:sticky;
  top:0;
  z-index:50;
  height:72px;
  padding:0 max(24px,6vw);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(247,249,245,.82);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(228,233,227,.8);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font:700 22px "Space Grotesk",sans-serif;
  letter-spacing:-.7px;
}
.brand:before{
  content:"J";
  display:grid;
  place-items:center;
  width:34px;height:34px;
  border-radius:10px;
  background:var(--ink);
  color:#fff;
  font:700 16px "Space Grotesk",sans-serif;
  box-shadow:0 8px 20px rgba(23,33,27,.15);
}
.navlinks{display:flex;align-items:center;gap:5px}
.navlinks a{
  padding:9px 12px;
  border-radius:9px;
  color:#526158;
  font-size:14px;
  font-weight:600;
}
.navlinks a:hover{
  color:var(--ink);
  background:rgba(232,240,233,.8);
  text-decoration:none;
}

.container{max-width:1180px;margin:0 auto;padding:52px 24px 70px}

h1,h2,h3{
  font-family:"Space Grotesk",sans-serif;
  letter-spacing:-1px;
  line-height:1.15;
}
h1{font-size:clamp(30px,4vw,43px);margin:0 0 7px}
h2{font-size:25px}
.muted{color:var(--muted)}
small{color:var(--muted)}

.page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:30px;
}
.page-head p{margin:0}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  border:1px solid var(--accent);
  border-radius:11px;
  padding:10px 17px;
  background:var(--accent);
  color:white;
  font-weight:700;
  font-size:14px;
  box-shadow:0 8px 20px rgba(85,122,99,.18);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.btn:hover{
  color:white;
  text-decoration:none;
  transform:translateY(-2px);
  background:var(--accent-dark);
  box-shadow:0 12px 26px rgba(85,122,99,.23);
}
.btn.secondary{
  background:#fff;
  color:#536158;
  border-color:var(--line);
  box-shadow:none;
}
.btn.secondary:hover{background:#f1f4f0;color:var(--ink)}

.stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  margin:0 0 25px;
}
.stat{
  position:relative;
  overflow:hidden;
  padding:20px;
  min-height:112px;
  background:var(--card);
  border:1px solid rgba(228,233,227,.95);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.stat:after{
  content:"";
  position:absolute;
  width:70px;height:70px;
  right:-28px;bottom:-32px;
  border-radius:50%;
  background:var(--accent-soft);
}
.stat span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.8px;
}
.stat strong{
  position:relative;
  z-index:1;
  display:block;
  margin-top:7px;
  font:700 31px "Space Grotesk",sans-serif;
}

.filters{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 16px;
  padding:12px;
  background:rgba(255,255,255,.62);
  border:1px solid var(--line);
  border-radius:15px;
}
.filters input{flex:1}

input,select,textarea{
  width:100%;
  border:1px solid #dce3dc;
  border-radius:10px;
  padding:11px 12px;
  background:rgba(255,255,255,.9);
  color:var(--ink);
  font:inherit;
  outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
input:focus,select:focus,textarea:focus{
  border-color:#91a997;
  background:#fff;
  box-shadow:0 0 0 4px rgba(85,122,99,.10);
}
input:disabled{background:#f0f2ef;color:#879188}

label{
  display:block;
  margin:17px 0;
  font-size:13px;
  font-weight:700;
}
label input,label select,label textarea{
  display:block;
  margin-top:7px;
  font-weight:400;
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.table-wrap{
  overflow:hidden;
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:17px;
  box-shadow:var(--shadow);
}
table{width:100%;border-collapse:collapse}
th,td{
  text-align:left;
  padding:17px 18px;
  border-bottom:1px solid #edf0ec;
}
th{
  background:#f5f7f4;
  color:#7a867e;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.8px;
}
tbody tr{transition:background .15s}
tbody tr:hover{background:#f8faf7}
tbody tr:last-child td{border-bottom:0}

.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  border:1px solid transparent;
}
.badge.applied{background:#edf3ef;color:#46624f;border-color:#dce8df}
.badge.interview{background:#f3efe4;color:#806d3f;border-color:#e9e1cc}
.badge.offer{background:#e7f0e8;color:#3f694c;border-color:#d5e5d8}
.badge.rejected{background:#f5e9e8;color:#965b5b;border-color:#ecd8d6}
.badge.withdrawn{background:#eef0ee;color:#68736c;border-color:#e0e4e1}

.actions{white-space:nowrap}
.actions a{margin-right:10px;font-size:13px;font-weight:700}
.danger-text{color:var(--danger)}
.danger-text:hover{color:#7e3f3f}

.auth-card{
  width:min(440px,100%);
  margin:45px auto;
  padding:34px;
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 25px 70px rgba(31,48,38,.11);
}
.auth-card h1{font-size:32px}
.auth-card .muted{margin-top:-2px;margin-bottom:25px}
.auth-card p:last-child{text-align:center;font-size:14px}

.card{
  padding:28px;
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.narrow{max-width:650px}

.alert{
  padding:12px 14px;
  border-radius:10px;
  margin:15px 0;
  font-size:14px;
  border:1px solid;
}
.error{background:#f8eaea;color:#914f4f;border-color:#edd7d7}
.success{background:#e9f2ea;color:#45664e;border-color:#d6e7d8}

.empty{
  text-align:center;
  padding:50px 20px;
  color:var(--muted);
}

footer{
  padding:30px 20px 50px;
  text-align:center;
  color:#8a958e;
  font-size:12px;
}

@media(max-width:900px){
  .stats{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:700px){
  .navbar{height:auto;min-height:68px;padding:12px 18px;gap:10px;align-items:flex-start}
  .navlinks{flex-wrap:wrap;justify-content:flex-end}
  .navlinks a{padding:7px 8px;font-size:12px}
  .container{padding:35px 15px 55px}
  .page-head{align-items:stretch;flex-direction:column}
  .page-head .btn{width:100%}
  .stats{grid-template-columns:repeat(2,1fr)}
  .filters{display:grid;grid-template-columns:1fr}
  .filters .btn{width:100%}
  .grid2{grid-template-columns:1fr;gap:0}
  .table-wrap{overflow-x:auto}
  table{min-width:780px}
  .auth-card{margin:20px auto;padding:25px}
}
@media(max-width:400px){
  .stats{grid-template-columns:1fr}
  .brand{font-size:19px}
  .brand:before{width:30px;height:30px}
}
