:root {
  --bg-start: #0d4cad;
  --bg-end: #081e55;
  --card: #ffffff;
  --surface: #e7e8eb;
  --surface-strong: #d9d9db;
  --text: #17213d;
  --muted: #6e778f;
  --accent: #1c5bea;
  --accent-dark: #0e3b91;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.indexbdy {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(13, 76, 173, 0.94) 42%, rgba(5, 27, 94, 1) 100%);
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
}

form {
  width: 100%;
  max-width: 920px;
}

.indexpg {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 640px;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

.design {
  position: relative;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 0%);
}

.pill-1,
.pill-2,
.pill-3,
.pill-4 {
  position: absolute;
  border-radius: 100px;
  background: linear-gradient(180deg, #0d4daf 0%, #03226c 100%);
  box-shadow: 0 22px 60px rgba(2, 21, 94, 0.2);
}

.pill-1 {
    bottom:0;
  width: 60px;
  height: 180px;
  position:absolute;
  left: -35px;
  background: linear-gradient(#0466c8,#0353a4,#001845);
  border-radius: 40px;
}

.pill-2 {
  width: 170px;
  height: 650px;
  top: -280px;
  left: -140px;
  position:absolute;
  border-radius: 200px;
  border:15px solid #9dbffb;
}

.pill-3 {
  width: 60px;
  height: 400px;
  position: absolute;
  top:-240px;
  left: -10px;
  background:linear-gradient(#0466c8,#0353a4,#001845);
  border-radius: 70px;
}

.rotate-45 {
  transform: rotate(-45deg);
}

.login {
  padding: 62px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.center {
  width: 180px;
  display: flex;
  justify-content: center;
}

.logosimg {
  width: 100%;
  display: block;
}

h4 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.text-input {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 18px;
  min-height: 56px;
}

.text-input i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #d7dbe1;
  color: #5f6f94;
  font-size: 1.15rem;
}

.text-input input,
.text-input select {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  caret-color: var(--text);
}

.text-input input::placeholder {
  color: #8d95a8;
}

.text-input select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 8px;
}

.select-input {
  position: relative;
}

.select-input::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #5f6f98;
  pointer-events: none;
}

.text-input select option {
  background: #f5f7fb;
  color: var(--text);
}

.radio-input {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 12px;
}

.radio-input label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.96rem;
  cursor: pointer;
}

.radio-input input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.login-btn {
  width: 220px;
  padding: 14px 0;
  border: none;
  border-radius: 30px;
  background: linear-gradient(180deg, #2d7bff 0%, #0638a2 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(21, 82, 172, 0.28);
}

.login-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  .indexpg {
    grid-template-columns: 1fr;
  }

  .design,
  .login {
    min-height: auto;
  }

  .login {
    padding: 40px 28px;
  }
}

@media (max-width: 520px) {
  body.indexbdy {
    padding: 16px;
  }

  form {
    max-width: 100%;
  }

  .indexpg {
    grid-template-columns: 1fr;
    border-radius: 24px;
    min-height: auto;
  }

  .design {
    display: none;
  }

  .login {
    padding: 32px 20px;
    min-height: auto;
  }

  .login h4 {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }

  .logosimg {
    max-width: 80px;
  }

  .center {
    margin-bottom: 20px;
  }

  .text-input {
    margin-bottom: 16px;
  }

  .text-input input,
  .text-input select {
    padding: 12px 16px;
    font-size: 16px;
  }

  .login-btn {
    padding: 14px 24px;
    font-size: 16px;
    margin-top: 16px;
  }
}
body.dashboard-page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #d9e9ff 0%, #eaf4ff 40%, #f7fbff 100%);
  font-family: "Poppins", Arial, sans-serif;
  color: #0f2a6a;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  padding: 40px 24px;
  background: #ffffff;
  border-right: 1px solid rgba(32, 63, 140, 0.12);
  box-shadow: 0 22px 40px rgba(78, 102, 163, 0.08);
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #0f2a6a;
  display: block;
  border: none;
  cursor: pointer;
  margin-bottom: 32px;
  background: transparent;
  padding: 0;
}

.brand span {
  display: inline;
  font-size: 0.9rem;
  font-weight: 700;
  color: #627fbf;
  margin-right: 6px;
}

.brand strong {
  display: inline;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f2a6a;
}

.sidebar-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(17, 67, 150, 0.08);
  color: #0f2a6a;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item i {
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-item span {
  display: inline;
  flex: 1;
}

.menu-label {
  display: block;
  font-size: 0.65rem;
  color: #627fbf;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.premium-panel {
  display: block;
  margin-top: 32px;
  padding: 20px 16px;
  background: rgba(31, 94, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(31, 94, 255, 0.12);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(17, 67, 150, 0.16);
  color: #0f2a6a;
  transform: translateX(4px);
}

.nav-item.active {
  background: rgba(17, 67, 150, 0.2);
  font-weight: 600;
  color: #0f2a6a;
}

.dashboard-main {
  flex: 1;
  padding: 38px 40px;
}

.dashboard-header,
.dashboard-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 12px;
  margin-bottom: 32px;
  position: relative;
}

/* Keep header visible while scrolling */
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #eaf4ff 0%, #f7fbff 100%);
  padding-top: 18px;
  padding-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15, 42, 106, 0.06);
}

.dashboard-header h1,
.dashboard-topbar h1 {
  margin: 0;
  color: #0f2a6a;
  font-size: 3rem;
  line-height: 1.02;
}

.dashboard-header .eyebrow,
.dashboard-topbar .eyebrow,
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5b78bc;
}

body.dashboard-page.campaign-page .dashboard-main,
body.dashboard-page.course-page .dashboard-main {
  position: relative;
  padding-top: 96px;
}

.header-meta {
  display: flex;
  gap: 12px;
}

.meta-block {
  background: rgba(239, 244, 255, 0.95);
  padding: 14px 18px;
  border-radius: 18px;
  color: #0f2a6a;
  border: 1px solid rgba(48, 88, 163, 0.12);
}

.meta-block strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  color: #0f2a6a;
}

.dashboard-grid {
  display: grid;
  gap: 24px;
}

.content-area .panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  padding: 32px;
  min-height: 520px;
  box-shadow: 0 28px 70px rgba(5, 27, 94, 0.15);
}

.panel-head h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: #0f2a6a;
}

/* Pin the top lead form under the header so it stays visible while scrolling */
.panel.sticky-panel {
  position: sticky;
  top: 88px; /* space for header */
  z-index: 50;
  border-radius: 24px;
}

.panel-head p {
  margin: 0;
  color: #55608c;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 24px;
}

.admission-page .dashboard-main {
  padding: 32px 28px 40px;
}

.admission-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.admission-page .panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 32px;
  box-shadow: 0 26px 65px rgba(17, 56, 129, 0.10);
  border: 1px solid rgba(23, 69, 158, 0.08);
}

.admission-page .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 0;
}

.admission-page .panel-head h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #0d3d7d;
}

.admission-page .panel-form,
.admission-page .photo-upload,
.admission-page .fee-structure-grid,
.admission-page .list-panel {
  padding: 0 32px 32px;
}

.admission-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.admission-page .form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admission-page .form-row.full-width {
  grid-column: 1 / -1;
}

.admission-page .form-row label {
  color: #4b5585;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admission-page .text-input {
  min-height: 60px;
  padding: 14px 18px;
  background: #f4f7ff;
  border: 1px solid #dde4f7;
  border-radius: 18px;
}

.admission-page .text-input i {
  color: #4b5d85;
  background: rgba(20, 81, 162, 0.10);
}

.admission-page .photo-upload {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}

.admission-page .photo-actions {
  display: grid;
  gap: 14px;
}

.admission-page .photo-preview {
  min-height: 220px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.96), #fff 98%);
  border: 1px dashed rgba(54, 102, 210, 0.18);
  display: grid;
  place-items: center;
  color: #7590c3;
  font-weight: 700;
}

.admission-page .fee-structure-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 18px;
  margin-top: 24px;
}

.admission-page .fee-card {
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(22, 69, 168, 0.09);
  border-radius: 26px;
  padding: 22px 18px;
  box-shadow: 0 18px 35px rgba(20, 60, 130, 0.06);
}

.admission-page .fee-card-label {
  margin: 0 0 10px;
  color: #5f6f94;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admission-page .fee-card-value {
  margin: 0;
  font-size: 1.4rem;
  color: #0f2c68;
  font-weight: 700;
}

.admission-page .fee-card-note {
  margin: 8px 0 0;
  color: #7e88af;
  font-size: 0.88rem;
}

.admission-page .fee-card-accent {
  background: linear-gradient(180deg, #eef8f4 0%, #ffffff 100%);
}

.admission-page .fee-card-warm {
  background: linear-gradient(180deg, #fff5f1 0%, #ffffff 100%);
}

.admission-page .fee-card-blue {
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
}

.admission-page .table-scroll {
  overflow: auto;
  max-height: 420px;
  border-radius: 26px;
  border: 1px solid rgba(22, 69, 168, 0.08);
}

.admission-page .admission-list-table {
  min-width: 1260px;
}

.admission-page .admission-list-table thead th {
  background: #f7f9ff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admission-page .actions-cell {
  display: flex;
  gap: 8px;
}

.admission-page .action-btn {
  border: none;
  border-radius: 14px;
  width: 40px;
  height: 40px;
  background: #eef3ff;
  color: #1d3c82;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admission-page .action-btn.delete {
  background: #ffe8eb;
  color: #b61b3c;
}

.admission-page .panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 32px 32px;
}

.admission-page .dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 42, 106, 0.09);
}

.admission-page .hero-content h1 {
  font-size: 2rem;
  max-width: 840px;
}

.admission-page .user-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 42, 106, 0.08);
  border-radius: 24px;
  padding: 14px 18px;
  box-shadow: 0 16px 30px rgba(15, 42, 106, 0.08);
}

.admission-page .user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2f6cff 0%, #0d3fa8 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .admission-grid {
    grid-template-columns: 1fr;
  }

  .admission-page .photo-upload {
    grid-template-columns: 1fr;
  }

  .admission-page .fee-structure-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .admission-page .hero-content h1 {
    font-size: 1.55rem;
  }

  .admission-page .form-grid,
  .admission-page .fee-structure-grid {
    grid-template-columns: 1fr;
  }

  .admission-page .panel-head,
  .admission-page .panel-actions {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.panel-card,
.details-box {
  border-radius: 28px;
  padding: 28px;
  background: #f7f9ff;
  min-height: 320px;
}

.details-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 16px;
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
  border: 1px solid rgba(13, 76, 173, 0.12);
  box-shadow: 0 22px 48px rgba(13, 76, 173, 0.08);
}

