* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #eef2f7;
  color: #1f2937;
}

button,
input,
select {
  font: inherit;
}

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

.sidebar {
  width: 250px;
  background: #0b4f8a;
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.12);
  /* Keep the menu fixed on screen while the content scrolls. */
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  padding: 24px 20px;
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.menu {
  padding: 18px 12px;
  flex: 1;
}

.menu-button {
  width: 100%;
  border: none;
  background: transparent;
  color: white;
  text-align: left;
  padding: 13px 15px;
  margin-bottom: 7px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menu-button.active {
  background: white;
  color: #0b4f8a;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px 20px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.85;
}

.main {
  flex: 1;
  min-width: 0;
}

.topbar {
  height: 76px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.page-title {
  font-size: 25px;
  font-weight: 700;
  color: #0b4f8a;
}

.user-box {
  background: #eef4fa;
  color: #0b4f8a;
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 600;
}

.content {
  padding: 30px;
}

.welcome-card {
  background: linear-gradient(135deg, #0b4f8a, #1976b9);
  color: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 25px;
  box-shadow: 0 7px 20px rgba(11, 79, 138, 0.22);
}

.welcome-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.welcome-card p {
  margin: 0;
  opacity: 0.92;
  font-size: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.09);
  border-left: 6px solid #0b4f8a;
}

.stat-card.warning {
  border-left-color: #e69b00;
}

.stat-card.danger {
  border-left-color: #c62828;
}

.stat-card.success {
  border-left-color: #2e7d32;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #16263a;
}

.panel {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.09);
}

.panel h3 {
  margin-top: 0;
  color: #0b4f8a;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.placeholder {
  padding: 24px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  color: #475569;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.page-toolbar h3 {
  margin: 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  width: 280px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.search-input:focus {
  border-color: #0b4f8a;
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.12);
}

.primary-button {
  border: none;
  background: #0b4f8a;
  color: white;
  padding: 11px 17px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.primary-button:hover {
  background: #073a66;
}

.edit-button {
  border: none;
  background: #e69b00;
  color: white;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 6px;
}

.edit-button:hover {
  background: #bd7e00;
}

.danger-button {
  border: none;
  background: #c62828;
  color: white;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
}

.danger-button:hover {
  background: #9d1f1f;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid #dce4ed;
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

th {
  background: #eaf2f9;
  color: #0b4f8a;
  text-align: left;
  padding: 13px;
  font-size: 14px;
}

td {
  padding: 13px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
}

tr:hover td {
  background: #f8fbfe;
}

.empty-row {
  text-align: center;
  color: #64748b;
  padding: 30px;
}

.student-count {
  margin-top: 12px;
  font-size: 14px;
  color: #64748b;
}

.birthday-list {
  display: grid;
  gap: 12px;
}

.birthday-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #dce4ed;
  border-radius: 10px;
}

.birthday-name {
  font-weight: 700;
  color: #0b4f8a;
}

.birthday-date {
  color: #64748b;
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 680px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  background: #0b4f8a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
}

.close-button {
  border: none;
  background: transparent;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.form-group input,
.form-group select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 11px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #0b4f8a;
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.12);
}

.form-group input.input-error {
  border-color: #c62828;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.field-error {
  display: none;
  color: #c62828;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.field-error.visible {
  display: block;
}

.modal-footer {
  padding: 18px 24px;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.secondary-button {
  border: 1px solid #cbd5e1;
  background: white;
  color: #334155;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .page-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
  }

  .search-input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: 205px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
/* -------------------------------------------------------------------------- */
/* Graduation Tracker Status Colors                                           */
/* -------------------------------------------------------------------------- */

.status-complete,
.graduation-complete,
.risk-good {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  font-weight: 700;
  line-height: 1.2;
}

.status-warning,
.graduation-warning {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 700;
  line-height: 1.2;
}

.status-danger,
.graduation-danger,
.risk-bad {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-weight: 700;
  line-height: 1.2;
}

.status-missing {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 700;
  line-height: 1.2;
}

.status-neutral {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  line-height: 1.2;
}

.graduation-table-row-danger td {
  background: #fff7f7;
}

.graduation-table-row-warning td {
  background: #fffdf5;
}

.graduation-table-row-complete td {
  background: #f7fff9;
}

.graduation-field-complete select,
.graduation-field-complete input {
  border-color: #16a34a;
  background: #f0fdf4;
}

.graduation-field-danger select,
.graduation-field-danger input {
  border-color: #dc2626;
  background: #fef2f2;
}

.graduation-field-missing select,
.graduation-field-missing input {
  border-color: #d97706;
  background: #fffbeb;
}

.graduation-section-title {
  color: #0b4f8a;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dce4ed;
}

.graduation-section-help {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
}
/* -------------------------------------------------------------------------- */
/* Student Profile                                                            */
/* -------------------------------------------------------------------------- */

.profile-button {
  border: none;
  background: #2563eb;
  color: white;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 6px;
}

.profile-button:hover {
  background: #1d4ed8;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce4ed;
}

.profile-tab-button {
  border: 1px solid #cbd5e1;
  background: white;
  color: #475569;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.profile-tab-button:hover {
  border-color: #0b4f8a;
  color: #0b4f8a;
  background: #f8fbfe;
}

.profile-tab-button.active {
  background: #0b4f8a;
  border-color: #0b4f8a;
  color: white;
}

.profile-tab-page {
  display: none;
}

.profile-tab-page.active {
  display: block;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.profile-info-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #f8fafc;
}

.profile-info-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-info-card strong {
  color: #16263a;
  font-size: 16px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    flex-direction: column;
  }

  .profile-tab-button {
    width: 100%;
    text-align: left;
  }
}
/* -------------------------------------------------------------------------- */
/* Student Profile Overview                                                   */
/* -------------------------------------------------------------------------- */

.profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.profile-overview-card {
  background: white;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.profile-overview-wide {
  grid-column: span 2;
}

.profile-section-title {
  margin: 28px 0 16px;
  color: #0b4f8a;
  padding-bottom: 9px;
  border-bottom: 1px solid #dce4ed;
}

.profile-status-success {
  display: inline-block;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  font-weight: 700;
}

.profile-status-warning {
  display: inline-block;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 700;
}

.profile-status-danger {
  display: inline-block;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .profile-overview-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 650px) {
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

  .profile-overview-wide {
    grid-column: span 1;
  }
}
/* -------------------------------------------------------------------------- */
/* Multi-select filters                                                       */
/* -------------------------------------------------------------------------- */
.multi-filter {
  position: relative;
  min-width: 155px;
}

.multi-filter-toggle {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.multi-filter-toggle:hover,
.multi-filter-toggle[aria-expanded="true"] {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.multi-filter-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.multi-filter-panel {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 7px);
  left: 0;
  width: 280px;
  max-width: min(90vw, 320px);
  padding: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.2);
}

.multi-filter-search {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
}

.multi-filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0;
}

.multi-filter-actions button {
  border: 0;
  background: transparent;
  color: #0b5fa5;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}

.multi-filter-options {
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
}

.multi-filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.multi-filter-option:hover {
  background: #eff6ff;
}

.multi-filter-option input {
  width: 16px;
  height: 16px;
  accent-color: #0b5fa5;
}

.multi-filter-empty {
  color: #64748b;
  padding: 14px 6px;
  text-align: center;
}


/* v0.3.1: bulk selection and birthday counselor filter */
.selection-column {
  width: 46px;
  min-width: 46px;
  text-align: center;
}

.selection-column input[type="checkbox"],
.student-selection-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0b5aa3;
}

.bulk-delete-button[hidden] {
  display: none !important;
}

.bulk-delete-button {
  white-space: nowrap;
}

#birthday .page-toolbar {
  margin-bottom: 18px;
}

