:root {
  --color-page: #f6f7fb;
  --color-surface: #ffffff;
  --color-text: #172033;
  --color-muted: #667085;
  --color-primary: #5f7cf7;
  --color-primary-dark: #405edb;
  --color-border: #e4e7ec;
  --shadow-card: 0 24px 70px rgba(16, 24, 40, 0.14);
  --app-sidebar-width: 280px;
  --app-topbar-height: 64px;
  --app-shell-border: #e4e7ec;
  --app-page-title-size: 32px;
  --app-page-title-line-height: 40px;
  --app-page-title-weight: 600;
  --app-page-title-size-mobile: 24px;
  --app-page-title-line-height-mobile: 32px;
  --sidebar-nav-text: #41484c;
  --sidebar-nav-hover-bg: rgba(29, 78, 216, 0.08);
  --sidebar-nav-active-bg: #eff6ff;
  --sidebar-nav-active-color: #1d4ed8;
  --sidebar-nav-active-icon-filter: brightness(0) saturate(100%) invert(24%) sepia(98%) saturate(2577%) hue-rotate(212deg) brightness(95%) contrast(96%);

}


/* Auth redirect sırasında panel flash'ini gizle (head erken gate) */
html.is-auth-boot,
html.is-auth-boot body {
  visibility: hidden !important;
  background: #f6f7fb !important;
}

/* Veli: kres sidebar-nav parentHidden — server rolü yoksa client class ile gizle */
html.is-parent-user [data-parent-hidden-nav],
html.is-parent-user .add-btn,
html.is-parent-user [data-student-create-open],
html.is-parent-user [data-announcements-create-open],
html.is-parent-user [data-student-edit],
html.is-parent-user [data-announcements-edit],
html.is-parent-user [data-report-edit],
html.is-parent-user .daily-reports-table__col-edit,
html.is-parent-user .students-table th:nth-child(6),
html.is-parent-user .students-table th.is-actions,
html.is-parent-user .announcements-table th.is-actions,
html.is-parent-user .settings-working-times-table th:nth-child(7),
html.is-parent-user .settings-working-times-table th.settings-working-times-table__col-actions,
html.is-parent-user [data-tab="entry"],
html.is-parent-user [data-panel="entry"],
html.is-parent-user [data-tab="allergens"],
html.is-parent-user [data-tab="groups"],
html.is-parent-user [data-tab="reactions"],
html.is-parent-user [data-tab="severities"],
html.is-parent-user [data-panel="allergens"],
html.is-parent-user [data-panel="groups"],
html.is-parent-user [data-panel="reactions"],
html.is-parent-user [data-panel="severities"],
html.is-parent-user .health-insights,
html.is-parent-user #health-account-allergies-table th:nth-child(8),
html.is-parent-user #health-account-allergies-table th.health-account-allergies-table__col-actions,
html.is-parent-user #health-account-profiles-table th:nth-child(7),
html.is-parent-user #health-account-profiles-table th.health-account-profiles-table__col-actions,
[data-parent-students-view] .students-table th:nth-child(6),
[data-parent-students-view] .students-table th.is-actions,
[data-parent-announcements-view] .announcements-table th.is-actions,
[data-parent-daily-view] .daily-reports-table__col-edit,
[data-parent-working-times-view] .settings-working-times-table th:nth-child(7),
[data-parent-working-times-view] .settings-working-times-table th.settings-working-times-table__col-actions,
[data-parent-health-view] [data-tab="allergens"],
[data-parent-health-view] [data-tab="groups"],
[data-parent-health-view] [data-tab="reactions"],
[data-parent-health-view] [data-tab="severities"],
[data-parent-health-view] [data-panel="allergens"],
[data-parent-health-view] [data-panel="groups"],
[data-parent-health-view] [data-panel="reactions"],
[data-parent-health-view] [data-panel="severities"],
[data-parent-health-view] .health-insights,
[data-parent-health-view] #health-account-allergies-table th:nth-child(8),
[data-parent-health-view] #health-account-allergies-table th.health-account-allergies-table__col-actions,
[data-parent-health-view] #health-account-profiles-table th:nth-child(7),
[data-parent-health-view] #health-account-profiles-table th.health-account-profiles-table__col-actions {
  display: none !important;
}