.detail-meta {
  margin-top: 0;
  color: #34416a;
  font-size: 0.98rem;
  line-height: 1.6;
}

.course-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

.card-title {
  margin: 0 0 22px;
  font-size: 1.4rem;
  color: #0f2a6a;
}

.fee-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe0ed;
  border-radius: 18px;
  padding: 14px 16px;
  background: #ffffff;
}

.fee-input-group span {
  color: #5f6f8e;
  font-weight: 700;
}

.fee-input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.96rem;
  color: #111d3f;
}

.details-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.details-box h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #0f2a6a;
}

.details-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(28, 91, 234, 0.10);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}

.item-table tbody tr.selected,
.item-table tbody tr:hover {
  background: rgba(28, 91, 234, 0.08);
}

.item-table th:nth-child(1),
.item-table td:nth-child(1) {
  width: 8%;
}

.item-table th:nth-child(5),
.item-table td:nth-child(5) {
  width: 20%;
}

.item-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.item-form .form-row label {
  font-size: 0.94rem;
  color: #25325c;
}

.item-form .form-row input,
.item-form .form-row textarea,
.item-form .form-row select {
  width: 100%;
  border: 1px solid #dbe0ed;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.96rem;
  color: #111d3f;
  background: #ffffff;
}

.item-form textarea {
  resize: vertical;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  border: none;
  border-radius: 18px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #1c5bea 0%, #0e3b91 100%);
  color: #ffffff;
}

.btn-reset {
  background: linear-gradient(180deg, #1c5bea 0%, #0e3b91 100%);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #0f2a6a;
  border: 1px solid #cfd6ec;
}

.btn-tertiary {
  background: rgba(28, 91, 234, 0.08);
  color: #0e3b91;
}

.btn-danger {
  background: #ffe9ec;
  color: #b02334;
  border: 1px solid #f1c0c9;
}

.details-box h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #10235f;
}

.detail-placeholder {
  margin: 18px 0 0;
  color: #5f6f8e;
  line-height: 1.7;
}

.detail-meta {
  margin-top: 14px;
  color: #34416a;
  font-size: 0.98rem;
}

.list-panel {
  margin-top: 28px;
}

.list-panel h3 {
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: #10235f;
}

.user-list-panel {
  margin-top: 28px;
}

.user-list-table {
  width: 100%;
}

.item-table td .btn,
.user-list-table td .btn {
  min-width: 80px;
}

.table-actions .btn {
  border-radius: 999px;
  padding: 10px 16px;
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.96);
  color: #0e3b91;
  border: 1px solid rgba(28, 91, 234, 0.18);
  box-shadow: 0 8px 24px rgba(28, 91, 234, 0.08);
}

.btn-tertiary:hover {
  background: #eef3ff;
}

.btn-danger {
  background: #ffeef0;
  color: #bf1f3a;
  border: 1px solid rgba(191, 31, 58, 0.16);
}

.btn-danger:hover {
  background: #ffdee3;
}

.btn-primary {
  box-shadow: 0 18px 40px rgba(28, 91, 234, 0.24);
}

.btn-secondary {
  box-shadow: 0 14px 30px rgba(15, 42, 106, 0.08);
}

.item-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
}

.item-table th,
.item-table td {
  padding: 6px 10px;
  text-align: left;
  color: #2a3860;
  vertical-align: middle;
  line-height: 1.2;
  font-size: 13px;
}

.item-table thead {
  background: #f3f6ff;
}

.item-table thead th {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}


.item-table tr {
  border-bottom: 1px solid #edf0f7;
}

.item-table tbody tr {
  height: 42px;
}

.item-table tr:last-child {
  border-bottom: none;
}

.item-table tbody tr:hover {
  background: rgba(28, 91, 234, 0.05);
}


.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.item-table td .table-actions,
.item-table td .table-actions * {
  white-space: nowrap;
}

.item-table td .table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.item-table td .table-actions .btn {
  padding: 5px 10px;
  min-height: 30px;
  font-size: 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.user-master-page .table-actions .btn {
  padding: 6px 10px;
  min-width: 70px;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
}

.user-master-page .table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.user-master-page .btn-tertiary {
  background: rgba(255, 255, 255, 0.96);
  color: #0f2a6a;
  border: 1px solid rgba(28, 91, 234, 0.18);
  box-shadow: 0 10px 24px rgba(28, 91, 234, 0.06);
}

.user-master-page .btn-tertiary:hover {
  background: #fff;
}

.user-master-page .btn-danger {
  background: linear-gradient(180deg, #ffe6ec 0%, #ffdde4 100%);
  color: #b51d3c;
  border: 1px solid rgba(181, 29, 60, 0.18);
  box-shadow: 0 10px 20px rgba(181, 29, 60, 0.08);
}

.user-master-page .btn-danger:hover {
  background: linear-gradient(180deg, #ffd4e2 0%, #ffc5d7 100%);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 240px 1fr;
  }

  .sidebar {
    width: 240px;
    min-width: 240px;
    padding: 36px 20px;
  }

  .dashboard-main {
    padding: 36px 32px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

 body.dashboard-home-page > .app-shell .sidebar {
    width: 100%;
    min-width: 100%;
    padding: 28px 24px;
    transform: translateX(-100%) !important;
  }

  body.dashboard-home-page > .app-shell .sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-toggle {
    display: grid;
  }

  .sidebar-backdrop {
    display: block;
  }

  .sidebar.open + .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-main {
    padding: 28px 24px;
    width: 100%;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 24px;
  }

  .item-form .form-row input,
  .item-form .form-row textarea,
  .item-form .form-row select {
    font-size: 0.92rem;
  }
}
@media (max-width: 520px) {
  .indexpg {
    border-radius: 24px;
  }

  .text-input,
  .radio-input {
    gap: 12px;
  }

  .login {
    padding: 28px 18px;
  }

  .login-btn {
    width: 100%;
  }
}

body.dashboard-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #e9f1ff 0%, #dfe9ff 42%, #eef4ff 100%);
  font-family: "Poppins", Arial, sans-serif;
  color: #0f2a6a;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 0;
}

.app-shell.sidebar-open {
  grid-template-columns: 280px 1fr;
}

.sidebar {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1000;
  width: 280px;
  min-width: 280px;
  background: linear-gradient(180deg, #0d3b95 0%, #102f6a 100%);
  border-radius: 0;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: none;
  transform: translateX(0);
  min-height: 100vh;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar:not(.open) {
  transform: translateX(0);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 67, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.sidebar.open + .sidebar-backdrop {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
    body.dashboard-home-page > .app-shell,
    body.dashboard-home-page > .app-shell.sidebar-open {
      grid-template-columns: 1fr !important;
    }

    body.dashboard-home-page > .app-shell .sidebar {
      transform: translateX(-100%) !important;
      width: 100% !important;
      min-width: 100% !important;
      position: fixed !important;
      inset: 0 !important;
      z-index: 1100 !important;
      overflow-y: auto !important;
    }

    body.dashboard-home-page > .app-shell .sidebar.open {
      transform: translateX(0) !important;
    }

    body.dashboard-home-page > .app-shell .sidebar-backdrop {
      display: block !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    body.dashboard-home-page > .app-shell .sidebar.open + .sidebar-backdrop {
      opacity: 1 !important;
      pointer-events: auto !important;
    }
  }


.menu-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0;
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar.open .menu-label {
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-nav .nav-item i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-nav .nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav .nav-item.active,
.sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
  box-shadow: 0 12px 24px rgba(2, 20, 75, 0.16);
  color: #ffffff;
}

.premium-panel {
  margin-top: auto;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28, 91, 234, 0.15);
  color: #64b5f6;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.premium-panel p {
  margin: 0 0 14px;
  color: #ffffff;
  line-height: 1.6;
  font-size: 0.9rem;
  font-weight: 500;
}

.premium-btn {
  width: 100%;
  background: linear-gradient(180deg, #2d7bff 0%, #0e3b91 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 0;
  font-size: 0.9rem;
}

.dashboard-main {
  width: 100%;
  padding: 40px 40px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  min-height: 100vh;
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.hero-content {
  text-align: left;
  min-width: 0;
}

.dashboard-topbar .eyebrow {
  margin: 0 0 8px;
  color: #15294b;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.dashboard-topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  line-height: 1.1;
  color: #0f2a6a;
  font-weight: 800;
}

.dashboard-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: none;
}

.dashboard-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  color: #0f2a6a;
}

.dashboard-header .eyebrow {
  margin: 0 0 10px;
  color: #15294b;
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.top-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  justify-self: end;
}

.hidden {
  display: none !important;
}

.search-wrapper {
  position: relative;
  width: min(360px, 100%);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 42, 106, 0.12);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(15, 42, 106, 0.14);
  padding: 8px 0;
  z-index: 40;
}

.search-result-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #0f2a6a;
  cursor: pointer;
  font-size: 0.95rem;
}

.search-result-item:hover {
  background: rgba(28, 91, 234, 0.08);
}

.search-result-item strong {
  font-weight: 700;
}

.search-result-item span {
  color: #5f6f8e;
  font-size: 0.82rem;
}

.search-empty {
  padding: 14px 18px;
  color: #5f6f8e;
}

.notification-wrapper {
  position: relative;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(15, 42, 106, 0.1);
  box-shadow: 0 24px 48px rgba(15, 42, 106, 0.12);
  padding: 18px;
  display: grid;
  gap: 14px;
  z-index: 40;
}

.notification-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.notification-close {
  border: none;
  background: transparent;
  color: #5f6f8e;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.notification-list li {
  background: #f6f8ff;
  color: #0f2a6a;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.95rem;
}

.date-picker-header {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.date-picker-view-btn {
  flex: 1;
  border: 1px solid rgba(15, 42, 106, 0.12);
  border-radius: 18px;
  background: #f8fbff;
  color: #0f2a6a;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}

.date-picker-view-btn.active {
  background: #0d4cad;
  color: #ffffff;
  border-color: #0d4cad;
}

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  color: #5f6f8e;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.date-picker-body {
  display: grid;
  gap: 10px;
}

.date-calendar-grid,
.date-month-grid,
.date-year-grid {
  display: grid;
  gap: 10px;
}

.date-calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-month-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.date-year-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.date-cell {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 18px;
  background: #f6f8ff;
  color: #0f2a6a;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
}

.date-empty {
  background: transparent;
  cursor: default;
}

.date-day.today {
  border: 2px solid #0d4cad;
  background: rgba(13, 76, 173, 0.08);
  color: #0d4cad;
}

.date-day.selected {
  background: #0d4cad;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(13, 76, 173, 0.22);
}

.search-highlight {
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.2);
  border-radius: 22px;
}

@media (max-width: 980px) {
  .notification-panel,
  .search-results,
  .date-picker-panel {
    right: auto;
    left: 0;
    width: min(100%, 320px);
  }
}

.date-picker-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(15, 42, 106, 0.1);
  box-shadow: 0 24px 48px rgba(15, 42, 106, 0.15);
  padding: 18px;
  display: grid;
  gap: 14px;
  z-index: 30;
}

.date-picker-panel.hidden {
  display: none;
}

.date-picker-panel label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #5f6f8e;
}

.date-picker-panel label span {
  font-weight: 600;
  color: #0f2a6a;
}

.date-picker-panel select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 42, 106, 0.14);
  background: #f8fbff;
  color: #0f2a6a;
  font-size: 1rem;
  outline: none;
}