#birthdayAdvisoryFilter {
  min-width: 190px;
}


/* v0.4.0 Birthday Dashboard */
.birthday-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.birthday-summary-card {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #7c3aed;
  border-radius: 14px;
  background: #fff;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.birthday-summary-card:hover,
.birthday-summary-card.active {
  transform: translateY(-2px);
  border-color: #7c3aed;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.17);
}

.birthday-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  color: #172554;
}

.birthday-summary-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.birthday-summary-warning {
  border-left-color: #f59e0b;
}

.birthday-toolbar-note,
.birthday-section-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.birthday-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr);
  gap: 18px;
}

.birthday-month-panel,
.birthday-upcoming-panel {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.birthday-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.birthday-section-heading h3 {
  margin: 0;
}

.birthday-result-count {
  white-space: nowrap;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 7px 11px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.birthday-month-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(34px, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 245px;
  padding: 10px 4px 0;
}

.birthday-month-bar {
  display: flex;
  min-width: 0;
  height: 225px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.birthday-month-column {
  display: block;
  width: min(34px, 72%);
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.birthday-month-bar:hover .birthday-month-column {
  transform: scaleX(1.12);
  filter: brightness(1.12);
}

.birthday-month-value {
  margin-bottom: 5px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
}

.birthday-month-label {
  margin-top: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.birthday-upcoming-panel .birthday-list {
  display: grid;
  gap: 9px;
  max-height: 470px;
  overflow-y: auto;
  padding-right: 4px;
}

.birthday-item-v2 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
}

.birthday-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ede9fe;
  font-size: 21px;
}

.birthday-person {
  min-width: 0;
}

.birthday-meta {
  margin-top: 4px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.birthday-date-block {
  display: flex;
  min-width: 112px;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.birthday-date-block span {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
}

.birthday-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.birthday-actions .birthday-email-button {
  white-space: nowrap;
}

#birthdayGradeFilter,
#birthdayMonthFilter,
#birthdayStatusFilter {
  min-width: 145px;
}

@media (max-width: 1250px) {
  .birthday-summary-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .birthday-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .birthday-summary-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .birthday-month-chart {
    overflow-x: auto;
    grid-template-columns: repeat(12, 50px);
  }

  .birthday-item-v2 {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .birthday-date-block,
  .birthday-item-v2 .birthday-actions {
    grid-column: 2;
    align-items: flex-start;
    justify-self: start;
  }
}


/* -------------------------------------------------------------------------- */
/* Harmony Counselor Pro - Modern Authentication                              */
/* -------------------------------------------------------------------------- */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.22), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(135deg, #071a33 0%, #0b3b68 52%, #0f5b8f 100%);
}

.auth-overlay.hidden {
  display: none;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(430px, 0.95fr);
  width: min(1120px, 100%);
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 90px rgba(1, 15, 35, 0.42);
  animation: authShellIn 0.45s ease-out both;
}

@keyframes authShellIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 54px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(5, 27, 55, 0.22), rgba(5, 27, 55, 0.78)),
    linear-gradient(135deg, #0b4f8a, #0f72a8 58%, #11a6a1);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 46px 46px;
}

.auth-visual-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.auth-orb-one {
  top: -90px;
  right: -80px;
  width: 330px;
  height: 330px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-orb-two {
  left: -130px;
  bottom: 110px;
  width: 290px;
  height: 290px;
  background: rgba(245, 158, 11, 0.18);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-logo-mark,
.auth-mobile-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-mobile-logo {
  display: none;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 15px;
  font-size: 15px;
}

.auth-eyebrow,
.auth-kicker {
  margin: 26px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}

.auth-eyebrow { color: rgba(255,255,255,.72); }
.auth-kicker { margin: 0 0 8px; color: #0f72a8; }

.auth-visual h1 {
  margin: 0;
  max-width: 580px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-visual-copy {
  max-width: 500px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.7;
}

.auth-feature-list {
  display: grid;
  gap: 11px;
  margin-top: 30px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 650;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 42px 50px;
  background: rgba(255,255,255,.98);
}

.auth-card {
  width: min(440px, 100%);
  max-height: none;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-card-header { margin-bottom: 22px; }

.auth-brand {
  margin: 0;
  color: #10233f;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.auth-subtitle {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 15px;
}

.auth-view {
  display: grid;
  gap: 17px;
  margin-top: 20px;
}

.auth-view.hidden,
.hidden {
  display: none !important;
}

.auth-view-heading h3 {
  margin: 0;
  color: #10233f;
  font-size: 23px;
}

.auth-view-heading p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-field input::placeholder { color: #94a3b8; }

.auth-field input:focus {
  border-color: #0f72a8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 114, 168, 0.12);
}

.password-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.password-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 12px 0 0 12px;
}

.show-password {
  flex: 0 0 52px;
  width: 52px;
  border: 1px solid #cbd5e1;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.show-password:hover { background: #eef6fb; }
.show-password.is-showing { background: #e0effa; border-color: #93c5e8; }

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: #475569 !important;
  font-size: 13px;
  font-weight: 600 !important;
}

.remember-row input {
  width: 17px;
  height: 17px;
  accent-color: #0f72a8;
}

.auth-primary {
  width: 100%;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b4f8a, #0f72a8);
  box-shadow: 0 12px 24px rgba(11,79,138,.2);
  font-size: 15px;
}

.auth-primary:hover {
  background: linear-gradient(135deg, #083e6d, #0b5f8d);
  transform: translateY(-1px);
}

.auth-secondary { width: 100%; min-height: 46px; border-radius: 12px; }

.auth-inline-link,
.auth-links button,
.auth-back {
  border: 0;
  padding: 0;
  color: #0f72a8;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.auth-inline-link:hover,
.auth-links button:hover,
.auth-back:hover { text-decoration: underline; }

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.auth-links-centered { justify-content: center; }
.auth-back { justify-self: start; margin-top: 2px; }

.auth-message {
  min-height: 0;
  border-radius: 10px;
  color: #166534;
  font-size: 13px;
  font-weight: 750;
}

.auth-message:not(:empty) {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.auth-message.error:not(:empty) {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.auth-security-box {
  display: grid;
  gap: 15px;
  padding: 16px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #f8fbfd;
}

.auth-security-question {
  margin: 0;
  color: #0b4f8a;
  font-weight: 800;
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.user-menu-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.account-modal { max-width: 560px; }
.account-summary {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 10px;
  background: #f1f5f9;
  margin-bottom: 18px;
}
.account-summary strong { font-size: 19px; color: #0b4f8a; }
.account-section {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #e2e8f0;
}
.account-section input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; width: min(600px, 100%); }
  .auth-visual { display: none; }
  .auth-panel { padding: 42px; }
  .auth-mobile-logo { display: grid; }
}

@media (max-width: 600px) {
  .auth-overlay { padding: 12px; }
  .auth-shell { min-height: auto; border-radius: 20px; }
  .auth-panel { padding: 28px 22px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-brand { font-size: 27px; }
  .auth-row-between { align-items: flex-start; flex-direction: column; }
  .auth-links { align-items: center; flex-direction: column; }
  .auth-footer { align-items: flex-start; flex-direction: column; }
}

/* Harmony Counselor Pro - Modern Dashboard                                   */
/* -------------------------------------------------------------------------- */

#dashboard {
  --dashboard-navy: #0f3154;
  --dashboard-blue: #165f9e;
  --dashboard-sky: #eaf4fc;
  --dashboard-border: #d9e5ef;
  --dashboard-muted: #64748b;
}

.dashboard-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 190px;
  margin-bottom: 24px;
  padding: 34px 38px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.22),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #0d3f70 0%,
      #1469aa 55%,
      #2889c8 100%
    );
  box-shadow: 0 18px 38px rgba(15, 49, 84, 0.22);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -95px;
  width: 280px;
  height: 280px;
  border: 46px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.dashboard-hero-copy,
.dashboard-hero-badge {
  position: relative;
  z-index: 1;
}

.dashboard-eyebrow,
.dashboard-section-kicker {
  display: block;
  margin-bottom: 8px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.dashboard-hero p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.dashboard-hero-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 290px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.dashboard-hero-badge-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 27px;
}

.dashboard-hero-badge div {
  display: grid;
  gap: 3px;
}

.dashboard-hero-badge strong {
  font-size: 14px;
}

.dashboard-hero-badge span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.dashboard-focus,
.dashboard-card {
  border: 1px solid var(--dashboard-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 49, 84, 0.07);
}

.dashboard-focus {
  padding: 26px;
  margin-bottom: 22px;
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-section-heading.compact {
  margin-bottom: 18px;
}

.dashboard-section-heading h2 {
  margin: 0;
  color: #102a43;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.dashboard-section-kicker {
  margin-bottom: 5px;
  color: #4f80ab;
}

.dashboard-text-button {
  border: 0;
  background: transparent;
  color: var(--dashboard-blue);
  cursor: pointer;
  font-weight: 700;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 16px;
}

.dashboard-metric-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 148px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 49, 84, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dashboard-metric-card:hover {
  transform: translateY(-3px);
  border-color: #9fc4e2;
  box-shadow: 0 12px 25px rgba(15, 49, 84, 0.12);
}

.dashboard-metric-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  font-size: 22px;
}

.metric-primary .dashboard-metric-icon {
  background: #e7f2fc;
}

.metric-danger .dashboard-metric-icon {
  background: #feecec;
}

.metric-success .dashboard-metric-icon {
  background: #e9f8ef;
}

.metric-warning .dashboard-metric-icon {
  background: #fff4dd;
}

.dashboard-metric-content {
  display: grid;
  min-width: 0;
}

.dashboard-metric-label {
  color: var(--dashboard-muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-metric-value {
  margin-top: 7px;
  color: #102a43;
  font-size: 33px;
  line-height: 1;
}

.dashboard-metric-note {
  margin-top: 10px;
  color: #8795a6;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
  gap: 22px;
}

.dashboard-card {
  padding: 25px;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.dashboard-action-button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 15px;
  border: 1px solid #dce6ef;
  border-radius: 15px;
  background: #f9fbfd;
  color: #102a43;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.dashboard-action-button:hover {
  transform: translateY(-2px);
  border-color: #8eb9dc;
  background: #f0f7fd;
}

.dashboard-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: #e6f1fa;
  color: #0f5d99;
  font-size: 22px;
  font-weight: 800;
}

.dashboard-action-button span:last-child {
  display: grid;
  gap: 4px;
}

.dashboard-action-button strong {
  font-size: 14px;
}

.dashboard-action-button small {
  color: #718096;
  font-size: 12px;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #1d7b46;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-status-list {
  display: grid;
  gap: 12px;
}

.dashboard-status-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e3ebf2;
  border-radius: 14px;
  background: #fafcfe;
}

.dashboard-status-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #e6f6ec;
  color: #168249;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-status-row div {
  display: grid;
  gap: 4px;
}

.dashboard-status-row strong {
  color: #20364d;
  font-size: 13px;
}

.dashboard-status-row div span {
  color: #718096;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .dashboard-hero-badge {
    min-width: 0;
    width: 100%;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* -------------------------------------------------------------------------- */
/* Harmony Counselor Pro - Professional Student Center                        */
/* -------------------------------------------------------------------------- */

#students {
  --students-navy: #102f4e;
  --students-blue: #155f9e;
  --students-blue-dark: #0e4d82;
  --students-soft: #eef6fc;
  --students-border: #dbe7f0;
  --students-muted: #64748b;
}

.students-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px 30px;
  border: 1px solid #d7e5f0;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(80, 166, 222, 0.22),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f6fbff 62%,
      #ecf6fd 100%
    );
  box-shadow: 0 10px 28px rgba(15, 49, 84, 0.08);
}

.students-kicker {
  display: block;
  margin-bottom: 7px;
  color: #3b75a6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.students-hero h1 {
  margin: 0;
  color: var(--students-navy);
  font-size: 34px;
  letter-spacing: -0.035em;
}

.students-hero p {
  margin: 9px 0 0;
  color: var(--students-muted);
  font-size: 14px;
}

.students-hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.students-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.students-button:hover {
  transform: translateY(-1px);
}

.students-button-primary {
  border: 1px solid var(--students-blue);
  color: #fff;
  background: var(--students-blue);
  box-shadow: 0 8px 18px rgba(21, 95, 158, 0.18);
}

.students-button-primary:hover {
  background: var(--students-blue-dark);
}

.students-button-secondary {
  border: 1px solid #c6d8e7;
  color: #24435f;
  background: #fff;
}

.students-button-secondary:hover {
  border-color: #8db5d4;
  background: #f5faff;
}

.students-workspace {
  padding: 24px;
  border: 1px solid var(--students-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 49, 84, 0.07);
}

.students-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.students-search-wrap {
  position: relative;
  min-width: 0;
}

.students-search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #7790a6;
  font-size: 21px;
  transform: translateY(-50%);
  pointer-events: none;
}

.students-search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdde8;
  border-radius: 12px;
  padding: 11px 15px 11px 44px;
  color: #16324b;
  background: #fbfdff;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.students-search-input::placeholder {
  color: #8a9aac;
}

.students-search-input:focus {
  border-color: #4b92c8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44, 126, 185, 0.11);
}

.students-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

#students .multi-filter {
  min-width: 160px;
}

#studentAdvisoryFilter.multi-filter {
  min-width: 190px;
}

#students .multi-filter-toggle {
  min-height: 46px;
  border-radius: 12px;
  background: #fbfdff;
}

.students-table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.students-table-heading h2 {
  margin: 0;
  color: var(--students-navy);
  font-size: 19px;
}

.students-table-heading p {
  margin: 5px 0 0;
  color: var(--students-muted);
  font-size: 12px;
}

.students-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d8e4ed;
  border-radius: 999px;
  color: #52687c;
  background: #f4f8fb;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.students-table-shell {
  overflow: auto;
  max-height: calc(100vh - 410px);
  min-height: 360px;
  border: 1px solid #dce7ef;
  border-radius: 15px;
  background: #fff;
}

.students-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

.students-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.students-table th {
  padding: 14px 13px;
  border-bottom: 1px solid #d9e5ee;
  color: #2a5477;
  background: #edf6fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.students-table th:first-child {
  border-top-left-radius: 14px;
}

.students-table th:last-child {
  border-top-right-radius: 14px;
}

.students-table td {
  padding: 13px;
  border-top: 0;
  border-bottom: 1px solid #edf1f5;
  color: #263d52;
  background: #fff;
  font-size: 13px;
  vertical-align: middle;
}

.students-table tbody tr {
  transition:
    background 0.14s ease,
    box-shadow 0.14s ease;
}

.students-table tbody tr:hover td {
  background: #f7fbfe;
}

.students-table tbody tr:last-child td {
  border-bottom: 0;
}

.students-table .selection-column {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.students-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--students-blue);
}

.students-actions-column {
  min-width: 215px;
}

#students .profile-button,
#students .edit-button,
#students .danger-button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: none;
}

