/* ==========================================================================
   style.css — PPMS Design System
   Palette  : Deep Navy / Police Khaki / Gold Accent / White cards
   Type     : Rajdhani (display, badge numerals) + Hind (Hindi/English body)
   Signature: Shield "badge" cards + gold rank-chevron dividers
   ========================================================================== */

:root {
  --navy-950: #060d1c;
  --navy-900: #0b1a30;
  --navy-800: #12294a;
  --navy-700: #1b3a63;
  --khaki-600: #a9926a;
  --khaki-300: #ddd0ae;
  --khaki-100: #f2ecdc;
  --gold-500: #cf9f3d;
  --gold-300: #e8cf7a;
  --white: #ffffff;
  --ink: #10182a;
  --ink-soft: #4d5871;
  --line: #e6e2d6;

  --danger: #d64545;
  --danger-soft: #fbe7e7;
  --warning: #e08a2c;
  --warning-soft: #fbf0de;
  --success: #2f9e60;
  --success-soft: #e4f5eb;
  --info: #3572b0;
  --info-soft: #e7f0f9;
  --yellow-600: #ca8a04;
  --yellow-soft: #fef9c3;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px -12px rgba(6, 13, 28, 0.25);
  --shadow-card-hover: 0 16px 40px -14px rgba(6, 13, 28, 0.35);

  --font-display: "Rajdhani", "Hind", sans-serif;
  --font-body: "Hind", "Rajdhani", sans-serif;

  --sidebar-w: 264px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  background: var(--khaki-100);
  color: var(--ink);
  scroll-behavior: smooth;
}

::selection { background: var(--gold-300); color: var(--navy-950); }

/* ---------------- Layout shell ---------------- */

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

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--khaki-100);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  border-right: 1px solid rgba(232, 207, 122, 0.15);
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(232, 207, 122, 0.15);
}

.badge-mark {
  width: 42px; height: 46px;
  position: relative;
  flex-shrink: 0;
}
.badge-mark svg { width: 100%; height: 100%; }

.brand-text .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--khaki-100);
  line-height: 1.1;
}
.brand-text .brand-sub {
  font-size: 10.5px;
  color: var(--gold-300);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-group-label {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(221, 208, 174, 0.55);
  padding: 18px 20px 6px;
}

.side-nav { flex: 1; overflow-y: auto; padding-bottom: 12px; }

.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: var(--khaki-300);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  position: relative;
}
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.side-link:hover { background: rgba(232, 207, 122, 0.08); color: var(--gold-300); }
.side-link.active {
  background: rgba(232, 207, 122, 0.12);
  color: var(--gold-300);
  border-left-color: var(--gold-500);
}

.sidebar-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(232, 207, 122, 0.15);
  font-size: 11.5px;
  color: rgba(221, 208, 174, 0.5);
}
.sidebar-foot .clock { color: var(--gold-300); font-family: var(--font-display); font-size: 15px; font-weight: 600; }

/* ---------------- Main content ---------------- */

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 22px 28px 60px;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.breadcrumb { font-size: 13px; color: var(--ink-soft); }
.breadcrumb b { color: var(--navy-900); }

.page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-950);
  margin: 2px 0 0;
}

.topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.quick-search {
  position: relative;
}
.quick-search input {
  width: 260px;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13.5px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.quick-search input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(207, 159, 61, 0.18); }
.quick-search .qs-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); pointer-events: none;
}

/* ---------------- Buttons ---------------- */

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }

.btn-primary { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: var(--khaki-100); }
.btn-primary:hover { box-shadow: 0 8px 22px -8px rgba(11, 26, 48, 0.55); }

.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-950); }
.btn-gold:hover { box-shadow: 0 8px 22px -8px rgba(207, 159, 61, 0.55); }

.btn-outline { background: var(--white); color: var(--navy-900); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { box-shadow: 0 8px 22px -8px rgba(214, 69, 69, 0.5); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-icon { padding: 8px; border-radius: 50%; }

/* ---------------- Cards / Glass ---------------- */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(230, 226, 214, 0.7);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); }

.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Stat / badge cards */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--khaki-100);
  background: linear-gradient(150deg, var(--navy-900), var(--navy-950));
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.stat-card .shield-bg {
  position: absolute; right: -18px; top: -18px; width: 110px; height: 110px;
  opacity: 0.08;
}