.date-picker-panel .btn {
  justify-self: flex-end;
  min-width: 120px;
}

.search-input {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(14, 68, 135, 0.08);
  border: 1px solid rgba(34, 72, 168, 0.12);
}

.search-input i {
  color: #6d7fb0;
  font-size: 1.25rem;
}

.search-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  color: #0f2a6a;
  min-width: 220px;
}

.icon-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: none;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(14, 68, 135, 0.08);
  color: #0f2a6a;
  font-size: 1.3rem;
  cursor: pointer;
}

.icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #3ddc97;
  color: white;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.sidebar {
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar:not(.open) {
  transform: translateX(0);
}

.sidebar-toggle {
  width: 56px;
  height: 56px;
  display: none;
  place-items: center;
}

.user-master-page .app-shell {
  display: block;
  position: relative;
  padding-left: 0;
}

.user-master-page .sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  z-index: 1000;
  transform: translateX(-120%);
}

.user-master-page .sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-master-page .sidebar .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
}

.user-master-page .sidebar.open {
  transform: translateX(0);
}

/* Keep brand image visible when sidebar is closed (icons-only) for Campaign page */
body.dashboard-page.campaign-page > .app-shell .sidebar.closed .brand span,
body.dashboard-page.campaign-page > .app-shell .sidebar.closed .brand strong,
body.dashboard-page.campaign-page > .app-shell .sidebar.closed .menu-label,
body.dashboard-page.campaign-page > .app-shell .sidebar.closed .premium-panel {
  display: none !important;
}

.sidebar .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  display: inline-block;
}

.user-master-page .sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 67, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.user-master-page .sidebar.open + .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.user-master-page .dashboard-main {
  margin-left: 0;
}

.user-master-page .panel-card.user-form-panel {
  min-height: auto;
}

.user-master-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.user-master-page .form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-master-page .form-row label {
  color: #2f4468;
  font-weight: 600;
}

.user-master-page .form-row input,
.user-master-page .form-row select {
  width: 100%;
  border: 1px solid rgba(34, 68, 138, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.96rem;
  color: #10234f;
  background: #ffffff;
}

.user-master-page .form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23677fa3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.user-master-page .panel-actions.center-actions {
  justify-content: center;
}

.user-master-page .panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.user-master-page .user-list-panel {
  margin-top: 32px;
}

.user-master-page .user-list-table th,
.user-master-page .user-list-table td {
  padding: 18px 20px;
}

.user-master-page .empty-state-row td {
  text-align: center;
  color: #596c8c;
  padding: 40px 0;
}

@media (max-width: 1060px) {
  .user-master-page .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .user-master-page .sidebar {
    width: 280px;
  }
}

@media (max-width: 720px) {
  .dashboard-header {
    flex-wrap: wrap;
  }

  .dashboard-header > div {
    width: 100%;
  }

  .user-master-page .panel-actions {
    justify-content: stretch;
  }

  .user-master-page .panel-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 980px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 100%;
    transform: translateX(-120%);
    z-index: 1000;
    background: linear-gradient(180deg, #0d3b95 0%, #102f6a 100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    padding: 28px 24px;
  }
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(14, 68, 135, 0.08);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1c5bea 0%, #0e3b91 100%);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.profile-card strong {
  display: block;
  font-size: 1rem;
  color: #0f2a6a;
}

.profile-card span {
  font-size: 0.92rem;
  color: #5b78bc;
}

.date-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(17, 67, 150, 0.14);
  color: #0f2a6a;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(14, 68, 135, 0.08);
  cursor: pointer;
}

.filter-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 30px;
  margin-bottom: 34px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(78, 102, 163, 0.08);
  border: 1px solid rgba(17, 67, 150, 0.12);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  width: 100%;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.94rem;
  color: #415184;
}

.filter-field span {
  font-weight: 600;
}

.filter-field select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #dbe0ed;
  padding: 14px 18px;
  font-size: 1rem;
  color: #0f2a6a;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23677fa3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.branch-field select {
  padding-right: 42px;
}

.apply-filter {
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  align-items: stretch;
}

.source-summary-section {
  margin-bottom: 28px;
}

.source-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.source-summary-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f2a6a;
}

.source-summary-header p {
  margin: 4px 0 0;
  color: #5f6f8e;
  font-size: 0.95rem;
}


.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  overflow: visible;
  padding-bottom: 0;
}

.source-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: grid;
  place-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.source-circle {
  width: 150px;
  height: 150px;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 140deg, transparent 0 8%, var(--source-color, #1c5bea) 8% var(--source-value, 90%), rgba(28, 91, 234, 0.08) var(--source-value, 90%) 100%);
  box-shadow: 0 24px 52px rgba(15, 42, 106, 0.12);
  overflow: visible;
}

.source-circle::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #ffffff;
  z-index: 1;
}

.source-circle::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--source-color, #1c5bea);
  box-shadow: 0 10px 18px rgba(15, 42, 106, 0.12);
  z-index: 2;
}

.source-inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
}

.source-count {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f2a6a;
  line-height: 1.05;
}

.source-top {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--source-color, #1c5bea);
  line-height: 1.1;
}

.source-divider {
  width: 89px;
  height: 3px;
  background: rgb(7, 7, 8);
  border-radius: 999px;
}

.source-badge {
  position: absolute;
  bottom: -18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 42, 106, 0.1);
  box-shadow: 0 22px 35px rgba(15, 42, 106, 0.12);
  z-index: 3;
}

.source-badge i {
  font-size: 1.3rem;
  color: var(--source-color, #1c5bea);
}

.source-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f2a6a;
  text-align: center;
}

.source-card.source-google .source-circle {
  --source-color: #0d63ff;
  --source-value: 82%;
}

.source-card.source-meta .source-circle {
  --source-color: #19d66b;
  --source-value: 98%;
}

.source-card.source-sulekha .source-circle {
  --source-color: #ff7b00;
  --source-value: 74%;
}

.source-card.source-direct .source-circle {
  --source-color: #9a4dff;
  --source-value: 53%;
}

.source-card.source-reference .source-circle {
  --source-color: #ff3366;
  --source-value: 63%;
}

.source-card.source-reference .source-badge i {
  color: #ff3366;
}

.source-card.source-other .source-circle {
  --source-color: #00d2d9;
  --source-value: 28%;
}

.metric-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  min-height: 170px;
  box-shadow: 0 16px 32px rgba(5, 27, 94, 0.08);
  border: 1px solid rgba(15, 42, 106, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.metric-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #0f2a6a;
  font-size: 0.96rem;
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
}

.metric-blue .metric-icon {
  background: #d5e4ff;
  color: #1c5bea;
}

.metric-green .metric-icon {
  background: #d9f4e6;
  color: #0f8f53;
}

.metric-orange .metric-icon {
  background: #ffe8d9;
  color: #d9743a;
}

.metric-pink .metric-icon {
  background: #ffe6f0;
  color: #d64078;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f2a6a;
}

.metric-meta {
  font-size: 0.88rem;
  color: #5f6f8e;
}

.metric-bar {
  height: 8px;
  border-radius: 999px;
  background: #eef4ff;
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c5bea 0%, #0e3b91 100%);
}

.metric-footer {
  display: flex;
  justify-content: flex-end;
  color: #1c5bea;
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-main .metrics-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.dashboard-main .metrics-grid .metric-card {
  max-width: none;
  min-width: 0;
  padding: 18px;
  min-height: 170px;
  border-radius: 22px;
}

.dashboard-main .metrics-grid .metric-card-header {
  gap: 12px;
}

.dashboard-main .metrics-grid .metric-bar {
  height: 8px;
}

.collection-status-section {
  margin-bottom: 32px;
}

.collection-status-section .section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.collection-status-section .section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #0f2a6a;
}

.collection-status-section .section-heading p {
  margin: 0;
  color: #5f6f8e;
  font-size: 0.95rem;
}

.collection-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1280px) {
  .collection-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .collection-status-grid {
    grid-template-columns: 1fr;
  }
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.chart-card {
  background: #ffffff;
  border: 1px solid rgba(15, 42, 106, 0.08);
  border-radius: 36px;
  padding: 32px;
  box-shadow: 0 28px 70px rgba(5, 27, 94, 0.12);
  display: flex;
  flex-direction: column;
}

.services-grid {
  margin-bottom: 28px;
}

.service-chart-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}

.pie-chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-pie-svg {
  width: 100%;
  height: auto;
  max-width: 320px;
  filter: drop-shadow(0 16px 40px rgba(15, 42, 106, 0.12));
}

.pie-summary {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}


.pie-background {
  fill: none;
  stroke: rgba(15, 42, 106, 0.06);
  stroke-width: 1;
}

.pie-slices path {
  cursor: pointer;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.pie-slices path:hover {
  filter: brightness(1.1);
}

.pie-labels text {
   display: none;
}

.pie-info {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}
.pie-percent {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f2a6a;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}

.pie-label {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .pie-percent {
    font-size: 2rem;
  }

  .pie-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 620px) {
  .pie-percent {
    font-size: 1.7rem;
  }

  .pie-label {
    font-size: 0.9rem;
  }
}

.service-legend {
  display: grid;
  gap: 14px;
}

.legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 42, 106, 0.08);
  box-shadow: 0 12px 28px rgba(15, 42, 106, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legend-item:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 237, 0.25);
  box-shadow: 0 14px 32px rgba(47, 128, 237, 0.12);
}