#students .profile-button {
  background: #1f6fb2;
}

#students .profile-button:hover {
  background: #17588e;
}

#students .edit-button {
  background: #e99d11;
}

#students .danger-button {
  background: #cb3434;
}

#students .bulk-delete-button {
  min-height: 44px;
  border-radius: 11px;
  white-space: nowrap;
}

#students .empty-row {
  padding: 50px 24px;
  color: #718399;
  background: #fbfdff;
}

@media (max-width: 1250px) {
  .students-toolbar {
    grid-template-columns: 1fr;
  }

  .students-filter-row {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .students-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .students-hero-actions {
    width: 100%;
  }

  .students-button {
    flex: 1;
  }

  .students-workspace {
    padding: 18px;
  }

  .students-table-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .students-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  #students .multi-filter,
  #studentAdvisoryFilter.multi-filter {
    width: 100%;
    min-width: 0;
  }
}


/* -------------------------------------------------------------------------- */
/* Counselor master list                                                      */
/* -------------------------------------------------------------------------- */

.new-counselor-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 3px;
  padding: 11px;
  border: 1px solid #cfe0ec;
  border-radius: 11px;
  background: #f5faff;
}

.new-counselor-group input {
  min-width: 0;
}

.new-counselor-group .secondary-button {
  white-space: nowrap;
}