.stat-card .stat-label {
  font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--khaki-300); margin-bottom: 6px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700; color: var(--gold-300);
  line-height: 1;
}
.stat-card .stat-foot { margin-top: 8px; font-size: 11.5px; color: rgba(221,208,174,0.65); }

.stat-card.tone-danger .stat-value { color: #f0908f; }
.stat-card.tone-warning .stat-value { color: #f3bb75; }
.stat-card.tone-success .stat-value { color: #7cd6a3; }
.stat-card.tone-yellow .stat-value { color: #fde047; }

/* ---------------- Dashboard panels ---------------- */

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }

.panel { padding: 20px 22px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 16.5px; font-weight: 700; color: var(--navy-950);
  display: flex; align-items: center; gap: 8px;
}
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }

.list-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.list-row:last-child { border-bottom: none; }

.pill {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  display: inline-block;
}
.pill-posted { background: var(--success-soft); color: var(--success); }
.pill-attached { background: var(--warning-soft); color: var(--warning); }
.pill-transferred { background: var(--info-soft); color: var(--info); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------------- Tables / Employee grid ---------------- */

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 16px;
}
.toolbar select, .toolbar input {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 13px;
  background: var(--white);
  font-family: var(--font-body);
}

.emp-table-wrap { overflow-x: auto; }
table.emp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.emp-table th {
  text-align: left; padding: 12px 14px;
  background: var(--navy-950); color: var(--khaki-300);
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.3px;
  position: sticky; top: 0;
}
table.emp-table th:first-child { border-top-left-radius: 10px; }
table.emp-table th:last-child { border-top-right-radius: 10px; }
table.emp-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.emp-table tbody tr { transition: background .12s ease; cursor: pointer; }
table.emp-table tbody tr:hover { background: var(--khaki-100); }

.mini-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-300); font-weight: 700; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
  border: 2px solid var(--gold-300);
}

mark.hl { background: var(--gold-300); padding: 0 2px; border-radius: 3px; }

/* ---------------- Forms ---------------- */

.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 20px;
}

.field { position: relative; margin-bottom: 4px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 6px;
}
.field label .req { color: var(--danger); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; font-family: var(--font-body);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(207, 159, 61, 0.16);
}
.field textarea { resize: vertical; min-height: 70px; }
.date-preview { display: block; font-size: 11.5px; margin-top: 4px; color: var(--ink-soft); }
.date-preview.ok { color: var(--success); font-weight: 600; }

.field-warning { border-color: var(--danger) !important; }
.field-warning-text { color: var(--danger); font-size: 11.5px; margin-top: 4px; display: block; font-weight: 600; }

.section-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--navy-950);
}
.section-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-500), transparent); }
.section-divider .chevron { color: var(--gold-500); }

/* Danger variant — used for disciplinary sections (Departmental Inquiry, Punishment) so they visually
   stand apart from routine service-record sections wherever they appear: form, profile, PDF. */
.section-divider.danger { color: var(--danger); }
.section-divider.danger::after { background: linear-gradient(90deg, var(--danger), transparent); }
.section-divider.danger .chevron { color: var(--danger); }

.section-divider.lwp-yellow { color: var(--yellow-600); }
.section-divider.lwp-yellow::after { background: linear-gradient(90deg, var(--yellow-600), transparent); }
.section-divider.lwp-yellow .chevron { color: var(--yellow-600); }

.panel-title .dot.dot-danger { background: var(--danger); }
.panel-title.danger { color: var(--danger); }
.panel-title .dot.dot-yellow { background: var(--yellow-600); }
.panel-title.lwp-yellow { color: var(--yellow-600); }

.repeater-row {
  border: 1px dashed var(--line); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 12px; position: relative; background: #fbfaf6;
}
.repeater-remove {
  position: absolute; top: 10px; right: 10px;
  background: var(--danger-soft); color: var(--danger);
  border: none; border-radius: 50%; width: 26px; height: 26px; cursor: pointer;
  font-weight: 700;
}

.photo-upload {
  display: flex; align-items: center; gap: 14px;
}
.photo-preview {
  width: 84px; height: 84px; border-radius: 12px; object-fit: cover;
  border: 2px solid var(--gold-300); background: var(--khaki-100);
}