html.is-welcome-boot .sidebar,
html.is-welcome-boot .sidebar-backdrop,
html.is-welcome-boot .mobile-sidebar-trigger {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.is-welcome-boot .app-content {
  margin-left: 0 !important;
  width: 100% !important;
}

html.is-welcome-boot .dashboard-header {
  visibility: hidden !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-body {
  min-height: 100vh;
  overflow: hidden;
  background: #f9f9fb;
  color: #191c1d;
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

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

.app-content {
  display: flex;
  width: calc(100% - var(--app-sidebar-width));
  min-width: 0;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--app-sidebar-width);
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-sidebar-trigger,
.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  width: var(--app-sidebar-width);
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  border-right: 1px solid var(--app-shell-border);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 174, 242, 0.05);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar__top {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.sidebar__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.sidebar__content-live {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.sidebar__content-live .sidebar-nav {
  flex: 0 0 auto;
}

.sidebar__content-live .sidebar__bottom {
  margin-top: auto;
}

.sidebar__header {
  display: flex;
  height: var(--app-topbar-height);
  min-height: var(--app-topbar-height);
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--app-shell-border);
}

.sidebar-brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-decoration: none;
}

.sidebar-brand__live {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
}

.sidebar-brand__logo {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.sidebar-brand__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-brand__text strong {
  display: block;
  color: #33647a;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.sidebar-brand__text small {
  display: block;
  color: #71787d;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
}

.sidebar-close {
  display: none;
}

.sidebar-nav__icon svg,
.sidebar-nav__icon img {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar-nav__icon img {
  display: block;
}

.sidebar-nav {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
}

html:not(.i18n-ready) [data-sidebar-nav] [data-i18n] {
  visibility: hidden;
}

.sidebar-nav__item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--sidebar-nav-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav__item>span:last-child {
  flex: 1;
  min-width: 0;
}

.sidebar-nav__item:hover {
  background: var(--sidebar-nav-hover-bg);
}

.sidebar-nav__item.is-active {
  background: var(--sidebar-nav-active-bg);
  color: var(--sidebar-nav-active-color);
  font-weight: 600;
}

.sidebar-nav__group.has-active-child>.sidebar-nav__toggle {
  color: var(--sidebar-nav-active-color);
}

.sidebar-nav__item.is-active .sidebar-nav__icon img {
  filter: var(--sidebar-nav-active-icon-filter);
}

.sidebar-nav__icon {
  display: inline-flex;
  width: 18px;
  flex: 0 0 18px;
  justify-content: center;
}

.sidebar-nav__group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav__toggle {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
  line-height: 20px;
  text-align: left;
  background: transparent;
  color: var(--sidebar-nav-text);
  appearance: none;
  -webkit-appearance: none;
}

.sidebar-nav__toggle:hover {
  background: transparent;
}

.sidebar-nav__toggle:active,
.sidebar-nav__toggle:focus {
  background: transparent;
}

.sidebar-nav__toggle:focus-visible {
  outline: 2px solid var(--sidebar-nav-active-color);
  outline-offset: 2px;
}

.sidebar-nav__toggle .sidebar-nav__chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: currentColor;
  opacity: 0;
  visibility: hidden;
}

.sidebar-nav__group.is-open .sidebar-nav__chevron {
  opacity: 1;
  visibility: visible;
  transform: rotate(180deg);
}

html.sidebar-nav-ready .sidebar-nav__toggle .sidebar-nav__chevron {
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s ease;
}

.sidebar-nav__submenu {
  display: grid;
  grid-template-rows: 0fr;
  padding-left: 32px;
  opacity: 0;
}

.sidebar-nav__submenu-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
}

.sidebar-nav__group.is-open .sidebar-nav__submenu {
  grid-template-rows: 1fr;
  opacity: 1;
}

html.sidebar-nav-ready .sidebar-nav__submenu {
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.sidebar-nav__subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--sidebar-nav-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav__group.is-open .sidebar-nav__subitem {
  opacity: 1;
  transform: translateY(0);
}

html.sidebar-nav-ready .sidebar-nav__subitem {
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

html.sidebar-nav-ready .sidebar-nav__group.is-open .sidebar-nav__subitem:nth-child(1) {
  transition-delay: 0.06s;
}

html.sidebar-nav-ready .sidebar-nav__group.is-open .sidebar-nav__subitem:nth-child(2) {
  transition-delay: 0.11s;
}

html.sidebar-nav-ready .sidebar-nav__group.is-open .sidebar-nav__subitem:nth-child(3) {
  transition-delay: 0.16s;
}

html.sidebar-nav-ready .sidebar-nav__group.is-open .sidebar-nav__subitem:nth-child(4) {
  transition-delay: 0.21s;
}

html.sidebar-nav-ready .sidebar-nav__group.is-open .sidebar-nav__subitem:nth-child(5) {
  transition-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {

  html.sidebar-nav-ready .sidebar-nav__toggle .sidebar-nav__chevron,
  html.sidebar-nav-ready .sidebar-nav__submenu,
  .sidebar-nav__subitem {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

.sidebar-nav__subitem img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-nav__subitem.is-active img {
  opacity: 1;
  filter: var(--sidebar-nav-active-icon-filter);
}

.sidebar-nav__subitem:hover {
  background: var(--sidebar-nav-hover-bg);
}

.sidebar-nav__subitem.is-active {
  background: var(--sidebar-nav-active-bg);
  color: var(--sidebar-nav-active-color);
  font-weight: 700;
}

.sidebar__bottom {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding: 12px 16px 16px;
}

.sidebar-logout-form {
  width: 100%;
  margin: 0;
}

.sidebar-logout {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #41484c;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-logout svg,
.sidebar-logout img {
  width: 18px;
  height: 18px;
}

.sidebar-logout svg {
  fill: currentColor;
}

.sidebar-logout:hover {
  background: rgba(186, 26, 26, 0.08);
  color: #ba1a1a;
}

.sidebar__footer {
  margin: 0;
  padding: 0;
  color: #9aa3a8;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  width: 100%;
}

@media (max-width: 1100px) {
  body.is-sidebar-open {
    overflow: hidden;
  }

  .app-content {
    width: 100%;
    margin-left: 0;
  }

  .sidebar-close svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .sidebar {
    left: 0;
    z-index: 200;
    width: 100%;
    max-width: 100%;
    border-right: 0;
    box-shadow: none;
    transform: translateX(-100%);
    transition: transform 260ms ease;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
  }

  body.is-sidebar-open .dashboard-header__menu {
    opacity: 0;
    pointer-events: none;
  }

  .sidebar__header {
    height: auto;
    min-height: 64px;
    padding: 16px 20px;
  }

  .sidebar-brand {
    padding-bottom: 0;
  }

  .sidebar-brand__text strong {
    font-size: 18px;
    line-height: 24px;
  }

  .sidebar-close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
  }

  .sidebar-close:hover {
    background: #f3f4f6;
    color: #191c1d;
  }

  .sidebar-nav {
    padding: 12px 16px 20px;
    gap: 4px;
  }

  .sidebar-nav__item,
  .sidebar-nav__toggle {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    letter-spacing: 0.2px;
  }

  .sidebar-nav__submenu {
    padding-left: 20px;
  }

  .sidebar-nav__subitem {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .sidebar__bottom {
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  }

}

.language-trigger {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #41484c;
}

.language-trigger img {
  width: 24px;
  height: 24px;
  display: block;
}

.language-trigger--inline {
  position: static;
  z-index: auto;
}

.language-trigger--inline img {
  width: 20px;
  height: 20px;
}

.auth-body .language-trigger {
  top: 24px;
  right: 24px;
}

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(7px);
}

.language-modal[hidden] {
  display: none;
}

.language-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 1px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  color: #111827;
  font-family: inherit;
}

.language-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 1px;
  background: transparent;
  color: #6b7280;
}

.language-modal__close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.language-modal__header {
  padding: 30px 32px 22px;
  text-align: center;
}

.language-modal__header h2,
.language-modal__header p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.65;
  text-transform: uppercase;
}

.language-modal__header h2 {
  color: #111827;
}

.language-modal__header p {
  margin-top: 2px;
  color: #4b5563;
}

.language-modal__body {
  padding: 0 32px 32px;
}

.language-modal__body>label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-modal__options {
  display: flex;
  max-height: 240px;
  flex-wrap: wrap;
  gap: 10px;
  overflow-y: auto;
}

.language-modal__options.is-loading {
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.language-modal__loading {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.language-modal__option {
  display: flex;
  min-height: 48px;
  flex: 1 1 128px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 1px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 12px 16px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.language-modal__option.is-active {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.language-modal__flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  object-fit: cover;
  font-size: 14px;
  line-height: 14px;
}

.language-modal__continue {
  width: 100%;
  height: 49px;
  margin-top: 18px;
  border: 0;
  border-radius: 1px;
  background: #306177;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 20px;
  transition: background 160ms ease;
}

.language-modal__continue:hover {
  background: #285468;
}

.guided-tour {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.guided-tour[hidden] {
  display: none;
}

.guided-tour__shade {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.guided-tour__spotlight {
  position: fixed;
  border: 2px solid #ffffff;
  border-radius: 16px;
  box-shadow:
    0 0 0 9999px rgba(17, 24, 39, 0.62),
    0 20px 48px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease;
}

.guided-tour__card {
  position: fixed;
  width: min(360px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(173, 222, 247, 0.55);
  border-radius: 18px;
  background: #ffffff;
  color: #191c1d;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.guided-tour__card::before {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.guided-tour__card.is-right::before {
  top: calc(50% - 7px);
  left: -7px;
}

.guided-tour__card.is-bottom::before {
  top: -7px;
  left: calc(50% - 7px);
}

.guided-tour__card.is-top::before {
  bottom: -7px;
  left: calc(50% - 7px);
}

.guided-tour__eyebrow {
  margin-bottom: 8px;
  color: #306177;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guided-tour__card h2 {
  margin: 0 0 8px;
  color: #191c1d;
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
}

.guided-tour__card p {
  margin: 0;
  color: #41484c;
  font-size: 14px;
  line-height: 22px;
}

.guided-tour__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.guided-tour__steps {
  display: flex;
  gap: 8px;
}

.guided-tour__skip,
.guided-tour__secondary,
.guided-tour__primary {
  min-height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.guided-tour__skip {
  border: 1px solid transparent;
  background: transparent;
  color: #306177;
}

.guided-tour__secondary {
  padding: 8px 14px;
  border: 1px solid #cfd8dc;
  background: #ffffff;
  color: #41484c;
}

.guided-tour__secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.guided-tour__primary {
  padding: 8px 18px;
  border: 0;
  background: #306177;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(48, 97, 119, 0.24);
}

.guided-tour__primary:hover {
  background: #255265;
}

.chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  font-family: "Be Vietnam Pro", "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

.chatbot__launcher {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #1f2a38;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(25, 28, 29, 0.24);
  transition: transform 160ms ease, background 160ms ease;
}

.chatbot__launcher:hover {
  background: #306177;
  transform: translateY(-2px);
}

.chatbot.is-open .chatbot__launcher {
  display: none;
}

.chatbot__launcher svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  height: min(460px, calc(100vh - 110px));
  flex-direction: column;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.24);
  overflow: hidden;
}

.chatbot__panel[hidden] {
  display: none;
}

.chatbot__header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #1f2a38;
  color: #ffffff;
}

.chatbot__header strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 22px;
}

.chatbot__header span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.chatbot__close {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.chatbot__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chatbot__messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  background: #f8fafc;
  overflow-y: auto;
}

.chatbot__message {
  max-width: 82%;
  border-radius: 8px;
  padding: 8px 10px;
  color: #172033;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  white-space: pre-wrap;
}

.chatbot__message--bot {
  align-self: flex-start;
  background: #e5e7eb;
}

.chatbot__message--user {
  align-self: flex-end;
  background: #306177;
  color: #ffffff;
}

.chatbot__message--typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 58px;
  min-height: 42px;
}

.chatbot__message--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #667085;
  animation: chatbotTyping 1s infinite ease-in-out;
}

.chatbot__message--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot__message--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.chatbot__form {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-top: 1px solid #d8dee6;
  background: #ffffff;
}

.chatbot__input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 38px;
  border: 2px solid #d1d8e2;
  border-radius: 8px;
  color: #172033;
  font-size: 14px;
  outline: none;
  padding: 0 12px;
}

.chatbot__input::placeholder {
  color: #98a2b3;
}

.chatbot__input:focus {
  border-color: #306177;
  box-shadow: 0 0 0 3px rgba(48, 97, 119, 0.14);
}

.chatbot__send {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #1f2a38;
  color: #ffffff;
}

.chatbot__send:hover {
  background: #306177;
}

.chatbot__send:disabled {
  background: #c8ced6;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.65;
}

.chatbot__send svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transform: rotate(-90deg);
}

@keyframes chatbotTyping {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .chatbot {
    right: 14px;
    bottom: 14px;
  }

  .chatbot__panel {
    right: -8px;
    bottom: 0;
    width: calc(100vw - 32px);
    height: min(440px, calc(100vh - 100px));
  }

  .chatbot__form {
    gap: 8px;
    padding: 12px;
  }

  .chatbot__send {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .language-modal__dialog {
    max-width: 360px;
  }

  .language-modal__header,
  .language-modal__body {
    padding-right: 22px;
    padding-left: 22px;
  }

  .language-modal__header h2,
  .language-modal__header p {
    letter-spacing: 0.12em;
  }
}



.dashboard-page .dashboard-greeting,
.dashboard-page .security-title h1,
.dashboard-page .sales-title h1,
.dashboard-page .finance-title h1,
.dashboard-page .agreements-title h1,
.dashboard-page .food-title h1,
.dashboard-page .settings-title h1,
.dashboard-page .students-page-head__title h1,
.dashboard-page .classes-toolbar__title h1,
.dashboard-page .teachers-page-head h1,
.dashboard-page .announcements-page-title h1,
.dashboard-page .announcements-title h1,
.dashboard-page .notifications-head h1,
.dashboard-page .help-hero h1,
.dashboard-page .health-page-head__title h1,
.dashboard-page .daily-reports-page-head__title h1,
.dashboard-page .messages-page-head__title h1 {
  margin: 0;
  color: #191c1d;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: var(--app-page-title-size);
  font-weight: var(--app-page-title-weight);
  line-height: var(--app-page-title-line-height);
  letter-spacing: normal;
}

@media (max-width: 768px) {

  .dashboard-page .dashboard-greeting,
  .dashboard-page .security-title h1,
  .dashboard-page .sales-title h1,
  .dashboard-page .finance-title h1,
  .dashboard-page .agreements-title h1,
  .dashboard-page .food-title h1,
  .dashboard-page .settings-title h1,
  .dashboard-page .students-page-head__title h1,
  .dashboard-page .classes-toolbar__title h1,
  .dashboard-page .teachers-page-head h1,
  .dashboard-page .announcements-page-title h1,
  .dashboard-page .announcements-title h1,
  .dashboard-page .notifications-head h1,
  .dashboard-page .help-hero h1,
  .dashboard-page .health-page-head__title h1,
  .dashboard-page .daily-reports-page-head__title h1,
  .dashboard-page .messages-page-head__title h1 {
    font-size: var(--app-page-title-size-mobile);
    line-height: var(--app-page-title-line-height-mobile);
  }
}