@media (max-width: 620px) {
  .new-counselor-group {
    grid-template-columns: 1fr;
  }
}


/* PATCH-002 Counselor Management */

.settings-counselor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px 30px;
  border: 1px solid #d7e5f0;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    #ffffff,
    #eef7fd
  );
  box-shadow: 0 10px 28px
    rgba(15, 49, 84, 0.08);
}

.settings-counselor-kicker {
  display: block;
  margin-bottom: 7px;
  color: #3b75a6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.settings-counselor-header h1 {
  margin: 0;
  color: #102f4e;
  font-size: 32px;
}

.settings-counselor-header p {
  margin: 9px 0 0;
  color: #64748b;
}

.settings-counselor-card {
  padding: 24px;
  border: 1px solid #dbe7f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px
    rgba(15, 49, 84, 0.07);
}

.settings-counselor-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.settings-counselor-title h2 {
  margin: 0;
  color: #102f4e;
}

.settings-counselor-title p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

#counselorManagementCount {
  padding: 7px 12px;
  border: 1px solid #d8e4ed;
  border-radius: 999px;
  background: #f4f8fb;
  color: #52687c;
  font-size: 12px;
  font-weight: 700;
}

.counselor-management-list {
  display: grid;
  gap: 10px;
}

.counselor-management-row {
  display: grid;
  grid-template-columns:
    44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e0e9f0;
  border-radius: 14px;
  background: #fbfdff;
}

.counselor-management-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #165f9e;
  color: #ffffff;
  font-weight: 800;
}

.counselor-management-info {
  display: grid;
  gap: 4px;
}

.counselor-management-info strong {
  color: #20364d;
}

.counselor-management-info span {
  color: #718096;
  font-size: 12px;
}

.counselor-management-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 700px) {
  .settings-counselor-header,
  .settings-counselor-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .counselor-management-row {
    grid-template-columns:
      44px minmax(0, 1fr);
  }

  .counselor-management-actions {
    grid-column: 2;
  }
}

/* Counselor transfer workflow */
.counselor-management-actions .secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.counselor-transfer-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe7f0;
  border-radius: 14px;
  background: #f7fbfe;
}

.counselor-transfer-summary > div:not(.counselor-transfer-arrow) {
  display: grid;
  gap: 5px;
}

.counselor-transfer-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.counselor-transfer-summary strong {
  color: #102f4e;
  font-size: 18px;
}

.counselor-transfer-arrow {
  color: #165f9e;
  font-size: 26px;
  font-weight: 900;
}

.counselor-transfer-delete-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
}

.counselor-management-message:not(:empty) {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .counselor-transfer-summary {
    grid-template-columns: 1fr;
  }

  .counselor-transfer-arrow {
    transform: rotate(90deg);
    justify-self: start;
  }
}
/* Counselor Dashboard Cards */

.counselor-management-list {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.counselor-dashboard-card {
  overflow: hidden;
  border: 1px solid #dbe7f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 10px 28px rgba(15, 49, 84, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.counselor-dashboard-card:hover {
  transform: translateY(-3px);
  border-color: #9fc4e2;
  box-shadow:
    0 16px 34px rgba(15, 49, 84, 0.14);
}
if (action === "view") {
  window.alert(
    `${name} counselor'ına bağlı öğrenciler bir sonraki adımda listelenecek.`
  );
} else if (action === "merge") {
  openTransfer(name, true);
} else if (action === "rename") {
  openEditor("rename", name);
} else if (action === "transfer") {
  openTransfer(name, false);
} else if (action === "delete") {
  deleteCounselor(name);
}
/* Counselor Workspace WOW Cards */

.counselor-dashboard-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d6e3ed;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 49, 84, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.counselor-dashboard-card:hover {
  transform: translateY(-4px);
  border-color: #8db9db;
  box-shadow: 0 18px 38px rgba(15, 49, 84, 0.16);
}

.counselor-card-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 108px;
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.2),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #0e4c82,
      #1871b5
    );
}