/* ---------------- Employee Profile ---------------- */

.profile-header {
  display: flex; gap: 22px; padding: 26px;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: var(--khaki-100); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.profile-header .shield-watermark { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: 0.06; }
.profile-photo {
  width: 108px; height: 108px; border-radius: 16px; object-fit: cover;
  border: 3px solid var(--gold-300); flex-shrink: 0; background: rgba(255,255,255,0.08);
}
.profile-id-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.profile-meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--khaki-300); }
.profile-meta-row b { color: var(--gold-300); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

.kv-list { font-size: 13.5px; }
.kv-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv-row span:first-child { color: var(--ink-soft); }
.kv-row span:last-child { font-weight: 600; }

/* Timeline */

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--line));
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-dot {
  position: absolute; left: -26px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px currentColor;
  display: flex; align-items: center; justify-content: center;
}
.tl-item.blue .tl-dot { color: var(--info); background: var(--info); }
.tl-item.green .tl-dot { color: var(--success); background: var(--success); }
.tl-item.orange .tl-dot { color: var(--warning); background: var(--warning); }
.tl-item.red .tl-dot { color: var(--danger); background: var(--danger); }
.tl-item.yellow .tl-dot { color: var(--yellow-600); background: var(--yellow-600); }
.tl-item.grey .tl-dot { color: #8a93a6; background: #8a93a6; }
.tl-item.grey .tl-title { text-decoration: line-through; opacity: 0.75; }

.pill-yellow { background: var(--yellow-soft); color: var(--yellow-600); }
.tl-date { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--navy-950); }
.tl-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---------------- Modal / Toast ---------------- */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6, 13, 28, 0.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 100; overflow-y: auto;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 880px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.4);
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--navy-950), var(--navy-800));
  color: var(--khaki-100); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h3 { font-family: var(--font-display); margin: 0; font-size: 18px; }
.modal-close { background: none; border: none; color: var(--khaki-300); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px 24px; max-height: 70vh; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-box.modal-sm { max-width: 460px; }

.toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy-950); color: var(--khaki-100); padding: 12px 18px;
  border-radius: var(--radius-sm); font-size: 13.5px; box-shadow: var(--shadow-card-hover);
  border-left: 4px solid var(--gold-500);
  animation: toastIn .2s ease;
  min-width: 240px;
}
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------------- Loading / empty states ---------------- */

.loader-overlay {
  position: fixed; inset: 0; background: var(--navy-950); color: var(--gold-300);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 300; gap: 14px; font-family: var(--font-display); font-size: 15px; letter-spacing: 1px;
}
.spinner { width: 44px; height: 44px; border: 3px solid rgba(232,207,122,0.25); border-top-color: var(--gold-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state svg { width: 70px; height: 70px; opacity: 0.35; margin-bottom: 10px; }

/* ---------------- Misc ---------------- */

.hidden { display: none !important; }
.text-muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.tag-conduct { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.conduct-EXCELLENT { background: var(--success-soft); color: var(--success); }
.conduct-VERY_GOOD { background: var(--info-soft); color: var(--info); }
.conduct-GOOD { background: var(--khaki-100); color: var(--khaki-600); }
.conduct-AVERAGE { background: var(--warning-soft); color: var(--warning); }
.conduct-POOR { background: var(--danger-soft); color: var(--danger); }
.conduct-UTKRISHT { background: var(--success-soft); color: var(--success); }
.conduct-SANTOSHJANAK { background: var(--warning-soft); color: var(--warning); }

.kbd { background: var(--navy-950); color: var(--gold-300); padding: 2px 7px; border-radius: 5px; font-size: 11px; font-family: monospace; }

.hamburger-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(6, 13, 28, 0.5);
  z-index: 39;
}
.sidebar-backdrop.show { display: block; }

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 16px; }
  .quick-search { flex: 1; }
  .quick-search input { width: 100%; }
  .hamburger-btn { display: flex; }
}

@media print {
  .sidebar, .topbar-actions, .toolbar, .btn { display: none !important; }
  .main-content { margin-left: 0; }
}

/* ==========================================================================
   LOGIN SCREEN — modern colorful glassmorphism over animated gradient orbs
   ========================================================================== */

.login-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b1a30 0%, #142c4d 45%, #1d3a63 100%);
  overflow: hidden;
  padding: 20px;
}