.legend-item.active {
  border-color: rgba(47, 128, 237, 0.4);
  background: rgba(47, 128, 237, 0.06);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-name {
  font-size: 0.98rem;
  color: #0f2a6a;
  font-weight: 600;
}

.legend-percent {
  font-size: 0.98rem;
  color: #1c5bea;
  font-weight: 700;
}

.legend-dot.blue { background: #2f80ed; }
.legend-dot.green { background: #25c36f; }
.legend-dot.orange { background: #f7b500; }
.legend-dot.purple { background: #f25050; }
.legend-dot.teal { background: #8b5cff; }

@media (max-width: 980px) {
  .service-chart-body {
    grid-template-columns: 1fr;
  }
}


.service-item .service-label {
  font-size: 0.95rem;
  color: #5f6f8e;
  display: block;
}

.service-item .service-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f2a6a;
}

@media (max-width: 980px) {
  .service-chart-body {
    grid-template-columns: 1fr;
  }
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 42, 106, 0.06);
}

.chart-header div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #0f2a6a;
  font-weight: 700;
}

.chart-header p {
  margin: 0;
  color: #5f6f8e;
  font-size: 0.95rem;
}

.menu-btn {
  background: none;
  border: none;
  color: #5f6f8e;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: rgba(15, 42, 106, 0.06);
  color: #0f2a6a;
}

.line-chart {
  display: grid;
  gap: 20px;
}

.line-chart-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  color: #94a1c4;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  padding-right: 8px;
}

.stacked-chart-body {
  position: relative;
  min-height: 320px;
  padding: 28px 20px 24px;
  background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fc 100%);
  border-radius: 28px;
  border: 1px solid rgba(15, 42, 106, 0.06);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.stacked-chart-body::before {
  content: "";
  position: absolute;
  inset: 20px 20px 60px;
  background-image: linear-gradient(rgba(15, 42, 106, 0.04) 1px, transparent 1px);
  background-size: 100% 42px;
  pointer-events: none;
}

.stacked-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  height: 100%;
  position: relative;
  z-index: 1;
}

.bar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bar-top-label {
  color: #0f2a6a;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 20px;
}

.bar-stack {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 12px 24px rgba(15, 42, 106, 0.08);
}

.bar-stack .bar-segment:last-child {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.bar-segment {
  width: 100%;
}

.bar-1 .segment-a { height: 28%; background: #1c5bea; }
.bar-1 .segment-b { height: 16%; background: #4f75ff; }
.bar-1 .segment-c { height: 18%; background: rgba(28, 91, 234, 0.35); }
.bar-1 .segment-d { height: 10%; background: rgba(28, 91, 234, 0.18); }

.bar-2 .segment-a { height: 36%; background: #1c5bea; }
.bar-2 .segment-b { height: 20%; background: #4f75ff; }
.bar-2 .segment-c { height: 18%; background: rgba(28, 91, 234, 0.35); }
.bar-2 .segment-d { height: 10%; background: rgba(28, 91, 234, 0.18); }

.bar-3 .segment-a { height: 24%; background: #1c5bea; }
.bar-3 .segment-b { height: 14%; background: #4f75ff; }
.bar-3 .segment-c { height: 16%; background: rgba(28, 91, 234, 0.35); }
.bar-3 .segment-d { height: 8%; background: rgba(28, 91, 234, 0.18); }

.bar-4 .segment-a { height: 34%; background: #1c5bea; }
.bar-4 .segment-b { height: 18%; background: #4f75ff; }
.bar-4 .segment-c { height: 20%; background: rgba(28, 91, 234, 0.35); }
.bar-4 .segment-d { height: 10%; background: rgba(28, 91, 234, 0.18); }

.bar-5 .segment-a { height: 12%; background: #1c5bea; }
.bar-5 .segment-b { height: 8%; background: #4f75ff; }
.bar-5 .segment-c { height: 10%; background: rgba(28, 91, 234, 0.35); }
.bar-5 .segment-d { height: 6%; background: rgba(28, 91, 234, 0.18); }

.bar-6 .segment-a { height: 24%; background: #1c5bea; }
.bar-6 .segment-b { height: 14%; background: #4f75ff; }
.bar-6 .segment-c { height: 16%; background: rgba(28, 91, 234, 0.35); }
.bar-6 .segment-d { height: 10%; background: rgba(28, 91, 234, 0.18); }

.bar-7 .segment-a { height: 28%; background: #1c5bea; }
.bar-7 .segment-b { height: 16%; background: #4f75ff; }
.bar-7 .segment-c { height: 18%; background: rgba(28, 91, 234, 0.35); }
.bar-7 .segment-d { height: 12%; background: rgba(28, 91, 234, 0.18); }

.bar-footer {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.bar-footer span {
  color: #6f7a9c;
  font-size: 0.85rem;
  font-weight: 600;
}


.sales-chart {
  display: grid;
  gap: 40px;
}

.sales-chart-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  color: #94a1c4;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
}


.sales-chart-body::before {
  content: "";
  position: absolute;
  inset: 24px 20px 60px;
  background-image: linear-gradient(rgba(15, 42, 106, 0.04) 1px, transparent 1px);
  background-size: 100% 32px;
  pointer-events: none;
}

.sales-chart-body {
  position: relative;
  min-height: 380px;
  padding: 32px 24px 28px;
  background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fc 100%);
  border-radius: 28px;
  border: 1px solid rgba(15, 42, 106, 0.06);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.grouped-bars-wrapper {
  overflow-x: auto;
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.grouped-bars-wrapper::-webkit-scrollbar {
  height: 8px;
}

.grouped-bars-wrapper::-webkit-scrollbar-thumb {
  background: rgba(15, 42, 106, 0.18);
  border-radius: 999px;
}

.grouped-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: max-content;
  padding: 0 8px;
}

.month-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  min-width: 100px;
  scroll-snap-align: start;
}

.bar-group {
  display: grid;
  grid-template-columns: repeat(3, 25px);
  gap: 1px;
  align-items: end;
  width: 100%;
}

.bar-item {
  width: 25px;
  max-width: 25px;
  min-height: 48px;
  border-radius: 18px 18px 0 0;
  position: relative;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 -8px 16px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.bar-item:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
}

.bar-item::before,
.bar-item::after {
  position: absolute;
  left: 50px;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bar-item::before {
  content: attr(data-type);
  top: -42px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2d4f8a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bar-item::after {
  content: attr(data-value);
  top: -20px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f2a6a;
}

.bar-item:hover::before,
.bar-item:hover::after,
.bar-item.selected::before,
.bar-item.selected::after {
  opacity: 1;
}

.bar-item.selected {
  box-shadow: 0 18px 36px rgba(15, 42, 106, 0.16);
  transform: translateY(-4px);
}

.bar-item.inactive {
  opacity: 0.35;
}

.bar-total {
  background: #3578f0;
}

.bar-pumo {
  background: #1eb386;
}

.bar-cadd {
  background: #ff9f2d;
}

.bar-value {
  display: none;
}

.bar-label {
  color: #5f6f8e;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  margin-top: 10px;
}

.chart-legend {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chart-legend .legend-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 42, 106, 0.1);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.chart-legend .legend-item:hover {
  transform: translateY(-1px);
  background: rgba(47, 128, 237, 0.06);
}

.chart-legend .legend-item.active {
  border-color: rgba(47, 128, 237, 0.28);
  background: rgba(47, 128, 237, 0.12);
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-total {
  background: #3578f0;
}

.legend-pumo {
  background: #1eb386;
}

.legend-cadd {
  background: #ff9f2d;
}

.legend-label {
  color: #0f2a6a;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.scroll-indicator {
  color: #6f7a9c;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.chart-info-display {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(47, 128, 237, 0.08);
  border: 1px solid rgba(47, 128, 237, 0.16);
  color: #0f2a6a;
}

.chart-info-display .info-month {
  font-size: 1rem;
  font-weight: 700;
}

.chart-info-display .info-values {
  color: #22407e;
  font-size: 0.95rem;
  line-height: 1.5;
}

.point-1 { left: 10%; top: 65%; }
.point-2 { left: 26%; top: 42%; }
.point-3 { left: 42%; top: 52%; }
.point-4 { left: 58%; top: 32%; }
.point-5 { left: 74%; top: 28%; }
.point-6 { left: 90%; top: 48%; }

.branch-chart .donut-chart-card {
  display: grid;
  place-items: center;
  min-height: 240px;
  position: relative;
}

.donut-chart {
  width: 220px;
  height: 220px;
  position: relative;
}

.donut-chart-svg {
  width: 100%;
  height: 100%;
}

.donut-chart-svg .donut-ring {
  fill: #f7f9ff;
}

.donut-chart-svg .donut-segment {
  fill: none;
  stroke-linecap: round;
  cursor: pointer;
}

.donut-chart-svg .blue {
  stroke: #3578f0;
}

.donut-chart-svg .green {
  stroke: #1eb386;
}

.donut-chart-svg .orange {
  stroke: #ff9f2d;
}

.donut-chart-svg .purple {
  stroke: #9b7eff;
}

.donut-chart-svg .teal {
  stroke: #63c7d0;
}

.donut-chart-svg .donut-segment:hover {
  opacity: 0.85;
}

.donut-chart::before {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: #ffffff;
}

.branch-summary {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.branch-total {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f2a6a;
}

.branch-label {
  color: #5f6f8e;
  font-size: 0.95rem;
}

.branch-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.branch-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #f7f9ff;
  color: #0f2a6a;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.branch-item:hover,
.branch-item.active {
  background: #eef4ff;
  box-shadow: 0 14px 30px rgba(28, 91, 234, 0.1);
  transform: translateY(-1px);
}

.branch-item.active {
  border: 1px solid rgba(28, 91, 234, 0.18);
}

.branch-item .branch-name {
  font-weight: 600;
}

.branch-item strong {
  color: #10235f;
}

.branch-item .branch-percent {
  color: #1c5bea;
  font-weight: 700;
}

.branch-item:hover .branch-percent,
.branch-item.active .branch-percent {
  color: #0d4cad;
}

.branch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.branch-dot.blue { background: #3578f0; }
.branch-dot.green { background: #1eb386; }
.branch-dot.orange { background: #ff9f2d; }
.branch-dot.purple { background: #9b7eff; }
.branch-dot.teal { background: #63c7d0; }

.status-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.status-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(5, 27, 94, 0.08);
}

.status-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(28, 91, 234, 0.12);
  color: #1c5bea;
  font-size: 1.35rem;
}

.status-card p {
  margin: 0 0 6px;
  color: #5f6f8e;
  font-size: 0.95rem;
}

.status-card strong {
  font-size: 1.5rem;
  color: #0f2a6a;
}

.status-tag {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(28, 91, 234, 0.08);
  color: #0e3b91;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .service-chart-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pie-chart-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .metrics-grid,
  .status-cards {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-tools {
    justify-content: space-between;
  }

  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .chart-card,
  .status-card,
  .premium-panel,
  .filter-panel,
  .search-input,
  .profile-card,
  .icon-btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .metrics-grid,
  .status-cards {
    grid-template-columns: 1fr;
  }

  .top-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }
}

.back-button:hover {
  background: #dee8ff;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(17, 77, 166, 0.18);
  color: #0d3a7f;
  transform: translateX(2px);
}

.sidebar-note {
  font-size: 0.9rem;
  color: #b8c8f5;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.dashboard-summary {
  background: #ffffff;
  border: 1px solid rgba(13, 78, 225, 0.16);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 32px 80px rgba(1, 18, 78, 0.14);
}

.summary-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-control-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.dashboard-control-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #164ff4;
}

.dashboard-control-field::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.dashboard-select {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 14px 18px;
  padding-right: 42px;
  background: #0e3b91;
  color: #ffffff;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.dashboard-select option {
  color: #0d4cad;
  background: #ffffff;
}

.dashboard-select:focus {
  outline: 2px solid rgba(7, 63, 190, 0.35);
}

.status-pill {
  flex: 1 1 220px;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 18px 20px;
  color: #e9f0ff;
}

.status-pill strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.status-pill span {
  display: block;
  color: #b1c5ff;
  font-size: 0.88rem;
}

.status-pill-active {
  background: linear-gradient(180deg, rgba(11, 114, 255, 0.22), rgba(11, 114, 255, 0.08));
  border-color: rgba(13, 78, 225, 0.32);
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d4cad;
  margin-bottom: 18px;
}

.summary-box {
  width: 100%;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-metric-card {
  background: #f4f7ff;
  border: 1px solid #cdd7f4;
  border-radius: 24px;
  padding: 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-metric-label {
  color: #40547a;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.dashboard-metric-value {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0d4cad;
}

.dashboard-metric-value span:first-child {
  display: inline-block;
}

.dashboard-metric-percent {
  font-size: 1rem;
  font-weight: 700;
  color: #164ff4;
}

.dashboard-metric-subtitle {
  color: #5f6f8e;
  font-size: 0.9rem;
  margin: 12px 0 14px;
}

.dashboard-metric-progress {
  width: 100%;
  height: 10px;
  background: rgba(14, 59, 145, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-metric-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7aaffe 0%, #164ff4 100%);
}

@media (max-width: 1080px) {
  .dashboard-summary {
    padding: 20px;
  }

  .summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .summary-top {
    grid-template-columns: 1fr;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0;
  font-size: 2rem;
  color: #17561d;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.dashboard-header h1 {
  margin: 0.25rem 0 0;
  font-size: 2.7rem;
  line-height: 1.05;
  color: #0f2a6a;
}

.header-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.meta-block {
  padding: 16px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(15, 62, 129, 0.14);
  box-shadow: 0 14px 30px rgba(14, 68, 135, 0.08);
  text-align: right;
}

.meta-block span {
  display: block;
  font-size: 0.78rem;
  color: #4c6394;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.meta-block strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  color: #0f2a6a;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: #ffffff;
  color: var(--text);
  border-radius: 32px;
  padding: 28px 28px 30px;
  box-shadow: 0 25px 50px rgba(12, 33, 84, 0.12);
  border: 1px solid rgba(19, 54, 110, 0.08);
}

.panel-form {
  background: rgba(255, 255, 255, 0.96);
}

.user-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  gap: 10px;
}

.form-row label {
  font-weight: 700;
  color: #42516c;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #c9d2ee;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: #17213d;
  background: #fff;
  outline: none;
}

.form-row select {
  appearance: none;
}

.user-list-panel {
  margin-top: 32px;
}

.user-list-panel h3 {
  margin: 0 0 16px;
  color: #0d4cad;
}

.user-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #f9fbff;
  border-radius: 20px;
  overflow: hidden;
}

.user-list-table thead {
  background: #e6efff;
}

.user-list-table th,
.user-list-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #dfe4ff;
  color: #42516c;
}

.user-list-table tbody tr:last-child td {
  border-bottom: none;
}

.placeholder-text {
  margin-top: 20px;
  color: #5f6f98;
  line-height: 1.7;
}

.panel-placeholder {
  background: rgba(255, 255, 255, 0.9);
}

.panel-head h2 {
  margin: 0;
  font-size: 1.9rem;
  color: #0d4cad;
}

.panel-head p {
  margin: 10px 0 0;
  color: #5f6f98;
  line-height: 1.7;
}

.field-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 22px;
  background: #f6f8ff;
  border: 1px solid #dfe4ff;
}

.field-row span {
  color: #40547a;
  font-weight: 700;
}

.field-row strong {
  color: #0d4cad;
  font-size: 1.02rem;
  text-align: right;
}

.field-note {
  font-size: 0.95rem;
  color: #6e7a99;
  margin-top: 10px;
}

.panel-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #1c5bea 0%, #0638a2 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(28, 91, 234, 0.22);
}

.btn-secondary {
  background: linear-gradient(180deg, #1c5bea 0%, #0638a2 100%);
  color: #eef0f3;
  border: 1px solid rgba(64, 92, 148, 0.16);
}

.btn-tertiary {
  background: #eef3ff;
  color: #0d4cad;
  border: 1px solid #d2d9f0;
  padding: 10px 16px;
  font-weight: 700;
}

.panel-summary {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 49, 110, 0.1);
}

.section-label {
  margin: 0;
  font-size: 0.9rem;
  color: #6278bb;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.month-status-card {
  background: #f4f8ff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid #dbe4ff;
  display: grid;
  gap: 20px;
}

.status-item {
  display: grid;
  gap: 10px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.status-row span {
  color: #44567b;
  font-size: 0.95rem;
}

.status-row strong {
  color: #0d4cad;
}

.metric-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(13, 76, 173, 0.12);
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1c5bea 0%, #0d4cad 100%);
  border-radius: 999px;
}

.metric-percent {
  display: block;
  color: #2f4f8b;
  font-size: 0.9rem;
  font-weight: 700;
}

.user-list-table th:last-child,
.user-list-table td:last-child {
  width: 120px;
  text-align: center;
}

.user-list-table td {
  vertical-align: middle;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.summary-card {
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #eef4ff 0%, #f7fbff 100%);
  border: 1px solid #dbe4ff;
}

.summary-card p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #6f7c9f;
}

.summary-card strong {
  font-size: 1.2rem;
  color: #0d4cad;
}

.status-grid {
  display: grid;
  gap: 16px;
}

.metric-card {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e9f8;
}

.metric-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #40547a;
}

.metric-card p {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0d4cad;
}

.control-panel {
  padding: 22px;
  border-radius: 24px;
  background: #eef4ff;
  border: 1px solid #d7e0ff;
}

.control-panel h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: #0d4cad;
}

.control-row {
  display: grid;
  gap: 16px;
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-field label {
  font-weight: 700;
  color: #42516c;
  font-size: 0.95rem;
}

.control-field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #c9d2ee;
  background: #fff;
  color: #17213d;
  outline: none;
}

.control-field select:focus {
  border-color: #0d4cad;
  box-shadow: 0 0 0 4px rgba(28, 91, 234, 0.12);
}

@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .summary-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .summary-row {
    grid-template-columns: 1fr;
  }
  .control-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .sidebar {
    padding: 24px 18px;
  }
  .panel {
    padding: 24px 20px;
  }
  .btn {
    width: 100%;
  }
  .field-row {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .field-row strong {
    text-align: left;
  }
}

.content-area {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dashboard-main {
  min-width: 0;
}

.panel {
  width: 100%;
  max-width: 100%;
  min-height: 720px;
}

.section-grid {
  grid-template-columns: 1.35fr 0.65fr;
}

.panel-card,
.details-box {
  width: 100%;
  min-width: 0;
}

.details-box {
  min-height: 420px;

}


body.dashboard-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #e9f1ff 0%, #dfe9ff 42%, #eef4ff 100%);
}

.app-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 0;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #0d3b95 0%, #102f6a 100%);
  border-radius: 50px;
  border: none;
  box-shadow: none;
  padding: 40px 24px;
}

.brand {
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  display: block;
  background: transparent;
  border: none;
  padding: 0;
}

.brand span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  margin-top: 4px;
}

.brand strong {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline;
}

.menu-label {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar-nav .nav-item {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: 16px;
}

.sidebar-nav .nav-item.active,
.sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateX(2px);
  box-shadow: 0 12px 24px rgba(2, 20, 75, 0.16);
}

.sidebar-nav .nav-item i {
  color: rgba(255, 255, 255, 0.9);
}

.premium-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: auto;
  padding: 22px 20px;
  border-radius: 24px;
}

.premium-panel p {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.premium-badge {
  background: rgba(28, 91, 234, 0.15);
  color: #64b5f6;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  margin-bottom: 12px;
}

.dashboard-main {
  background: transparent;
  border-radius: 0;
  padding: 40px 40px;
  box-shadow: none;
  border: none;
}

.dashboard-topbar {
  margin-bottom: 24px;
}

.top-tools {
  gap: 16px;
}

.date-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid rgba(17, 67, 150, 0.14);
  box-shadow: 0 18px 42px rgba(14, 68, 135, 0.08);
  border-radius: 22px;
}

.filter-panel {
  border: 1px solid rgba(17, 67, 150, 0.14);
}

.metric-card {
  min-height: 220px;
}

.charts-grid {
  grid-template-columns: 1.5fr 1fr;
}

.status-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
}

/* ===== ADMISSION MASTER STYLES ===== */

.admission-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

.admission-main-col,
.admission-side-col {
  display: grid;
  gap: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin-top: 8px;
  border-bottom: 2px solid #0d4cad;
  color: #0d4cad;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header i {
  font-size: 18px;
}

.photo-section {
  display: grid;
  gap: 12px;
}

.photo-upload {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  background: #f5f7fa;
  border-radius: 18px;
  border: 1px solid rgba(13, 76, 173, 0.12);
}

.photo-actions {
  display: grid;
  gap: 12px;
  align-items: center;
}

.photo-preview {
  width: 140px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  border-radius: 18px;
  color: #6e778f;
  font-size: 12px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(13, 76, 173, 0.12);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview i {
  font-size: 32px;
  margin-bottom: 8px;
  color: #0d4cad;
}

.required {
  color: #dc3545;
  font-weight: bold;
}

.fee-structure-header {
  margin-top: 24px;
  padding-top: 24px;
}

.fee-structure-table {
  grid-column: 1 / -1;
  width: 100%;
  overflow-x: auto;
  padding: 16px;
  background: #f8faff;
  border-radius: 18px;
  border: 1px solid rgba(13, 76, 173, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}

.fee-structure-inner {
  min-width: 860px;
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 8px;
}

.fee-row {
  display: contents;
}

.fee-header,
.fee-subheader {
  display: contents;
}

.fee-header .fee-col {
  background: #0d4cad;
  color: white;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

.fee-subheader .fee-col {
  background: #e8efff;
  padding: 10px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  color: #5f6f8e;
}

.fee-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1dbe7;
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: center;
  background: #ffffff;
}

.fee-input:focus {
  outline: none;
  border-color: #0d4cad;
  background: #f0f6ff;
}

.admission-table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 18px 0 0;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(13, 76, 173, 0.12);
  box-shadow: 0 24px 60px rgba(13, 76, 173, 0.08);
}

.admission-list-table {
  font-size: 13px;
  min-width: 1160px;
  width: 100%;
}

.admission-list-table th,
.admission-list-table td {
  white-space: nowrap;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
}

.item-table td.table-actions,
.user-list-table td.table-actions,
.item-table td .table-actions,
.user-list-table td .table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  white-space: nowrap;
}

.table-actions .btn {
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
  min-width: 70px;
}

.followup-table td .btn,
.walkin-table td .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-success {
  background: linear-gradient(180deg, #1dbf6e 0%, #0a8a4f 100%);
  color: #ffffff;
}

.completed {
  background: rgba(32, 153, 88, 0.08);
}

.admission-list-table th {
  background: #0d4cad;
  color: white;
  padding: 12px 8px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admission-list-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #e0e4e8;
}

.admission-list-table tbody tr:hover {
  background: #f5f7fa;
}

body.dashboard-page.admission-page .dashboard-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 12px;
  margin-bottom: 28px;
}

body.dashboard-page.admission-page .dashboard-header h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  color: #0f2a6a;
  font-weight: 800;
}

body.dashboard-page.admission-page .dashboard-header .eyebrow {
  margin: 0;
  color: #5b78bc;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.admission-page .panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.admission-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #0d4cad;
  color: white;
}

.btn-primary:hover {
  background: #0a3a82;
  box-shadow: 0 4px 12px rgba(13, 76, 173, 0.3);
}

.btn-secondary {
  background: #e8ecf1;
  color: #0d4cad;
  border: 1px solid #ccc;
}

.btn-secondary:hover {
  background: #dfe4ec;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.admission-page .admission-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.admission-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admission-page .form-row {
  display: grid;
  gap: 10px;
}

.admission-page .form-row.full-width {
  grid-column: 1 / -1;
}

.admission-page .fee-structure-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.admission-page .fee-card {
  background: #ffffff;
  border: 1px solid rgba(15, 42, 106, 0.08);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 22px 48px rgba(13, 76, 173, 0.06);
}

.admission-page .fee-card-accent {
  background: #e9f8f1;
}

.admission-page .fee-card-warm {
  background: #fff6f0;
}

/* TODAY FOLLOW UP STYLES */
.today-followup-panel {
  margin-top: 32px;
}

.followup-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.followup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1c5bea 0%, #0e3b91 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(28, 91, 234, 0.3);
}

.followup-icon i {
  font-size: 28px;
  color: #ffffff;
}

.followup-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.followup-header p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--muted);
}

.followup-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
}

.followup-filters .source-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,42,106,0.08);
  order: -1;
}

.filter-row {
  display: flex;
  gap: 16px;
  flex: 1;
  min-width: 280px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.filter-group input {
  padding: 12px 16px;
  border: 1px solid rgba(15, 42, 106, 0.12);
  border-radius: 10px;
  font-size: 14px;
  font-family: "Poppins", Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  transition: all 0.2s ease;
}

.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 91, 234, 0.1);
}

.filter-actions {
  display: flex;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(28, 91, 234, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #ffffff;
}

.followup-table-wrapper {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 106, 0.08);
}

.followup-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.followup-table thead {
  background: linear-gradient(90deg, #1c5bea 0%, #0e3b91 100%);
}

.followup-table th {
  padding: 16px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.followup-table tbody tr {
  border-bottom: 1px solid rgba(15, 42, 106, 0.08);
  transition: background-color 0.2s ease;
}

.followup-table tbody tr:hover {
  background-color: rgba(28, 91, 234, 0.04);
}

.followup-table td {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}

.followup-table tbody tr:last-child {
  border-bottom: none;
}

.followup-table .no-results-cell {
  text-align: center;
  color: var(--muted);
  padding: 32px 12px;
  font-style: italic;
}

.btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-edit {
  background: var(--accent);
  color: #ffffff;
}

.btn-edit:hover {
  background: var(--accent-dark);
}

.btn-walkin {
  background: #10b981;
  color: #ffffff;
}

.btn-walkin:hover {
  background: #059669;
}

/* Responsive adjustments for followup */
@media (max-width: 1024px) {
  .followup-table {
    font-size: 12px;
  }

  .followup-table th,
  .followup-table td {
    padding: 12px 8px;
  }

  .followup-filters {
    flex-direction: column;
    gap: 12px;
  }

  .filter-row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .followup-header {
    flex-direction: column;
    text-align: center;
  }

  .followup-icon {
    margin: 0 auto;
  }

  .followup-table-wrapper {
    overflow-x: auto;
  }

  .followup-table {
    min-width: 600px;
    font-size: 11px;
  }

  .followup-table th,
  .followup-table td {
    padding: 10px 6px;
  }

  .filter-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}


.admission-page .fee-card-blue {
  background: #eef4ff;
}

.admission-page .fee-card-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5b75a7;
  text-transform: uppercase;
}

.admission-page .fee-card-value {
  margin: 10px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f2a6a;
}

.admission-page .fee-card-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #667494;
}

.admission-page .actions-cell {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.admission-page .action-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(238, 243, 255, 0.95);
  color: #0f2a6a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 42, 106, 0.08);
}

.admission-page .action-btn.delete {
  background: rgba(255, 225, 228, 0.95);
  color: #bf1f3a;
}

.admission-page .user-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(13, 76, 173, 0.08);
  justify-content: start;
}

.admission-page .user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f1ff;
  color: #0f2a6a;
  font-weight: 800;
}

.admission-page .photo-preview {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  border-radius: 18px;
  color: #5f6f8e;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  border: 1px solid rgba(13, 76, 173, 0.12);
}

@media (max-width: 768px) {
  .admission-grid {
    grid-template-columns: 1fr;
  }

  .photo-upload {
    grid-template-columns: 1fr;
  }

  .fee-structure-table {
    grid-template-columns: repeat(5, 1fr);
    font-size: 11px;
  }

  .admission-list-table {
    font-size: 11px;
  }
}

  .charts-grid,
  .metrics-grid,
  .status-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
@media (max-width: 1024px) {
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard-topbar,
  .filter-panel,
  .charts-grid,
  .metrics-grid,
  .status-cards {
    grid-template-columns: 1fr;
  }

 .source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    overflow: hidden;
    padding-bottom: 0;
  }

  .source-card {
    min-width: 0;
    width: 100%;
    scroll-snap-align: none;
  }

  .top-tools,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .profile-card,
  .date-btn,
  .icon-btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .profile-card,
  .search-input {
    width: 100%;
  }
}


body.dashboard-page .sidebar .brand {
  color: #ffffff !important;
  text-transform: uppercase;
  background: transparent;
  border: none;
}

body.dashboard-page .sidebar .brand span {
  color: #ffffff !important;
  display: block;
}

body.dashboard-page .sidebar .brand strong {
  color: #ffffff !important;
  display: block;
}

body.dashboard-page.user-master-page > .app-shell,
body.dashboard-page.campaign-page > .app-shell,
body.dashboard-page.course-page > .app-shell {
  display: block;
}

body.dashboard-page.user-master-page > .app-shell .sidebar,
body.dashboard-page.campaign-page > .app-shell .sidebar,
body.dashboard-page.course-page > .app-shell .sidebar {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 280px;
  max-width: 280px;
  transform: translateX(-120%) !important;
  z-index: 1100;
  transition: transform 0.3s ease;
}

body.dashboard-page.user-master-page > .app-shell .sidebar.open,
body.dashboard-page.campaign-page > .app-shell .sidebar.open,
body.dashboard-page.course-page > .app-shell .sidebar.open {
  transform: translateX(0) !important;
}

body.dashboard-page.user-master-page > .app-shell .sidebar + .sidebar-backdrop,
body.dashboard-page.campaign-page > .app-shell .sidebar + .sidebar-backdrop,
body.dashboard-page.course-page > .app-shell .sidebar + .sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 67, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1050;
}

body.dashboard-page.user-master-page > .app-shell .sidebar.open + .sidebar-backdrop,
body.dashboard-page.campaign-page > .app-shell .sidebar.open + .sidebar-backdrop,
body.dashboard-page.course-page > .app-shell .sidebar.open + .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.dashboard-page.user-master-page > .app-shell .dashboard-main,
body.dashboard-page.campaign-page > .app-shell .dashboard-main,
body.dashboard-page.course-page > .app-shell .dashboard-main {
  margin-left: 0;
  width: 100%;
}

body.dashboard-page.user-master-page .dashboard-main {
  position: relative;
  padding-top: 96px;
}

body.dashboard-page.user-master-page .dashboard-topbar {
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 32px;
}

body.dashboard-page.user-master-page .dashboard-topbar .eyebrow {
  margin-bottom: 10px;
}

body.dashboard-page.user-master-page .hero-content {
  width: 100%;
}

body.dashboard-page.user-master-page .sidebar-toggle,
body.dashboard-page.course-page .sidebar-toggle {
  display: grid;
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1150;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 42, 106, 0.12);
  border-radius: 18px;
  width: 56px;
  height: 56px;
  color: #0f2a6a;
}

body.dashboard-page.user-master-page .sidebar-toggle i,
body.dashboard-page.course-page .sidebar-toggle i {
  font-size: 1.25rem;
}

body.dashboard-page.campaign-page .dashboard-header,
body.dashboard-page.course-page .dashboard-header {
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 16px;
  align-items: center;
  flex-direction: column;
}

body.dashboard-page.campaign-page .dashboard-header .eyebrow,
body.dashboard-page.course-page .dashboard-header .eyebrow {
  margin-bottom: 10px;
  text-align: center;
}

body.dashboard-page.user-master-page .dashboard-topbar,
body.dashboard-page.campaign-page .dashboard-header,
body.dashboard-page.course-page .dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.dashboard-page.user-master-page .dashboard-topbar .hero-content,
body.dashboard-page.campaign-page .dashboard-header > div,
body.dashboard-page.course-page .dashboard-header > div {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

body.dashboard-page.campaign-page .sidebar-toggle,
body.dashboard-page.course-page .sidebar-toggle {
  display: grid;
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1150;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 42, 106, 0.12);
  border-radius: 18px;
  width: 56px;
  height: 56px;
  color: #0f2a6a;
}

body.dashboard-page.campaign-page .sidebar-toggle i,
body.dashboard-page.course-page .sidebar-toggle i {
  font-size: 1.25rem;
}

.campaign-page .dashboard-header > div {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.campaign-page .dashboard-header .eyebrow {
  margin-bottom: 10px;
}

body.dashboard-home-page > .app-shell {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 28px 24px 36px;
}

body.dashboard-home-page > .app-shell.sidebar-open {
  grid-template-columns: minmax(280px, 320px) 1fr;
}

body.dashboard-home-page > .app-shell .sidebar {
  width: 84px;
  min-width: 84px;
  padding: 28px 12px;
  overflow: hidden;
  transform: none !important;
}

body.dashboard-home-page > .app-shell .sidebar.open {
  width: 100%;
  min-width: 280px;
  padding: 42px 26px;
}

body.dashboard-home-page > .app-shell .sidebar.closed .brand,
body.dashboard-home-page > .app-shell .sidebar.closed .menu-label,
body.dashboard-home-page > .app-shell .sidebar.closed .premium-panel {
  display: none !important;
}

body.dashboard-home-page > .app-shell .sidebar.closed .sidebar-nav {
  gap: 12px;
}

body.dashboard-home-page > .app-shell .sidebar.closed .sidebar-nav .nav-item {
  justify-content: center;
  padding: 16px;
}

body.dashboard-home-page > .app-shell .sidebar.closed .sidebar-nav .nav-item span {
  display: none;
}

body.dashboard-home-page > .app-shell .sidebar.closed .sidebar-nav .nav-item i {
  margin: 0;
  font-size: 1.3rem;
}

body.dashboard-home-page > .app-shell .sidebar.closed .sidebar-nav .nav-item.active,
body.dashboard-home-page > .app-shell .sidebar.closed .sidebar-nav .nav-item:hover {
  transform: none;
}

body.dashboard-page.today-followup-page > .app-shell {
  grid-template-columns: 84px 1fr;
}

body.dashboard-page.today-followup-page > .app-shell.sidebar-open {
  grid-template-columns: 280px 1fr;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar {
  transition: width 0.3s ease, padding 0.3s ease;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed {
  width: 84px;
  min-width: 84px;
  padding: 28px 12px;
  overflow: hidden;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.open {
  width: 280px;
  min-width: 280px;
  padding: 40px 24px;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .brand {
  display: flex !important;
  justify-content: center;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .brand span,
body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .brand strong,
body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .menu-label,
body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .premium-panel {
  display: none !important;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .sidebar-nav {
  gap: 12px;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .sidebar-nav .nav-item {
  justify-content: center;
  padding: 16px;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .sidebar-nav .nav-item span {
  display: none;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .sidebar-nav .nav-item i {
  margin: 0;
  font-size: 1.3rem;
}

body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .sidebar-nav .nav-item.active,
body.dashboard-page.today-followup-page > .app-shell .sidebar.closed .sidebar-nav .nav-item:hover {
  transform: none;
}

body.dashboard-page.walkin-page > .app-shell {
  grid-template-columns: 84px 1fr;
}

body.dashboard-page.walkin-page > .app-shell.sidebar-open {
  grid-template-columns: 280px 1fr;
}

body.dashboard-page.walkin-page > .app-shell .sidebar {
  transition: width 0.3s ease, padding 0.3s ease;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed {
  width: 84px;
  min-width: 84px;
  padding: 28px 12px;
  overflow: hidden;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.open {
  width: 280px;
  min-width: 280px;
  padding: 40px 24px;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed .brand {
  display: flex !important;
  justify-content: center;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed .brand span,
body.dashboard-page.walkin-page > .app-shell .sidebar.closed .brand strong,
body.dashboard-page.walkin-page > .app-shell .sidebar.closed .menu-label,
body.dashboard-page.walkin-page > .app-shell .sidebar.closed .premium-panel {
  display: none !important;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed .sidebar-nav {
  gap: 12px;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed .sidebar-nav .nav-item {
  justify-content: center;
  padding: 16px;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed .sidebar-nav .nav-item span {
  display: none;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed .sidebar-nav .nav-item i {
  margin: 0;
  font-size: 1.3rem;
}

body.dashboard-page.walkin-page > .app-shell .sidebar.closed .sidebar-nav .nav-item.active,
body.dashboard-page.walkin-page > .app-shell .sidebar.closed .sidebar-nav .nav-item:hover {
  transform: none;
}

body.dashboard-page.today-followup-page .dashboard-header {
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  flex-direction: row;
  gap: 24px;
}

body.dashboard-page.today-followup-page .dashboard-header > div {
  flex: 1;
}

body.dashboard-page > .app-shell .sidebar.closed {
  width: 84px;
  min-width: 84px;
}

body.dashboard-page > .app-shell .sidebar.closed .brand,
body.dashboard-page > .app-shell .sidebar.closed .menu-label,
body.dashboard-page > .app-shell .sidebar.closed .premium-panel {
  display: none !important;
}

body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav {
  gap: 14px;
}

body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item {
  justify-content: center;
  padding: 16px;
  width: 100%;
  border-radius: 18px;
}

body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item span {
  display: none;
}

body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item i {
  margin: 0;
  font-size: 1.35rem;
}

body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item,
body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item i {
  color: rgba(255, 255, 255, 0.9);
}

body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item.active,
body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item.active i,
body.dashboard-page > .app-shell .sidebar.closed .sidebar-nav .nav-item:hover i {
  color: #ffffff;
}

body.dashboard-home-page > .app-shell .dashboard-main {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 40px;
  box-shadow: 0 45px 120px rgba(4, 19, 72, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

@media (min-width: 981px) {
  body.dashboard-home-page > .app-shell .sidebar.open + .sidebar-backdrop {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 980px) {
  body.dashboard-home-page > .app-shell,
  body.dashboard-home-page > .app-shell.sidebar-open {
    grid-template-columns: 1fr !important;
  }

  body.dashboard-home-page > .app-shell .sidebar {
    width: 100%;
    min-width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    padding: 28px 24px;
    transform: translateX(-100%) !important;
    z-index: 1000;
    overflow-y: auto;
  }

  body.dashboard-home-page > .app-shell .sidebar.open {
    transform: translateX(0) !important;
  }

  body.dashboard-home-page > .app-shell .sidebar-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.dashboard-home-page > .app-shell .sidebar.open + .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.dashboard-home-page > .app-shell .dashboard-main {
    padding: 28px 24px;
    width: 100%;
    margin-top: 0;
  }

  body.dashboard-home-page .sidebar-toggle {
    display: grid;
  }
}




body.dashboard-page .sidebar-toggle {
  display: grid;
  place-items: center;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(14, 68, 135, 0.08);
  color: #0f2a6a;
}

@media (max-width: 980px) {
  body.dashboard-home-page > .app-shell,
  body.dashboard-home-page > .app-shell.sidebar-open {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  body.dashboard-home-page > .app-shell .sidebar {
    width: 100% !important;
    min-width: 100% !important;
    position: fixed !important;
    inset: 0 !important;
    height: 100vh !important;
    padding: 28px 24px !important;
    transform: translateX(-100%) !important;
    z-index: 1100 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: linear-gradient(180deg, #0d3b95 0%, #102f6a 100%) !important;
  }

  body.dashboard-home-page > .app-shell .sidebar.open {
    transform: translateX(0) !important;
  }

  body.dashboard-home-page > .app-shell .sidebar-backdrop {
    display: block !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.dashboard-home-page > .app-shell .sidebar.open + .sidebar-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.dashboard-home-page > .app-shell .dashboard-main {
    margin-top: 0 !important;
    padding: 28px 24px !important;
    width: 100% !important;
  }

  body.dashboard-page .sidebar-toggle {
    display: grid !important;
  }
}

@media (max-width: 980px) {
  body.dashboard-home-page > .app-shell,
  body.dashboard-home-page > .app-shell.sidebar-open,
  body.dashboard-page.admission-page.walkin-page > .app-shell,
  body.dashboard-page.admission-page.walkin-page > .app-shell.sidebar-open {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.dashboard-home-page > .app-shell .sidebar,
  body.dashboard-page.admission-page.walkin-page > .app-shell .sidebar {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    transform: translateX(-100%) !important;
    z-index: 1100 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: linear-gradient(180deg, #0d3b95 0%, #102f6a 100%) !important;
  }

  body.dashboard-home-page > .app-shell .sidebar.open,
  body.dashboard-page.admission-page.walkin-page > .app-shell .sidebar.open {
    transform: translateX(0) !important;
  }

  body.dashboard-home-page > .app-shell .sidebar-backdrop,
  body.dashboard-page.admission-page.walkin-page > .app-shell .sidebar-backdrop {
    display: block !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }

  body.dashboard-home-page > .app-shell .sidebar.open + .sidebar-backdrop,
  body.dashboard-page.admission-page.walkin-page > .app-shell .sidebar.open + .sidebar-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.dashboard-home-page > .app-shell .dashboard-main,
  body.dashboard-page.admission-page.walkin-page > .app-shell .dashboard-main {
    padding: 22px 18px !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  body.dashboard-page.admission-page.walkin-page .dashboard-header {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 18px 18px 22px !important;
    text-align: left !important;
    margin-bottom: 18px !important;
  }

  body.dashboard-page.admission-page.walkin-page .dashboard-header > div {
    margin-left: 0 !important;
    width: 100% !important;
  }

  body.dashboard-page.admission-page.walkin-page .dashboard-header .sidebar-toggle {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  .walkin-top-card,
  .walkin-personal-grid,
  .walkin-edu-prof-grid,
  .walkin-enquiry-grid,
  .walkin-card-header,
  .walkin-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .walkin-top-card {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .walkin-section {
    padding: 22px 18px !important;
  }

  .walkin-form-row,
  .walkin-panel-actions,
  .walkin-actions,
  .today-walkin-panel .branch-filters {
    width: 100% !important;
  }

  .walkin-input {
    padding: 14px 16px !important;
  }

  .walkin-input textarea {
    min-height: 120px !important;
  }

  .walkin-table {
    min-width: auto !important;
  }

  .walkin-table-wrapper {
    overflow-x: auto !important;
  }

  .walkin-table th,
  .walkin-table td {
    padding: 12px 10px !important;
  }

  .walkin-table tbody tr td:last-child {
    width: auto !important;
  }

  .walkin-actions .btn {
    min-width: 120px !important;
  }
}

body.dashboard-page.user-master-page .dashboard-topbar,
body.dashboard-page.campaign-page .dashboard-header,
body.dashboard-page.course-page .dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.dashboard-page.user-master-page .dashboard-topbar .hero-content,
body.dashboard-page.campaign-page .dashboard-header > div,
body.dashboard-page.course-page .dashboard-header > div {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

body.dashboard-page.user-master-page .dashboard-topbar h1,
body.dashboard-page.campaign-page .dashboard-header h1,
body.dashboard-page.course-page .dashboard-header h1,
body.dashboard-page.lead-page .dashboard-header h1 {
  font-size: 2.4rem;
  line-height: 1.05;
  color: #0d3c93;
}

body.dashboard-page.user-master-page .dashboard-topbar .eyebrow,
body.dashboard-page.campaign-page .dashboard-header .eyebrow,
body.dashboard-page.course-page .dashboard-header .eyebrow,
body.dashboard-page.lead-page .dashboard-header .eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d3c93;
}
body.dashboard-page.lead-page .dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: sticky;
  top: 24px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.96);
  padding-top: 16px;
}


body.dashboard-page.lead-page .dashboard-header > div {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

body.dashboard-page.lead-page .dashboard-header .eyebrow {
  margin-bottom: 10px;
  text-align: center;
}

body.dashboard-page.lead-page .sidebar-toggle {
  display: grid;
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1150;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 42, 106, 0.12);
  border-radius: 18px;
  width: 56px;
  height: 56px;
  color: #0f2a6a;
}

body.dashboard-page.lead-page .sidebar-toggle i {
  font-size: 1.25rem;
}

body.dashboard-page.lead-page > .app-shell {
  display: block;
  grid-template-columns: 1fr;
  overflow: visible;
}
body.dashboard-page.lead-page > .app-shell .sidebar {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 280px;
  max-width: 280px;
  transform: translateX(-120%) !important;
  z-index: 1100;
  transition: transform 0.3s ease;
}

body.dashboard-page.lead-page > .app-shell .sidebar.open {
  transform: translateX(0) !important;
}

body.dashboard-page.lead-page > .app-shell .sidebar + .sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 19, 67, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1050;
}

body.dashboard-page.lead-page > .app-shell .sidebar.open + .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.dashboard-page.lead-page > .app-shell .dashboard-main {
  margin-left: 0;
  width: 100%;
}

body.dashboard-page.lead-page .panel-form {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

body.dashboard-page.lead-page .lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  justify-content: center;
}

body.dashboard-page.lead-page .form-row {
  display: grid;
  gap: 10px;
}

body.dashboard-page.lead-page .form-row label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f3868;
}

body.dashboard-page.lead-page .form-row input,
body.dashboard-page.lead-page .form-row select,
body.dashboard-page.lead-page .form-row textarea {
  width: 100%;
  border: 1px solid rgba(15, 42, 106, 0.16);
  border-radius: 18px;
  padding: 16px 18px;
  background: #f8fbff;
  color: #0f2a6a;
  font-size: 0.96rem;
}

body.dashboard-page.lead-page .form-row textarea {
  resize: vertical;
}

body.dashboard-page.lead-page .form-row.form-full {
  grid-column: 1 / -1;
}

/* Reduce the visual size of remarks textarea and email input on the lead form */
body.dashboard-page.lead-page #remarks {
  max-height: 140px;
  min-height: 72px;
  overflow: auto;
}

body.dashboard-page.lead-page #email {
  max-width: 420px;
}

body.dashboard-page.lead-page .panel-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

body.dashboard-page.lead-page .panel-actions .btn {
  min-width: 150px;
}

/* Follow date placed next to Save button and styled like a button */
.panel-actions .follow-date-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-actions .follow-date-wrapper label {
  font-weight: 700;
  color: #1f3868;
}

.panel-actions .btn-like-date {
  -webkit-appearance: none;
  appearance: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 42, 106, 0.12);
  background: #ffffff;
  color: #0f2a6a;
  cursor: pointer;
}

/* make the date input visually similar to buttons on small screens */
@media (max-width: 680px) {
  .panel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .panel-actions .follow-date-wrapper {
    margin-right: 0;
    justify-content: space-between;
  }
}

body.dashboard-page.lead-page .table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

body.dashboard-page.lead-page .search-input {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 42, 106, 0.12);
  border-radius: 18px;
  padding: 12px 16px;
  width: 100%;
  max-width: 320px;
}

body.dashboard-page.lead-page .search-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

body.dashboard-page.lead-page .source-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

body.dashboard-page.lead-page .source-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 42, 106, 0.10);
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  color: #0f2a6a;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(15, 42, 106, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* Active / selected state */
body.dashboard-page.lead-page .source-filter-btn.active {
  background: linear-gradient(90deg, #1c5bea 0%, #0e3b91 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(13, 76, 173, 0.22);
  transform: translateY(-2px);
}

/* Optional color utility classes: add these classes to your source buttons if you want brand colors */
.source-google { background: linear-gradient(90deg,#0d63ff 0%,#0846d6 100%); color:#fff; }
.source-meta   { background: linear-gradient(90deg,#0bbf58 0%,#0a9f47 100%); color:#fff; }
.source-sulekha{ background: linear-gradient(90deg,#ff8a00 0%,#ff6f00 100%); color:#fff; }
.source-facebook{ background: linear-gradient(90deg,#3b82f6 0%,#2b66d6 100%); color:#fff; }

/* Small icon style inside buttons (if you include an <i> or <span> for icons) */
body.dashboard-page.lead-page .source-filter-btn i,
body.dashboard-page.lead-page .source-filter-btn .icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(15,42,106,0.06);
  color: inherit;
  font-size: 0.95rem;
}

body.dashboard-page.lead-page .source-filter-btn:hover,
body.dashboard-page.lead-page .source-filter-btn.active {
  border-color: #1150d1;
  background: #1150d1;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(17, 80, 209, 0.18);
}

body.dashboard-page.lead-page .search-input input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
}

body.dashboard-page.lead-page .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

body.dashboard-page.lead-page .status-new {
  background: #eef6ff;
  color: #0b63d6;
  border: 1px solid rgba(11,99,214,0.12);
}

body.dashboard-page.lead-page .status-contacted {
  background: #eaf7ec;
  color: #177d3d;
  border: 1px solid rgba(23,125,61,0.08);
}

body.dashboard-page.lead-page .status-call-taken {
  background: linear-gradient(90deg, #1e8bff 0%, #165fb8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 12px 28px rgba(23,114,255,0.22), 0 2px 6px rgba(0,0,0,0.06), inset 0 -2px 6px rgba(255,255,255,0.06);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 10px 20px;
  min-width: 120px;
  font-size: 0.95rem;
  position: relative;
}

body.dashboard-page.lead-page .status-call-taken::before {
  /* Use a reliable telephone glyph instead of mojibake */
  content: "\260E";
  display: inline-block;
  margin-right: 8px;
  font-size: 1.05rem;
  transform: translateY(1px);
}

/* subtle pulse for attention (low-impact) */
@keyframes status-pulse {
  0% { box-shadow: 0 10px 22px rgba(23,114,255,0.20); }
  50% { box-shadow: 0 14px 30px rgba(23,114,255,0.26); }
  100% { box-shadow: 0 10px 22px rgba(23,114,255,0.20); }
}

body.dashboard-page.lead-page .status-call-taken.pulse {
  animation: status-pulse 3s infinite ease-in-out;
}

body.dashboard-page.lead-page .status-call-not-taken {
  background: #d1d5db;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 16px;
  min-width: 120px;
}

body.dashboard-page.lead-page .status-followup {
  background: #fff4e6;
  color: #b55d00;
  border: 1px solid rgba(181,93,0,0.08);
}

body.dashboard-page.lead-page .lead-table-wrapper {
  margin-top: 8px;
  overflow: auto;
  max-height: 520px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(15, 42, 106, 0.07);
  background: #ffffff;
}

body.dashboard-page.lead-page .lead-list-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

body.dashboard-page.lead-page .lead-list-table th,
body.dashboard-page.lead-page .lead-list-table td {
    padding: 6px 10px;
    font-size: 13px;
}

body.dashboard-page.lead-page .lead-list-table thead th {
  position: sticky;
  top: 0;
  background: #eef4ff;
  z-index: 2;
  border-bottom: 1px solid rgba(15, 42, 106, 0.12);
}

body.dashboard-page.lead-page .lead-list-table tbody tr {
  height: 42px;
}

body.dashboard-page.lead-page .lead-list-table tbody tr:hover {
  background: rgba(14, 88, 243, 0.05);
}

body.dashboard-page.lead-page .lead-list-table td {
   font-size: 13px;
}

body.dashboard-page.lead-page .table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

body.dashboard-page.lead-page .lead-list-table td .btn {
   padding: 5px 10px;
  min-height: 30px;
  font-size: 12px;
  border-radius: 10px;
   white-space: nowrap;
}

body.dashboard-page.lead-page .lead-list-table td .btn i {
  font-size: 1rem;
}

body.dashboard-page.lead-page .status-pill {
display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  min-height: 34px;
  white-space: nowrap;
}

body.dashboard-page.lead-page .no-results-cell {
  text-align: center;
  padding: 24px 16px;
  color: #5f6f98;
  font-weight: 700;
}

body.dashboard-page.lead-page .toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 280px;
  max-width: 360px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(15, 42, 106, 0.94);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 26px 80px rgba(15, 42, 106, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 55;
}

body.dashboard-page.lead-page .toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.dashboard-page.lead-page .toast.toast-error {
  background: #d93025;
}

body.dashboard-page.lead-page .toast.toast-success {
  background: #0b63dd;
}

body.dashboard-page.lead-page .lead-table-wrapper::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

body.dashboard-page.lead-page .lead-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(15, 42, 106, 0.18);
  border-radius: 999px;
}

body.dashboard-page.lead-page .lead-table-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 42, 106, 0.04);
}

@media (max-width: 980px) {
  body.dashboard-page > .app-shell {
    grid-template-columns: 1fr;
  }
  body.dashboard-page > .app-shell .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 100%;
    transform: translateX(-120%);
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  body.dashboard-page > .app-shell .sidebar.open {
    transform: translateX(0);
  }
  body.dashboard-page .dashboard-main {
    padding: 28px 24px;
    margin-top: 0;
  }
}
/* Fallback overrides for source buttons (high priority) */
.source-filter-btn,
button.source-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%) !important;
  color: #0f2a6a !important;
  border: 1px solid rgba(15,42,106,0.12) !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(15,42,106,0.06) !important;
}

/* make active look obvious */
.source-filter-btn.active,
button.source-filter-btn.active{
  background: linear-gradient(90deg,#1c5bea 0%,#0e3b91 100%) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}