.counselor-management-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  color: #0e5792;
  background: #ffffff;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(5, 31, 55, 0.18);
}

.counselor-card-identity {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.counselor-card-identity strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.counselor-card-identity span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 650;
}

.counselor-health-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.counselor-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  padding: 16px;
  background: #f7fbfe;
}

.counselor-card-stats > div {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid #dce8f1;
  border-radius: 14px;
  background: #ffffff;
}

.counselor-card-stats span {
  color: #dc2626;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.counselor-card-stats strong {
  color: #123a5e;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.counselor-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 16px;
  border-top: 1px solid #e5edf3;
  background: #ffffff;
}

.counselor-card-actions .primary-button {
  grid-column: 1 / -1;
  min-height: 44px;
  border-radius: 11px;
  font-weight: 800;
}

.counselor-card-actions .secondary-button,
.counselor-card-actions .danger-button {
  width: 100%;
  min-height: 39px;
  margin: 0;
  border-radius: 10px;
  font-size: 12px;
}

.counselor-card-actions .danger-button {
  grid-column: 1 / -1;
  color: #b42318;
  border: 1px solid #fecaca;
  background: #fff5f5;
}

.counselor-card-actions .danger-button:hover {
  color: #ffffff;
  background: #b42318;
}

@media (max-width: 760px) {
  .counselor-management-list {
    grid-template-columns: 1fr;
  }

  .counselor-card-actions {
    grid-template-columns: 1fr;
  }

  .counselor-card-actions .primary-button,
  .counselor-card-actions .danger-button {
    grid-column: auto;
  }
}
/* Counselor Workspace Panel */

.counselor-workspace-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 35, 55, 0);
  pointer-events: none;
  transition: background 0.22s ease;
}

.counselor-workspace-overlay.open {
  background: rgba(15, 35, 55, 0.38);
  pointer-events: auto;
}

.counselor-workspace-panel {
  width: min(620px, 92vw);
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  box-shadow: -18px 0 46px rgba(15, 49, 84, 0.22);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.counselor-workspace-overlay.open
.counselor-workspace-panel {
  transform: translateX(0);
}

.counselor-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #0e4c82,
      #1871b5
    );
}

.counselor-workspace-kicker {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  opacity: 0.8;
}

.counselor-workspace-header h2 {
  margin: 0;
  font-size: 27px;
}

.counselor-workspace-header p {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.82;
}

.counselor-workspace-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 26px;
  cursor: pointer;
}

.counselor-workspace-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.counselor-workspace-body {
  height: calc(100% - 132px);
  overflow-y: auto;
  padding: 24px;
  background: #f6f9fc;
}

.counselor-workspace-placeholder {
  padding: 28px;
  border: 1px dashed #b7cad9;
  border-radius: 16px;
  color: #5f7386;
  background: #ffffff;
  text-align: center;
}
.workspace-student{

display:flex;

align-items:center;

gap:16px;

padding:14px 16px;

border-radius:14px;

border:1px solid #dce7f0;

background:white;

margin-bottom:10px;

transition:.18s;

}

.workspace-student:hover{

background:#f5f9fd;

border-color:#a7c6df;

}

.workspace-student-avatar{

width:42px;

height:42px;

border-radius:50%;

background:#1d65a6;

color:white;

display:flex;

align-items:center;

justify-content:center;

font-weight:700;

font-size:17px;

flex-shrink:0;

}

.workspace-student-info{

flex:1;

display:flex;

flex-direction:column;

}

.workspace-student-info strong{

font-size:15px;

color:#163d63;

}

.workspace-student-info span{

font-size:12px;

color:#7d8da1;

margin-top:2px;

}

.workspace-grade{

padding:6px 12px;

border-radius:999px;

background:#edf6ff;

color:#145b95;

font-size:12px;

font-weight:700;

white-space:nowrap;

}
.workspace-action-bar{

display:flex;

justify-content:space-between;

align-items:center;

gap:18px;

margin-top:24px;

padding:18px;

border-top:1px solid #dbe7f0;

background:white;

position:sticky;

bottom:0;

}

.workspace-action-right{

display:flex;

gap:12px;

align-items:center;

}

.workspace-action-right select{

padding:10px 12px;

border-radius:10px;

border:1px solid #dce7f0;

}

.hidden{

display:none;

}
/* Keep workspace actions visible */

.counselor-workspace-panel {
  position: relative;
}

.counselor-workspace-body {
  padding-bottom: 110px;
}

.workspace-action-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;

  margin: 0;
  padding: 16px 20px;

  border-top: 1px solid #d7e4ee;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 28px rgba(15, 49, 84, 0.12);
}

.workspace-action-bar.hidden {
  display: none;
}

.workspace-action-right {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

#workspaceTransferTarget {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;

  border: 1px solid #cbdce9;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13px;
}

#workspaceTransferButton {
  white-space: nowrap;
}
.workspace-confirm-modal {
  position: absolute;
  inset: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    rgba(13, 39, 67, 0.42);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.workspace-confirm-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.workspace-confirm-card {
  width: min(420px, 100%);
  padding: 30px;

  background: rgba(
    255,
    255,
    255,
    0.98
  );

  border: 1px solid
    rgba(189, 214, 239, 0.9);

  border-radius: 22px;

  box-shadow:
    0 24px 70px
      rgba(13, 39, 67, 0.28);

  text-align: center;

  transform: scale(1);
  opacity: 1;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.workspace-confirm-modal.hidden
.workspace-confirm-card {
  transform: scale(0.94);
  opacity: 0;
}

.workspace-confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;

  margin: 0 auto 18px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #1d74b7,
      #0b4f8a
    );

  border-radius: 50%;

  font-size: 30px;
  font-weight: 800;

  box-shadow:
    0 12px 28px
      rgba(29, 116, 183, 0.3);
}

.workspace-confirm-card h3 {
  margin: 0 0 12px;

  color: #0b355c;

  font-size: 22px;
  font-weight: 800;
}

.workspace-confirm-card p {
  margin: 0;

  color: #60758a;

  font-size: 15px;
  line-height: 1.6;
}

.workspace-confirm-card p strong {
  color: #0b4f8a;
  font-weight: 800;
}

.workspace-confirm-actions {
  display: flex;
  gap: 12px;

  margin-top: 26px;
}

.workspace-confirm-actions button {
  flex: 1;

  min-height: 44px;

  padding: 10px 18px;

  border-radius: 12px;

  font-size: 14px;
  font-weight: 750;

  cursor: pointer;

  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.workspace-confirm-actions button:hover {
  transform: translateY(-1px);
}

.workspace-confirm-cancel {
  color: #39556d;
  background: #edf3f8;

  border: 1px solid #d3e1ec;
}

.workspace-confirm-cancel:hover {
  background: #e3edf5;
}

.workspace-confirm-approve {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #1673b7,
      #07518e
    );

  border: 1px solid #07518e;

  box-shadow:
    0 8px 20px
      rgba(7, 81, 142, 0.24);
}