.login-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.55;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: #cf9f3d; top: -120px; left: -100px; }
.orb-2 { width: 380px; height: 380px; background: #3572b0; bottom: -110px; right: -80px; animation-delay: 3s; }
.orb-3 { width: 260px; height: 260px; background: #7c3aed; top: 55%; left: 12%; animation-delay: 6s; opacity: 0.35; }

@keyframes orbFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-46px) scale(1.12); }
}

.login-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 430px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(232, 207, 122, 0.35);
  border-radius: 22px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 34px 32px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  animation: loginCardIn .5s ease both;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand { text-align: center; margin-bottom: 22px; }
.login-badge { width: 62px; height: 66px; margin: 0 auto 10px; filter: drop-shadow(0 6px 16px rgba(207,159,61,.5)); }
.login-badge svg { width: 100%; height: 100%; }
.login-title {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 3px;
  background: linear-gradient(90deg, #e8cf7a, #f6e7b2, #cf9f3d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-subtitle { color: rgba(255,255,255,.75); font-size: 12.5px; margin-top: 2px; }

.login-tabs {
  display: flex; gap: 8px; background: rgba(255,255,255,.07);
  padding: 5px; border-radius: 12px; margin-bottom: 20px;
}
.login-tab {
  flex: 1; border: none; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.7);
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 10px 6px; border-radius: 9px;
  transition: all .25s ease;
}
.login-tab.active {
  background: linear-gradient(135deg, #cf9f3d, #e8cf7a);
  color: #0b1a30;
  box-shadow: 0 4px 14px rgba(207,159,61,.4);
}

.login-panel { animation: loginPanelIn .3s ease both; }
@keyframes loginPanelIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.login-field { margin-bottom: 14px; }
.login-field label { display: block; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.login-field input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: #fff; font-family: inherit; font-size: 14px;
  transition: border-color .2s, background .2s;
}
.login-field input::placeholder { color: rgba(255,255,255,.4); }
.login-field input:focus {
  outline: none; border-color: #e8cf7a;
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 3px rgba(232,207,122,.15);
}

.login-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #cf9f3d, #e8cf7a);
  color: #0b1a30; font-family: inherit; font-weight: 700; font-size: 14.5px;
  border: none; border-radius: 11px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 8px 22px rgba(207,159,61,.35);
  margin-top: 4px;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(207,159,61,.5); }
.login-btn:active { transform: translateY(0); }

.login-error { color: #ff9c9c; font-size: 12.5px; min-height: 18px; margin-bottom: 4px; }
.login-hint { color: rgba(255,255,255,.55); font-size: 11.5px; text-align: center; margin-top: 12px; }
.login-hint b { color: #e8cf7a; }
.login-foot { color: rgba(255,255,255,.4); font-size: 10.5px; text-align: center; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }

/* ==========================================================================
   EMPLOYEE SELF-SERVICE SHELL — limited portal after karmchari login
   ========================================================================== */

.employee-shell { min-height: 100vh; background: var(--khaki-100); }
.emp-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #0b1a30, #142c4d);
  padding: 12px 22px;
  position: sticky; top: 0; z-index: 20;
}
.emp-topbar-brand { display: flex; align-items: center; gap: 10px; color: #e8cf7a; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.employee-outlet { max-width: 760px; margin: 0 auto; padding: 26px 18px 60px; }

.sidebar-logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 10px;
  padding: 9px 10px;
  background: rgba(214, 69, 69, 0.12);
  border: 1px solid rgba(214, 69, 69, 0.35);
  border-radius: 8px;
  color: #f0908f;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sidebar-logout-btn:hover { background: rgba(214, 69, 69, 0.25); color: #fff; }

/* Tabs for admin pages that combine multiple master-data lists (e.g. मास्टर थाना / कार्यालय) */
.admin-tabs {
  display: flex; gap: 8px;
  background: var(--khaki-100);
  padding: 5px; border-radius: 11px;
  margin-bottom: 18px;
  max-width: 320px;
}
.admin-tab {
  flex: 1; border: none; cursor: pointer;
  background: transparent; color: var(--navy-700);
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 6px; border-radius: 8px;
  transition: all .2s ease;
}
.admin-tab.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: #fff;
  box-shadow: 0 3px 10px rgba(207, 159, 61, .35);
}