.workspace-confirm-approve:hover {
  box-shadow:
    0 12px 24px
      rgba(7, 81, 142, 0.32);
}

.workspace-confirm-approve:disabled,
.workspace-confirm-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

@media (max-width: 520px) {
  .workspace-confirm-card {
    padding: 24px 20px;
  }

  .workspace-confirm-actions {
    flex-direction: column-reverse;
  }
}
.workspace-toast {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 70;

  display: flex;
  align-items: center;
  gap: 12px;

  width: min(360px, calc(100% - 36px));
  padding: 14px 16px;

  background: rgba(255, 255, 255, 0.98);

  border: 1px solid
    rgba(177, 214, 193, 0.95);

  border-radius: 16px;

  box-shadow:
    0 18px 45px
      rgba(13, 39, 67, 0.22);

  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.workspace-toast.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-12px);
}

.workspace-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  color: #ffffff;
  background: #238657;

  border-radius: 50%;

  font-size: 20px;
  font-weight: 800;

  box-shadow:
    0 8px 18px
      rgba(35, 134, 87, 0.28);
}

.workspace-toast-content {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
  flex: 1;
}

.workspace-toast-content strong {
  color: #123c2b;

  font-size: 14px;
  font-weight: 800;
}

.workspace-toast-content span {
  color: #5f7469;

  font-size: 13px;
  line-height: 1.4;
}

.workspace-toast-close {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  padding: 0;

  color: #60758a;
  background: transparent;

  border: 0;
  border-radius: 8px;

  font-size: 20px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 150ms ease,
    color 150ms ease;
}

.workspace-toast-close:hover {
  color: #183b56;
  background: #eef4f8;
}
.workspace-student-profile {
  position: absolute;
  inset: 0;
  z-index: 40;

  display: flex;
  flex-direction: column;

  background: #f7faff;

  opacity: 1;
  visibility: visible;

  transform: translateX(0);

  transition:
    opacity 180ms ease,
    transform 220ms ease,
    visibility 180ms ease;
}

.workspace-student-profile.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(24px);
}

.workspace-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 64px;
  padding: 12px 18px;

  background: #ffffff;

  border-bottom: 1px solid #dce7f1;
}

.workspace-profile-back,
.workspace-profile-close {
  border: 0;
  cursor: pointer;
}

.workspace-profile-back {
  padding: 9px 12px;

  color: #0d65a7;
  background: transparent;

  border-radius: 10px;

  font-size: 14px;
  font-weight: 750;
}

.workspace-profile-back:hover {
  background: #edf6fc;
}

.workspace-profile-close {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  color: #5f7488;
  background: #eef4f8;

  border-radius: 12px;

  font-size: 24px;
  line-height: 1;
}

.workspace-profile-close:hover {
  color: #173b5a;
  background: #e2edf5;
}

.workspace-profile-content {
  flex: 1;
  overflow-y: auto;

  padding: 20px;
}

.workspace-profile-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;

  padding: 20px;

  background: #ffffff;

  border: 1px solid #dbe7f1;
  border-radius: 18px;

  box-shadow:
    0 8px 24px
      rgba(19, 64, 99, 0.08);
}

.workspace-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #247ec0,
      #0d5b99
    );

  border-radius: 50%;

  font-size: 32px;
  font-weight: 800;

  box-shadow:
    0 10px 26px
      rgba(13, 91, 153, 0.24);
}

.workspace-profile-heading {
  min-width: 0;
}

.workspace-profile-heading h2 {
  margin: 0 0 10px;

  color: #07365f;

  font-size: 25px;
  line-height: 1.2;
}

.workspace-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-profile-badges span {
  padding: 6px 10px;

  color: #215c89;
  background: #edf6fd;

  border: 1px solid #d5e9f7;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 750;
}

.workspace-profile-ai-button {
  align-self: start;

  min-height: 40px;
  padding: 9px 14px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #7357d9,
      #4b3ab6
    );

  border: 0;
  border-radius: 12px;

  font-size: 13px;
  font-weight: 750;

  cursor: pointer;

  box-shadow:
    0 9px 20px
      rgba(75, 58, 182, 0.22);

  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.workspace-profile-ai-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 12px 26px
      rgba(75, 58, 182, 0.3);
}

.workspace-profile-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 16px;
}

.workspace-profile-detail {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 0;
  padding: 14px 16px;

  background: #ffffff;

  border: 1px solid #dce7f1;
  border-radius: 14px;
}

.workspace-profile-label {
  color: #708497;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workspace-profile-detail strong {
  overflow-wrap: anywhere;

  color: #123c60;

  font-size: 14px;
  line-height: 1.4;
}

.workspace-profile-tabs {
  display: flex;
  gap: 4px;

  margin-top: 18px;
  padding: 5px;

  background: #eaf2f8;

  border-radius: 14px;
}

.workspace-profile-tab {
  flex: 1;

  min-height: 40px;
  padding: 8px 12px;

  color: #526d83;
  background: transparent;

  border: 0;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 750;

  cursor: pointer;
}

.workspace-profile-tab:hover {
  color: #124f7e;
  background: rgba(255, 255, 255, 0.55);
}

.workspace-profile-tab.active {
  color: #0c5f9d;
  background: #ffffff;

  box-shadow:
    0 4px 12px
      rgba(31, 81, 119, 0.12);
}

.workspace-profile-tab-content {
  margin-top: 14px;
}

.workspace-profile-tab-panel {
  min-height: 180px;
  padding: 20px;

  background: #ffffff;

  border: 1px solid #dce7f1;
  border-radius: 16px;

  box-shadow:
    0 6px 18px
      rgba(19, 64, 99, 0.06);
}

.workspace-profile-tab-panel h3 {
  margin: 0 0 8px;

  color: #103c60;

  font-size: 18px;
}

.workspace-profile-tab-panel p {
  margin: 0;

  color: #657b8e;

  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .workspace-profile-summary {
    grid-template-columns: auto 1fr;
  }

  .workspace-profile-ai-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .workspace-profile-details {
    grid-template-columns: 1fr;
  }
}
.workspace-overview-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 16px;
}

.workspace-overview-item {
  display: flex;
  flex-direction: column;
  gap: 6px;

  min-width: 0;
  padding: 14px;

  background: #f7faff;

  border: 1px solid #dce8f2;
  border-radius: 13px;
}

.workspace-overview-item span {
  color: #72869a;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workspace-overview-item strong {
  overflow-wrap: anywhere;

  color: #123d61;

  font-size: 14px;
  line-height: 1.4;
}

.workspace-overview-wide {
  grid-column: 1 / -1;
}

.workspace-status-badge {
  align-self: flex-start;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 12px;
}

.workspace-status-badge.active {
  color: #17663f;
  background: #ddf5e8;

  border: 1px solid #bde8d0;
}

.workspace-status-badge.inactive {
  color: #93413f;
  background: #fde8e7;

  border: 1px solid #f5c8c6;
}

@media (max-width: 520px) {
  .workspace-overview-grid {
    grid-template-columns: 1fr;
  }

  .workspace-overview-wide {
    grid-column: auto;
  }
}
.workspace-ai-menu {
  position: absolute;
  inset: 0;
  z-index: 80;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;

  background:
    rgba(20, 34, 54, 0.45);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 1;
  visibility: visible;

  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.workspace-ai-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.workspace-ai-menu-card {
  width: min(430px, 100%);
  padding: 22px;

  background: #ffffff;

  border: 1px solid #dce6f2;
  border-radius: 20px;

  box-shadow:
    0 24px 70px
      rgba(26, 39, 63, 0.28);

  transform: scale(1);
  opacity: 1;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.workspace-ai-menu.hidden
.workspace-ai-menu-card {
  transform: scale(0.95);
  opacity: 0;
}

.workspace-ai-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 18px;
}

.workspace-ai-kicker {
  display: block;

  margin-bottom: 4px;

  color: #6546c7;

  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.workspace-ai-menu-header h3 {
  margin: 0;

  color: #173b5e;

  font-size: 22px;
  font-weight: 800;
}

.workspace-ai-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 36px;

  width: 36px;
  height: 36px;

  padding: 0;

  color: #60758a;
  background: #eef3f8;

  border: 0;
  border-radius: 11px;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 150ms ease,
    color 150ms ease;
}

.workspace-ai-menu-close:hover {
  color: #243c57;
  background: #e1eaf2;
}

.workspace-ai-menu-options {
  display: grid;
  gap: 10px;
}

.workspace-ai-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 13px 14px;

  text-align: left;

  background: #f8faff;

  border: 1px solid #dce6f2;
  border-radius: 14px;

  cursor: pointer;

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.workspace-ai-option:hover {
  transform: translateY(-1px);

  background: #f3f0ff;

  border-color: #c8bcf1;

  box-shadow:
    0 8px 20px
      rgba(91, 67, 178, 0.12);
}

.workspace-ai-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #7c5ce0,
      #4e38b7
    );

  border-radius: 12px;

  font-size: 20px;

  box-shadow:
    0 8px 18px
      rgba(78, 56, 183, 0.2);
}

.workspace-ai-option > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.workspace-ai-option strong {
  color: #173b5e;

  font-size: 14px;
  font-weight: 800;
}

.workspace-ai-option small {
  color: #6c8093;

  font-size: 12px;
  line-height: 1.35;
}

.workspace-ai-menu-note {
  margin: 16px 0 0;

  color: #7a8b9b;

  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 520px) {
  .workspace-ai-menu {
    align-items: flex-end;
    padding: 12px;
  }

  .workspace-ai-menu-card {
    width: 100%;

    border-radius: 18px 18px 12px 12px;
  }
}
<div class="student-profile-ai-bar">

    <button
        id="studentProfileAIButton"
        class="student-profile-ai-button"
        type="button"
    >

        🤖 Ask Harmony

    </button>

</div>
.student-profile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.student-profile-header-actions .close-button {
    position: static;
    margin: 0;
}

.student-profile-ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    color: #fff;

    background: linear-gradient(
        135deg,
        #6d4cff,
        #4d2fe8
    );

    border: 0;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(77,47,232,.28);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.student-profile-ai-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 26px
        rgba(77,47,232,.38);
}
.birthday-week-panel {
  margin-bottom: 18px;
  padding: 20px;

  background:
    linear-gradient(
      135deg,
      #f8fbff,
      #f3f0ff
    );

  border: 1px solid #dbe5f0;
  border-radius: 18px;

  box-shadow:
    0 10px 28px
      rgba(30, 64, 110, 0.08);
}

.birthday-week-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 18px;
}

.birthday-week-kicker {
  display: block;

  margin-bottom: 5px;

  color: #6b46d9;

  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.birthday-week-heading h3 {
  margin: 0 0 4px;

  color: #0f4675;

  font-size: 20px;
  font-weight: 850;
}

.birthday-week-heading p {
  margin: 0;

  color: #6a7e91;

  font-size: 13px;
}

.birthday-week-summary {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(90px, 1fr));
  gap: 10px;
}

.birthday-week-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 90px;
  padding: 10px 12px;

  background: #ffffff;

  border: 1px solid #dbe5f0;
  border-radius: 12px;

  text-align: center;
}

.birthday-week-summary span {
  color: #74869a;

  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.birthday-week-summary strong {
  color: #173e63;

  font-size: 22px;
  line-height: 1;
}

.birthday-week-days {
  display: grid;
  grid-template-columns:
    repeat(7, minmax(90px, 1fr));
  gap: 10px;
}

.birthday-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-height: 88px;
  padding: 12px;

  background: #ffffff;

  border: 1px solid #dbe5f0;
  border-radius: 14px;

  cursor: pointer;

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.birthday-week-day:hover {
  transform: translateY(-2px);

  background: #faf8ff;

  border-color: #c7b9ee;

  box-shadow:
    0 10px 22px
      rgba(88, 62, 175, 0.12);
}

.birthday-week-day.active {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #7a51df,
      #5533c3
    );

  border-color: transparent;

  box-shadow:
    0 12px 26px
      rgba(83, 51, 195, 0.25);
}

.birthday-week-day-name {
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.birthday-week-day-date {
  font-size: 11px;
  opacity: 0.75;
}

.birthday-week-day-count {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 1100px) {
  .birthday-week-heading {
    flex-direction: column;
  }

  .birthday-week-summary {
    width: 100%;
  }

  .birthday-week-days {
    grid-template-columns:
      repeat(4, minmax(90px, 1fr));
  }
}

@media (max-width: 700px) {
  .birthday-week-summary {
    grid-template-columns: 1fr;
  }

  .birthday-week-days {
    grid-template-columns:
      repeat(2, minmax(90px, 1fr));
  }
}

/* ---- Activity log (audit) ---- */
.account-note { font-size: 12px; opacity: .6; margin: 4px 0 0; }
.audit-log-list { max-height: 55vh; overflow: auto; font-size: 13px; line-height: 1.4; }
.audit-entry { display: grid; grid-template-columns: 150px 120px 150px 1fr; gap: 8px; padding: 6px 2px; border-bottom: 1px solid rgba(128,128,128,.25); align-items: baseline; }
.audit-when { opacity: .6; white-space: nowrap; }
.audit-user { font-weight: 600; }
.audit-action { font-weight: 600; opacity: .85; }
.audit-details { opacity: .7; }
@media (max-width: 560px) { .audit-entry { grid-template-columns: 1fr; gap: 2px; } }

/* Ensure tall account/activity modals stay fully reachable (scroll inside) */
.account-modal .modal-body { max-height: 70vh; overflow-y: auto; }

/* ---- Birthday Email composer ---- */
.he-modal { max-width: 620px; }
.he-to { font-size: 14px; margin-bottom: 12px; color: #334155; }
.he-templates-label, .he-field-label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin: 10px 0 6px; }
.he-templates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.he-template-chip { border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .12s; }
.he-template-chip:hover { border-color: #7c3aed; }
.he-template-chip.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.he-input { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.he-textarea { width: 100%; min-height: 180px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 11px; font-size: 14px; font-family: inherit; line-height: 1.5; resize: vertical; }
.he-note { font-size: 12px; color: #64748b; margin-top: 10px; background: #f1f5f9; padding: 8px 10px; border-radius: 8px; }

/* ---- Scheduled birthday emails ---- */
.he-schedule-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.he-datetime { width: auto; }
.he-sched-list { max-height: 55vh; overflow-y: auto; }
.he-sched-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; }
.he-sched-item.due { border-color: #7c3aed; background: #faf5ff; }
.he-sched-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.he-sched-info span { color: #64748b; }
.he-sched-actions { display: flex; gap: 6px; flex-shrink: 0; }
.he-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2000; background: #7c3aed; color: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.he-banner button { background: #fff; color: #7c3aed; border: none; border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }

/* Status filter isn't needed in the Birthday Manager */
#birthdayStatusFilter { display: none; }

/* ---- Student documents (transcripts / schedules) ---- */
.hf-section { margin-bottom: 18px; }
.hf-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hf-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.hf-file-name { word-break: break-all; }
.hf-file-actions { display: flex; gap: 6px; flex-shrink: 0; }
.hf-del { color: #b91c1c; }
.hf-empty { font-size: 12px; color: #94a3b8; padding: 4px 2px; }

/* Transcript import success banner */
.grad-import-msg { background: #dcfce7; color: #166534; border: 1px solid #86efac; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }

/* ---- Counselor workspace card on the Dashboard ---- */
.counselor-dashboard-workspace { margin: 0 0 22px; }
.counselor-dashboard-workspace .counselor-dashboard-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 79, 138, 0.12);
}
.counselor-card-stats > div.cdw-tile { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.counselor-card-stats > div.cdw-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11, 79, 138, 0.16); }
.counselor-card-stats > div.cdw-tile-off { cursor: default; opacity: .55; }

/* Counselor's compact dashboard: Quick Actions spans full width (status hidden) */
body.counselor-dashboard .dashboard-lower-grid { grid-template-columns: 1fr; }

/* ---- Graduation status: at-risk / missing-data / on-track ---- */
.graduation-row-at-risk td:first-child { box-shadow: inset 4px 0 0 #dc2626; }
.graduation-row-missing-data td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.graduation-row-on-track td:first-child { box-shadow: inset 4px 0 0 #16a34a; }
.grad-risk { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.grad-risk-danger { background: #fee2e2; color: #b91c1c; }
.grad-risk-missing { background: #fef3c7; color: #92400e; }
.grad-risk-ok { background: #dcfce7; color: #166534; }

/* ---- Profile: Requirements Summary ---- */
.req-note { font-size: 13px; color: #64748b; margin: 0 0 10px; }
.profile-requirements { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.req-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.req-label { font-weight: 600; color: #1f2937; }
.req-detail { color: #64748b; font-size: 13px; }
.req-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.req-met { border-left: 4px solid #16a34a; }
.req-met .req-badge { background: #dcfce7; color: #166534; }
.req-missing { border-left: 4px solid #f59e0b; }
.req-missing .req-badge { background: #fef3c7; color: #92400e; }
.req-not-met { border-left: 4px solid #dc2626; }
.req-not-met .req-badge { background: #fee2e2; color: #b91c1c; }

/* -------------------------------------------------------------------------- */
/* Google Voice Text (SMS) composer + bulk email/text buttons                 */
/* -------------------------------------------------------------------------- */
.ht-modal { max-width: 620px; }

/* A green "send/complete" action button (matches the app's colour system). */
.success-button {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s;
}
.success-button:hover { background: #15803d; }

.ht-hint { font-size: 12px; color: #64748b; margin: 4px 0 2px; }
.ht-steps {
  font-size: 12.5px;
  color: #334155;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 9px 11px;
  margin-top: 12px;
  line-height: 1.6;
}
.he-input-locked {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  cursor: default;
}

.ht-footer { flex-wrap: wrap; gap: 8px; }
.ht-footer-spacer { flex: 1 1 auto; }

/* Bulk-text one-at-a-time progress panel */
.ht-progress {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.ht-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6b21a8;
}
.ht-progress-counts { color: #64748b; font-weight: 600; }
.ht-progress-name { font-size: 16px; font-weight: 800; color: #1e293b; margin: 4px 0 8px; }
.ht-progress-grade { font-size: 12px; font-weight: 600; color: #64748b; }
.ht-progress-bar { height: 6px; background: #ede9fe; border-radius: 999px; overflow: hidden; }
.ht-progress-bar > span { display: block; height: 100%; background: #7c3aed; transition: width .2s; }
.ht-progress-done { font-size: 15px; font-weight: 700; color: #166534; text-align: center; padding: 6px 0; }

/* Split birthday-row buttons + bulk toolbar buttons */
.birthday-actions .birthday-text-button { white-space: nowrap; }
.bulk-email-button[hidden], .bulk-text-button[hidden] { display: none; }
.bulk-email-button, .bulk-text-button { white-space: nowrap; }

/* Sortable Student Directory column headers */
.students-table th.sortable-col {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background .12s;
}
.students-table th.sortable-col:hover { background: rgba(124, 58, 237, 0.10); }
.students-table th.sortable-col.sorted { color: #6d28d9; }
.students-table th .sort-arrow { font-size: 11px; }

/* -------------------------------------------------------------------------- */
/* Dashboard: Recent Activity + Data Health                                   */
/* -------------------------------------------------------------------------- */
.dashboard-insight-grid { margin-top: 22px; }

.dashboard-activity-list { display: flex; flex-direction: column; gap: 2px; }
.dashboard-activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.dashboard-activity-row:last-child { border-bottom: none; }
.da-icon { width: 22px; text-align: center; flex-shrink: 0; }
.da-text { flex: 1 1 auto; color: #1e293b; }
.da-time { color: #94a3b8; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

.dashboard-health-list { display: flex; flex-direction: column; gap: 6px; }
.dashboard-health-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 10px;
  font-size: 14px;
  color: #92400e;
  cursor: pointer;
  transition: background .12s, transform .1s;
}
.dashboard-health-row:hover { background: #fef3c7; transform: translateX(2px); }
.dashboard-health-row .dh-icon { width: 22px; text-align: center; flex-shrink: 0; }
.dashboard-health-row .dh-text { flex: 1 1 auto; font-weight: 600; }
.dashboard-health-row .dh-arrow { color: #b45309; font-weight: 700; }
.dashboard-health-ok {
  padding: 14px 12px;
  background: #dcfce7;
  color: #166534;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.dashboard-empty-mini { color: #94a3b8; font-size: 13px; padding: 10px 6px; }

/* Data Health filter chip above the Student Directory */
.students-heading-right { display: flex; align-items: center; gap: 10px; }
.data-health-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 13px;
  font-weight: 600;
}
.data-health-chip[hidden] { display: none; }
.data-health-chip button {
  border: none;
  background: #c4b5fd;
  color: #4c1d95;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.data-health-chip button:hover { background: #a78bfa; }
