﻿@import url('https://fonts.bunny.net/css?family=fraunces:600,700|sora:300,400,500,600,700');

:root {
  --nursery-ink: #1f2a37;
  --nursery-muted: #6b7280;
  --nursery-primary: #1b6f6a;
  --nursery-primary-dark: #145651;
  --nursery-accent: #f4a259;
  --nursery-surface: #ffffff;
  --nursery-card: #fefcf9;
  --nursery-bg: #f6f1ea;
  --nursery-ring: 0 0 0 0.2rem rgba(27, 111, 106, 0.18);
  --nursery-shadow: 0 24px 60px rgba(20, 33, 45, 0.12);
  --font-sans: 'Sora', sans-serif;
  --font-display: 'Fraunces', serif;

  --bs-body-bg: var(--nursery-bg);
  --bs-body-color: var(--nursery-ink);
  --bs-primary: var(--nursery-primary);
  --bs-primary-rgb: 27, 111, 106;
  --bs-secondary: var(--nursery-accent);
  --bs-secondary-rgb: 244, 162, 89;
  --bs-link-color: var(--nursery-primary);
  --bs-link-hover-color: var(--nursery-primary-dark);
}

body {
  font-family: var(--font-sans);
  background: var(--nursery-bg);
  color: var(--nursery-ink);
}

.dashboard-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f3f5f7;
}

.dashboard-sidebar {
  width: 260px;
  background: linear-gradient(160deg, #0f3d3a 0%, #134e4a 55%, #0f2f2d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  color: #e5f1ef;
  transition: width 0.25s ease, padding 0.25s ease;
  position: relative;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 2rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-block strong {
  color: #ffffff;
}

.brand-block span {
  display: block;
  color: rgba(229, 241, 239, 0.7);
  font-size: 0.85rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1b6f6a 0%, #2ea189 100%);
  box-shadow: 0 10px 20px rgba(27, 111, 106, 0.35);
}

.sidebar-toggle {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
  transition: transform 0.2s ease;
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.sidebar-nav .nav-link {
  color: rgba(229, 241, 239, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.45rem 0.75rem;
  min-height: 44px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.nav-icon * {
  stroke: currentColor;
  fill: none;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (min-width: 992px) {
  .dashboard-shell.is-collapsed .dashboard-sidebar {
    width: 92px;
    padding: 1.5rem 1rem;
  }

  .dashboard-shell.is-collapsed .sidebar-content {
    align-items: center;
  }

  .dashboard-shell.is-collapsed .brand-block {
    justify-content: center;
  }

  .dashboard-shell.is-collapsed .brand-text {
    display: none;
  }

  .dashboard-shell.is-collapsed .sidebar-nav {
    justify-items: center;
  }

  .dashboard-shell.is-collapsed .sidebar-nav .nav-link {
    justify-content: center;
    gap: 0;
    padding: 0.6rem;
  }

  .dashboard-shell.is-collapsed .sidebar-nav .nav-label {
    display: none;
  }

  .dashboard-shell.is-collapsed .sidebar-logout {
    justify-content: center;
    gap: 0;
    padding: 0.6rem;
  }

  .dashboard-shell.is-collapsed .sidebar-logout .nav-label {
    display: none;
  }

  .dashboard-shell.is-collapsed .sidebar-toggle-icon {
    transform: rotate(-45deg);
  }

  .dashboard-shell.is-collapsed .sidebar-toggle {
    position: absolute;
    top: 22px;
    right: -14px;
    background: #f3f5f7;
    color: var(--nursery-ink);
    box-shadow: 0 10px 24px rgba(20, 33, 45, 0.18);
  }

  .dashboard-shell.is-collapsed .sidebar-toggle:hover,
  .dashboard-shell.is-collapsed .sidebar-toggle:focus {
    background: #ffffff;
  }
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sidebar-footer span {
  display: block;
  color: rgba(229, 241, 239, 0.7);
  font-size: 0.8rem;
}

.sidebar-footer a {
  color: rgba(229, 241, 239, 0.85);
}

.sidebar-footer a:hover {
  color: #ffffff;
}

.sidebar-logout {
  margin-top: auto;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(229, 241, 239, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.sidebar-logout:hover,
.sidebar-logout:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f3f5f7;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nursery-ink);
  margin-left: 0.6rem;
}

.breadcrumb-nav {
  margin-bottom: 1rem;
}

.breadcrumb {
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--nursery-muted);
}

.breadcrumb a {
  color: var(--nursery-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a:hover {
  color: var(--nursery-primary-dark);
}

.breadcrumb .active {
  color: var(--nursery-ink);
}

.breadcrumb-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.breadcrumb-icon * {
  stroke: currentColor;
  fill: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.user-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  box-shadow: none;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(27, 111, 106, 0.15);
  color: var(--nursery-primary-dark);
  font-weight: 700;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.user-meta span {
  font-size: 0.75rem;
  color: var(--nursery-muted);
}

@media (max-width: 991.98px) {
  .user-menu {
    padding: 0;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
  }
}

.dashboard-content {
  padding: 1.5rem 2rem 2.5rem;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.5rem;
}

.home-left {
  display: grid;
  gap: 1.25rem;
}

.home-kids {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 12px 24px rgba(20, 33, 45, 0.08);
}

.home-kids-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.home-kids-title {
  font-weight: 700;
}

.home-kids-link {
  font-weight: 600;
  color: var(--nursery-primary-dark);
}

.home-kids-list {
  display: grid;
  gap: 0.5rem;
}

.home-kid {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: rgba(27, 111, 106, 0.08);
  color: var(--nursery-primary-dark);
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: left;
}

.home-kid.active {
  background: rgba(27, 111, 106, 0.18);
}

.home-kid-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--nursery-primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  overflow: hidden;
}

.home-kid-name {
  font-size: 0.85rem;
}

.home-kid-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-action-rail {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 12px 24px rgba(20, 33, 45, 0.08);
  display: grid;
  gap: 0.75rem;
}

.home-action-toggle {
  width: 100%;
  border: 1px solid rgba(31, 42, 55, 0.1);
  background: #ffffff;
  color: var(--nursery-ink);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.home-action-toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--nursery-ink);
  border-bottom: 2px solid var(--nursery-ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.home-action-toggle[aria-expanded="true"] .home-action-toggle-icon {
  transform: rotate(-135deg);
}

.home-action-heading {
  font-weight: 700;
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.home-action-item {
  border: none;
  background: rgba(31, 42, 55, 0.04);
  border-radius: 14px;
  padding: 0.6rem 0.5rem;
  display: grid;
  gap: 0.4rem;
  text-align: center;
  place-items: center;
  font-weight: 600;
  color: var(--nursery-ink);
}

.home-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 111, 106, 0.16);
  color: var(--nursery-primary-dark);
  font-weight: 700;
}

.home-action-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.home-action-label {
  font-size: 0.75rem;
}

.home-action-customize {
  font-weight: 600;
  color: var(--nursery-primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(27, 111, 106, 0.1);
  border: 1px solid rgba(27, 111, 106, 0.2);
}

.home-action-customize:hover,
.home-action-customize:focus {
  background: rgba(27, 111, 106, 0.18);
  color: var(--nursery-primary-dark);
  text-decoration: none;
}

.home-main {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 12px 24px rgba(20, 33, 45, 0.08);
  padding: 1.25rem 1.5rem;
}

.home-room-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.home-room-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.home-room-form .form-select {
  min-width: 200px;
}

.home-feed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.home-feed-date {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--nursery-ink);
}

.home-date-nav {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(31, 42, 55, 0.06);
  font-weight: 700;
}

.home-date-label {
  font-weight: 700;
  text-decoration: underline;
}

.home-date-picker {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
}

.home-feed {
  display: grid;
  gap: 0.75rem;
}

.home-feed-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(31, 42, 55, 0.02);
}

.home-feed-link {
  text-decoration: none;
  color: inherit;
}

.home-feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(27, 111, 106, 0.16);
  color: var(--nursery-primary-dark);
  font-weight: 700;
  overflow: hidden;
}

.home-feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feed-title {
  font-weight: 600;
}

.home-feed-meta {
  font-size: 0.8rem;
  color: var(--nursery-muted);
}

.home-feed-thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.home-feed-thumbs img {
  width: 56px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(31, 42, 55, 0.1);
}

.home-feed-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.home-feed-actions .icon-button {
  width: auto;
  height: auto;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(31, 42, 55, 0.08);
  font-size: 0.75rem;
}

.home-feed-actions .btn img {
  width: 14px;
  height: 14px;
  display: block;
}

.home-feed-actions .btn i {
  font-size: 0.8rem;
  line-height: 1;
}

.message-attachment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.message-attachment-grid img {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(31, 42, 55, 0.1);
}

.message-attachment-link {
  display: inline-block;
  border: none;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.message-card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 42, 55, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--nursery-muted);
  font-size: 0.9rem;
}

.message-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.message-edit-trigger {
  color: var(--nursery-primary-dark);
  font-size: 0.9rem;
}

.message-edit-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.6rem;
}

.message-edit-row .form-control {
  flex: 1 1 auto;
}

.message-edit-save {
  padding: 0.45rem 0.7rem;
}

.home-feed-empty {
  border: 1px dashed rgba(31, 42, 55, 0.15);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--nursery-muted);
  display: grid;
  gap: 0.4rem;
  justify-items: center;
}

.home-feed-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(27, 111, 106, 0.12);
  color: var(--nursery-primary-dark);
  font-size: 1.1rem;
}

.home-feed-empty-title {
  font-weight: 700;
  color: var(--nursery-ink);
}

.home-feed-empty-subtitle {
  font-size: 0.9rem;
}

.message-modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 55, 0.08);
}

.message-children {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.message-child {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--nursery-ink);
  position: relative;
  min-width: 70px;
}

.message-child input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.message-child-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(27, 111, 106, 0.12);
  color: var(--nursery-primary-dark);
  font-weight: 700;
  overflow: hidden;
  border: 2px solid transparent;
}

.message-child-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-child input:checked ~ .message-child-avatar {
  border-color: var(--nursery-primary);
  box-shadow: 0 8px 16px rgba(27, 111, 106, 0.18);
}

.message-schedule {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--nursery-primary-dark);
}

.message-schedule .btn-link {
  font-weight: 600;
  text-decoration: underline;
}

.message-picker {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
}

.message-text {
  border-radius: 12px;
}

.message-uploads {
  display: grid;
  gap: 0.6rem;
}

.message-upload {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  border: 1px dashed rgba(31, 42, 55, 0.2);
  display: grid;
  place-items: center;
  background: rgba(31, 42, 55, 0.03);
  color: var(--nursery-muted);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  gap: 0.3rem;
}

.message-upload-plus {
  font-size: 1.4rem;
  color: var(--nursery-primary-dark);
}

.message-upload-label {
  font-size: 0.7rem;
}

.message-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message-preview-item {
  position: relative;
  display: inline-flex;
}

.message-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.message-upload-preview img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.bottle-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--nursery-primary-dark);
}

.bottle-divider {
  color: var(--nursery-muted);
}

.bottle-divider-line {
  border: none;
  border-top: 1px solid var(--nursery-muted);
  margin: 0.75rem 0;
}

.bottle-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bottle-duration .form-control {
  width: 52px;
}

.bottle-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.bottle-options .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bottle-customize {
  color: var(--nursery-primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
}

.bottle-customize-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.bottle-quantity {
  margin-bottom: 1rem;
}

.bottle-quantity-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 200px;
}

.bottle-reaction {
  margin-bottom: 1rem;
  border-top: 1px solid var(--nursery-muted);
  border-bottom: 1px solid var(--nursery-muted);
  padding: 0.75rem 0;
}

.bottle-reaction-list {
  display: flex;
  gap: 0.6rem;
}

.bottle-reaction-item {
  border: none;
  background: transparent;
  padding: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--nursery-primary-dark);
  cursor: pointer;
  position: relative;
}

.bottle-reaction-item input {
  position: absolute;
  opacity: 0;
}

.bottle-reaction-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 42, 55, 0.12);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bottle-reaction-item input:checked + .bottle-reaction-icon {
  background: rgba(27, 111, 106, 0.16);
  border-color: rgba(27, 111, 106, 0.4);
  box-shadow: 0 8px 16px rgba(27, 111, 106, 0.18);
}

.bottle-reaction-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.bottle-note {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}

.diaper-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.diaper-options .form-check,
.diaper-checks .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.diaper-checks {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.diaper-field {
  margin-bottom: 0.7rem;
}
.message-error {
  color: #b42318;
  background: rgba(255, 225, 221, 0.7);
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(27, 111, 106, 0.12);
  color: var(--nursery-primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
}

.dashboard-hero {
  padding: 1.5rem 2rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 18px 36px rgba(20, 33, 45, 0.08);
  margin-bottom: 1.5rem;
}

.metric-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 12px 24px rgba(20, 33, 45, 0.08);
}

.metric-card span {
  color: var(--nursery-muted);
  font-size: 0.85rem;
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
  margin-top: 0.3rem;
}

.quick-actions {
  display: grid;
  gap: 0.6rem;
}

.quick-actions a {
  text-decoration: none;
  font-weight: 600;
  color: var(--nursery-primary-dark);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(27, 111, 106, 0.08);
}

.quick-actions a:hover {
  background: rgba(27, 111, 106, 0.16);
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    padding: 1.25rem;
  }

  .dashboard-topbar,
  .dashboard-content {
    padding: 1.25rem 1.25rem 2rem;
  }

  .home-shell {
    grid-template-columns: 1fr;
  }

  .home-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-feed-card {
    grid-template-columns: auto 1fr;
  }

  .home-feed-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f7f6f2;
}

.auth-shell {
  padding: 3.5rem 0 calc(3rem + env(safe-area-inset-bottom));
}

.auth-split {
  --auth-divider: rgba(31, 42, 55, 0.1);
}

.auth-pane {
  padding: 0 2.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.auth-login-only .auth-divider {
  display: none;
}

.auth-login-only .auth-pane {
  padding-right: 0;
}

.auth-login-only .auth-shell .row {
  justify-content: center;
}

.auth-login-only .auth-shell .col-lg-6 {
  flex: 0 0 100%;
  max-width: 720px;
}

.auth-divider {
  border-left: 1px solid var(--auth-divider);
  padding-left: 2.5rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: #1b6f6a;
  box-shadow: 0 10px 20px rgba(27, 111, 106, 0.25);
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.auth-brand-text span {
  font-size: 0.8rem;
  color: var(--nursery-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand-text strong {
  font-size: 1.15rem;
}

.auth-heading h1 {
  font-size: clamp(2rem, 2.3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.auth-heading p {
  color: var(--nursery-muted);
  margin-bottom: 0;
}

.auth-form .form-label {
  font-weight: 600;
  color: var(--nursery-ink);
  font-size: 0.9rem;
}

.auth-form .form-control {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(31, 42, 55, 0.16);
  background: #fff;
  box-shadow: none;
}

.auth-form .form-control:focus {
  border-color: var(--nursery-primary);
  box-shadow: 0 0 0 0.18rem rgba(27, 111, 106, 0.18);
}

.auth-form .form-check-input:focus {
  box-shadow: var(--nursery-ring);
  border-color: var(--nursery-primary);
}

.auth-form .form-check-input:checked {
  background-color: var(--nursery-primary);
  border-color: var(--nursery-primary);
}

.auth-form .btn-primary {
  background: var(--nursery-primary);
  border-color: var(--nursery-primary);
  border-radius: 14px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  box-shadow: 0 14px 26px rgba(27, 111, 106, 0.28);
}

.auth-form .btn-primary:hover,
.auth-form .btn-primary:focus {
  background: var(--nursery-primary-dark);
  border-color: var(--nursery-primary-dark);
}

.auth-link {
  color: var(--nursery-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-form .form-control::placeholder {
  color: rgba(31, 42, 55, 0.45);
}

.auth-form .form-control:focus::placeholder {
  color: rgba(31, 42, 55, 0.3);
}

.auth-form .form-control-lg {
  font-size: 1rem;
}

.auth-form .input-group {
  border-radius: 14px;
}

.auth-footer {
  font-size: 0.9rem;
}

.auth-footer a {
  font-weight: 600;
}

.auth-form .btn-primary:focus-visible {
  outline: 2px solid rgba(27, 111, 106, 0.25);
  outline-offset: 2px;
}

.auth-card .auth-form {
  margin-top: 0.5rem;
}

.auth-card .auth-form .mb-3 {
  margin-bottom: 1.15rem !important;
}

.auth-card .auth-form .mb-4 {
  margin-bottom: 1.5rem !important;
}

.auth-link:hover {
  color: var(--nursery-primary-dark);
}

.auth-panel {
  height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.auth-panel-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 111, 106, 0.22);
  background: rgba(27, 111, 106, 0.06);
  color: var(--nursery-primary-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-panel h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  margin: 0;
}

.auth-panel p {
  color: var(--nursery-muted);
  font-size: 1rem;
  max-width: 26rem;
}

.auth-panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.auth-panel-pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #f5f7f9;
  border: 1px solid rgba(31, 42, 55, 0.14);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--nursery-ink);
}

.auth-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.auth-panel-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f7f8fa;
  border: 1px solid rgba(31, 42, 55, 0.1);
}

.auth-animation {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 42, 55, 0.1);
  display: grid;
  gap: 0.8rem;
  align-items: center;
}

.auth-animation-svg {
  width: 100%;
  height: auto;
}

.auth-animation-line {
  fill: none;
  stroke: #b8c1c8;
  stroke-width: 2;
  stroke-linecap: round;
}

.auth-animation-node {
  fill: #f7f8fa;
  stroke: #1b6f6a;
  stroke-width: 2;
}

.auth-animation-dot {
  fill: #1b6f6a;
  animation: auth-dot 3.2s ease-in-out infinite;
}

.auth-animation-dot:nth-of-type(2) {
  animation-delay: 0.6s;
}

.auth-animation-dot:nth-of-type(3) {
  animation-delay: 1.2s;
}

.auth-animation-label {
  fill: #6b7280;
  font-size: 12px;
  text-anchor: middle;
}

.auth-animation-caption {
  font-size: 0.9rem;
  color: var(--nursery-muted);
}

@keyframes auth-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.auth-panel-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.auth-panel-card span {
  color: var(--nursery-muted);
  font-size: 0.85rem;
}

.auth-illustration {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 42, 55, 0.12);
  display: grid;
  gap: 0.75rem;
}

.auth-illustration-svg {
  width: 100%;
  height: auto;
}

.auth-illustration-path {
  fill: none;
  stroke: #C9D4D9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: auth-path 6s linear infinite;
}

.auth-illustration-node {
  fill: #ffffff;
  stroke: #1B6F6A;
  stroke-width: 2;
}

.auth-illustration-icon {
  animation: auth-float 4s ease-in-out infinite;
}

.auth-illustration-blocks {
  animation-delay: 0.6s;
}

.auth-illustration-palette {
  animation-delay: 1s;
}

.auth-illustration-tree {
  animation-delay: 1.4s;
}

.auth-illustration-toys {
  animation-delay: 1.8s;
}

.auth-illustration-dot {
  fill: #1B6F6A;
  opacity: 0.7;
  animation: auth-dot 3.5s ease-in-out infinite;
}

.auth-illustration-dot:nth-of-type(2) {
  animation-delay: 0.6s;
}

.auth-illustration-dot:nth-of-type(3) {
  animation-delay: 1.2s;
}

.auth-illustration-caption {
  font-size: 0.9rem;
  color: var(--nursery-muted);
}

.login-story {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.login-story-header {
  display: grid;
  gap: 0.3rem;
}

.login-story-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 111, 106, 0.2);
  background: rgba(27, 111, 106, 0.06);
  color: var(--nursery-primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-story-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.login-story-subtitle {
  font-size: 0.9rem;
  color: var(--nursery-muted);
}

.login-story-scene {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: 18px;
  /* background: rgba(27, 111, 106, 0.06); */
  /* border: 1px solid rgba(31, 42, 55, 0.08); */
  overflow: hidden;
}

.login-story-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.login-story-route-path {
  fill: none;
  stroke: rgba(27, 111, 106, 0.55);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  animation: login-route 6s linear infinite;
}

.login-story-item {
  position: absolute;
  width: 120px;
  height: auto;
  animation: auth-float 6s ease-in-out infinite;
}

.login-story-tree {
  left: 8%;
  top: 6%;
  width: 150px;
  animation-delay: 0.2s;
}

.login-story-books {
  right: 10%;
  top: 22%;
  width: 120px;
  animation-delay: 0.6s;
}

.login-story-kids {
  left: 14%;
  top: 52%;
  width: 170px;
  animation-delay: 0.4s;
}

.login-story-mother {
  right: 14%;
  bottom: 6%;
  width: 160px;
  animation-delay: 0.8s;
}

.login-story-toy {
  right: 60%;
  top: 78%;
  width: 140px;
  animation-delay: 1s;
  display: none;
}

@keyframes login-route {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -64;
  }
}

.login-scene-floor { fill: #f0eee9; }
.login-scene-wall { fill: #fbfaf7; stroke: #e3ded6; stroke-width: 1.5; }
.login-scene-door rect { fill: #f4f1ea; stroke: #c8c2b7; stroke-width: 2; }
.login-scene-door circle { fill: #1b6f6a; }
.login-scene-shelf rect { fill: #f4f1ea; stroke: #c8c2b7; stroke-width: 2; }
.login-scene-shelf rect:nth-of-type(2) { fill: #7fb7a5; stroke: none; }
.login-scene-shelf rect:nth-of-type(3) { fill: #f2c16b; stroke: none; }
.login-scene-shelf rect:nth-of-type(4) { fill: #d9987a; stroke: none; }
.login-scene-parent circle { fill: #f2c16b; }
.login-scene-parent rect { fill: #e7c7a3; }
.login-scene-child circle { fill: #7fb7a5; }
.login-scene-child rect { fill: #a8d3c4; }
.login-scene-teacher circle { fill: #96a9c8; }
.login-scene-teacher rect { fill: #c6d2e8; }
.login-scene-wave { fill: #1b6f6a; opacity: 0.5; animation: story-wave 2.6s ease-in-out infinite; }
.login-scene-toys rect:nth-of-type(1) { fill: #7fb7a5; }
.login-scene-toys rect:nth-of-type(2) { fill: #f2c16b; }
.login-scene-toys rect:nth-of-type(3) { fill: #d9987a; }
.login-scene-update rect { fill: #e8edf2; stroke: #b9c3cf; stroke-width: 2; }
.login-scene-update-bar { fill: #1b6f6a; opacity: 0.2; animation: story-wave 2.2s ease-in-out infinite; }
.login-scene-path { fill: none; stroke: #cfd6dd; stroke-width: 2; stroke-dasharray: 6 8; animation: story-path 6s linear infinite; }
.login-scene-dot { fill: #1b6f6a; opacity: 0.7; animation: story-dot 3.5s ease-in-out infinite; }
.login-hand-line { fill: none; stroke: #c8c2b7; stroke-width: 2; stroke-linecap: round; }

.login-story-caption {
  font-size: 0.9rem;
  color: var(--nursery-muted);
}

@keyframes auth-path {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -28;
  }
}

@keyframes auth-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.auth-story {
  display: grid;
  gap: 1.5rem;
}

.auth-story-header h2 {
  font-size: clamp(1.8rem, 2.3vw, 2.2rem);
  margin-bottom: 0.4rem;
}

.auth-story-header p {
  color: var(--nursery-muted);
  margin-bottom: 0;
}

.auth-story-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 111, 106, 0.2);
  background: rgba(27, 111, 106, 0.06);
  color: var(--nursery-primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-story-stage {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.auth-story-scene {
  width: 100%;
  height: auto;
}

.story-floor {
  fill: #f0eee9;
}

.story-wall {
  fill: #fbfaf7;
  stroke: #e3ded6;
  stroke-width: 1.5;
}

.story-window {
  fill: #eaf1f7;
  stroke: #c8d4df;
  stroke-width: 2;
}

.story-window-line {
  stroke: #c8d4df;
  stroke-width: 1.5;
}

.story-rug {
  fill: #f7e8d5;
}

.story-shelf {
  fill: #f4f1ea;
  stroke: #c8c2b7;
  stroke-width: 2;
}

.story-shelf-item:nth-of-type(1) { fill: #7fb7a5; }
.story-shelf-item:nth-of-type(2) { fill: #f2c16b; }
.story-shelf-item:nth-of-type(3) { fill: #d9987a; }

.story-blocks rect:nth-of-type(1) { fill: #7fb7a5; }
.story-blocks rect:nth-of-type(2) { fill: #f2c16b; }
.story-blocks rect:nth-of-type(3) { fill: #d9987a; }

.story-books rect:nth-of-type(1) { fill: #f2c16b; }
.story-books rect:nth-of-type(2) { fill: #1b6f6a; }
.story-books rect:nth-of-type(3) { fill: #2e8c7f; }

.story-cubes rect:nth-of-type(1) { fill: #d9987a; }
.story-cubes rect:nth-of-type(2) { fill: #7fb7a5; }
.story-cubes rect:nth-of-type(3) { fill: #f2c16b; }

.story-paint ellipse { fill: #f4e7d6; }
.story-paint circle:nth-of-type(1) { fill: #7fb7a5; }
.story-paint circle:nth-of-type(2) { fill: #f2c16b; }
.story-paint circle:nth-of-type(3) { fill: #d9987a; }
.story-paint rect { fill: #1b6f6a; }

.story-parent circle { fill: #f2c16b; }
.story-parent rect { fill: #e7c7a3; }

.story-parent-two circle { fill: #d9987a; }
.story-parent-two rect { fill: #e7c7a3; }

.story-child circle { fill: #7fb7a5; }
.story-child rect { fill: #a8d3c4; }

.story-teacher circle { fill: #96a9c8; }
.story-teacher rect { fill: #c6d2e8; }

.story-toy-car rect { fill: #f2c16b; }
.story-toy-car circle { fill: #1b6f6a; }

.story-home rect { fill: #f4f1ea; stroke: #c8c2b7; stroke-width: 2; }
.story-home path { fill: #d9987a; stroke: #c18a6c; stroke-width: 2; stroke-linejoin: round; }
.story-home rect:nth-of-type(2) { fill: #e7c7a3; stroke: #c8c2b7; stroke-width: 1.5; }
.story-home rect:nth-of-type(3) { fill: #ffffff; stroke: #c8c2b7; stroke-width: 1.5; }

.story-tree rect { fill: #c28b5a; }
.story-tree circle { fill: #7fb7a5; }

.story-plant rect { fill: #d9c3a6; }
.story-plant path { fill: #7fb7a5; }

.story-path {
  fill: none;
  stroke: #cfd6dd;
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: story-path 6s linear infinite;
}

.story-path-dot {
  fill: #1b6f6a;
  animation: story-dot 3.5s ease-in-out infinite;
}

.story-path-dot:nth-of-type(2) { animation-delay: 0.6s; }
.story-path-dot:nth-of-type(3) { animation-delay: 1.2s; }

.story-parent,
.story-parent-two,
.story-child,
.story-teacher,
.story-blocks {
  animation: story-float 4.5s ease-in-out infinite;
}

.story-teacher { animation-delay: 0.8s; }
.story-child { animation-delay: 0.4s; }
.story-parent-two { animation-delay: 1s; }
.story-blocks { animation-delay: 1.2s; }

.story-wave {
  fill: #1b6f6a;
  opacity: 0.5;
  animation: story-wave 2.8s ease-in-out infinite;
}

.story-route {
  fill: none;
  stroke: #c9d4d9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: story-route 8s linear infinite;
}

.story-route-dot {
  fill: #1b6f6a;
  opacity: 0.7;
  animation: story-dot 4s ease-in-out infinite;
}

.story-route-dot:nth-of-type(2) { animation-delay: 0.4s; }
.story-route-dot:nth-of-type(3) { animation-delay: 0.8s; }
.story-route-dot:nth-of-type(4) { animation-delay: 1.2s; }
.story-route-dot:nth-of-type(5) { animation-delay: 1.6s; }

.story-home {
  animation: story-float 4.2s ease-in-out infinite;
}

.auth-story-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--nursery-muted);
}

.auth-story-step {
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  background: #f7f8fa;
  font-weight: 600;
}

@keyframes story-path {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -28; }
}

@keyframes story-route {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -36; }
}

@keyframes story-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 1; }
}

@keyframes story-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes story-wave {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 0.8; }
}


.auth-footer {
  text-align: center;
  color: var(--nursery-muted);
}

.auth-footer a {
  color: var(--nursery-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--nursery-primary-dark);
}

@media (max-width: 991.98px) {
  .auth-shell {
    padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom));
  }

  .auth-pane {
    padding: 0;
  }

  .auth-divider {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--auth-divider);
    padding-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .auth-panel-grid {
    grid-template-columns: 1fr;
  }

  .auth-story-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nursery-onboarding {
  border-radius: 24px;
}

.page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.8rem 2rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 16px 32px rgba(20, 33, 45, 0.08);
}

.page-hero {
  display: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(27, 111, 106, 0.1);
  border: 1px solid rgba(27, 111, 106, 0.2);
  color: var(--nursery-primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero-main {
  display: grid;
  gap: 0.45rem;
}

.page-title {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 700;
  margin: 0;
  color: var(--nursery-ink);
}

.page-subtitle {
  margin: 0;
  color: var(--nursery-muted);
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-meta div {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 42, 55, 0.08);
  min-width: 120px;
  backdrop-filter: blur(6px);
}

.hero-meta strong {
  display: block;
  font-size: 0.9rem;
}

.hero-meta span {
  color: var(--nursery-muted);
  font-size: 0.8rem;
}

.onboarding-shell {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(31, 42, 55, 0.08);
  box-shadow: 0 12px 24px rgba(20, 33, 45, 0.06);
}

.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: rgba(27, 111, 106, 0.18);
}

.timeline-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--nursery-muted);
  font-weight: 600;
  min-width: 140px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.timeline-item:focus-visible {
  outline: 2px solid rgba(27, 111, 106, 0.3);
  outline-offset: 4px;
  border-radius: 12px;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid rgba(27, 111, 106, 0.2);
  color: var(--nursery-muted);
  font-weight: 700;
}

.timeline-label {
  font-size: 0.85rem;
  text-align: center;
}

.timeline-item.active {
  color: var(--nursery-primary-dark);
}

.timeline-item.active .timeline-dot {
  background: var(--nursery-primary);
  border-color: var(--nursery-primary);
  color: #fff;
  box-shadow: 0 12px 20px rgba(27, 111, 106, 0.25);
}

.timeline-item.completed {
  color: var(--nursery-primary-dark);
}

.timeline-item.completed .timeline-dot {
  background: rgba(27, 111, 106, 0.18);
  border-color: rgba(27, 111, 106, 0.35);
  color: var(--nursery-primary-dark);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.step-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.placeholder-box {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px dashed rgba(27, 111, 106, 0.25);
  background: rgba(27, 111, 106, 0.06);
  color: var(--nursery-primary-dark);
}

.room-list {
  display: grid;
  gap: 0.8rem;
}

.room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.room-item strong {
  display: block;
  font-size: 0.95rem;
}

.room-item span {
  color: var(--nursery-muted);
  font-size: 0.85rem;
}

.room-capacity {
  font-weight: 600;
  color: var(--nursery-primary-dark);
  font-size: 0.85rem;
}

.room-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.room-edit {
  font-weight: 600;
  color: var(--nursery-primary-dark);
  text-decoration: none;
  padding: 0.2rem 1rem;
  border-radius: 10px;
  background: rgba(27, 111, 106, 0.12);
}

.room-edit:hover {
  background: rgba(27, 111, 106, 0.2);
}

.room-add-child {
  font-weight: 600;
  color: #b45814;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  background: rgba(244, 162, 89, 0.2);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.room-add-child:hover {
  background: rgba(244, 162, 89, 0.3);
}

.ratio-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ratio-options .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ratio-by-time-fields,
.ratio-simple-fields {
  margin-top: 0.5rem;
}

.toast-stack {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  gap: 0.75rem;
  z-index: 1050;
}

.toast-card {
  min-width: 240px;
  max-width: 320px;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 30px rgba(20, 33, 45, 0.18);
  border-left: 4px solid var(--nursery-primary);
  animation: toast-in 0.25s ease;
}

.toast-card.toast-success {
  border-left-color: #1b6f6a;
}

.toast-card.toast-error {
  border-left-color: #e15b4f;
}

.toast-card.toast-info {
  border-left-color: #2c7be5;
}

.toast-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--nursery-ink);
  font-weight: 600;
}

.toast-close {
  border: none;
  background: transparent;
  color: var(--nursery-muted);
  font-weight: 700;
  cursor: pointer;
}

.toast-hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn {
  border-radius: 14px;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:focus,
.btn:focus-visible {
  box-shadow: var(--nursery-ring);
}

.btn-primary {
  background: var(--nursery-primary);
  border-color: var(--nursery-primary);
  box-shadow: 0 12px 24px rgba(27, 111, 106, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--nursery-primary-dark);
  border-color: var(--nursery-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(27, 111, 106, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(27, 111, 106, 0.2);
}

.btn-outline-secondary {
  border-color: rgba(31, 42, 55, 0.2);
  color: var(--nursery-ink);
  background: #ffffff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(31, 42, 55, 0.08);
  border-color: rgba(31, 42, 55, 0.38);
  color: var(--nursery-ink);
  transform: translateY(-1px);
}

.btn-outline-secondary:active {
  transform: translateY(0);
  background: rgba(31, 42, 55, 0.1);
}

.btn-outline-primary {
  border-color: rgba(27, 111, 106, 0.45);
  color: var(--nursery-primary-dark);
  background: rgba(27, 111, 106, 0.08);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(27, 111, 106, 0.18);
  border-color: rgba(27, 111, 106, 0.65);
  transform: translateY(-1px);
}

.btn-outline-primary:active {
  transform: translateY(0);
  background: rgba(27, 111, 106, 0.22);
}

.btn-link {
  color: var(--nursery-primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--nursery-primary-dark);
  text-decoration: none;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

.btn-lg {
  padding: 0.7rem 1.3rem;
  border-radius: 16px;
}

.btn-sm {
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
}

.action-menu-btn {
  border: none;
  background: transparent;
  padding: 0.2rem 0.4rem;
  color: var(--nursery-ink);
}

.action-dots {
  font-size: 1.1rem;
  line-height: 1;
}

.action-menu-btn:hover,
.action-menu-btn:focus {
  color: var(--nursery-primary-dark);
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nursery-ink);
  border: 1px solid var(--nursery-ink);
  color: #ffffff;
}

.icon-button:hover,
.icon-button:focus {
  background: #ffffff;
  color: var(--nursery-ink);
}

.icon-button:hover .icon-bars,
.icon-button:hover .icon-bars::before,
.icon-button:hover .icon-bars::after,
.icon-button:focus .icon-bars,
.icon-button:focus .icon-bars::before,
.icon-button:focus .icon-bars::after {
  background: var(--nursery-ink);
}

.icon-bars {
  width: 20px;
  height: 2px;
  background: #ffffff;
  position: relative;
  display: inline-block;
  border-radius: 999px;
}

.icon-bars::before,
.icon-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.icon-bars::before {
  top: -6px;
}

.icon-bars::after {
  top: 6px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(27, 111, 106, 0.1);
  border: 1px solid rgba(27, 111, 106, 0.18);
  color: var(--nursery-primary-dark);
  font-weight: 600;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(27, 111, 106, 0.18);
}

.step-label {
  font-size: 0.9rem;
}

.step:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: var(--nursery-muted);
  border-color: rgba(31, 42, 55, 0.08);
}

.step:not(.active) .step-number {
  background: rgba(31, 42, 55, 0.08);
  color: var(--nursery-muted);
}

.section-card {
  background: #ffffff;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(20, 33, 45, 0.08);
  position: relative;
}

.form-section {
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 24px rgba(20, 33, 45, 0.06);
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section .section-header {
  margin-bottom: 0.8rem;
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(27, 111, 106, 0.08);
  pointer-events: none;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.section-subtitle {
  color: var(--nursery-muted);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.badge-soft {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(244, 162, 89, 0.2);
  color: #b45814;
  font-weight: 600;
  font-size: 0.75rem;
}

.day-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.day-tabs {
  margin-top: 1rem;
}

.day-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.day-tab {
  border: none;
  background: rgba(27, 111, 106, 0.08);
  color: var(--nursery-primary-dark);
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.day-tab.active {
  background: var(--nursery-primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(27, 111, 106, 0.2);
}

.day-tab:focus-visible {
  outline: 2px solid rgba(27, 111, 106, 0.3);
  outline-offset: 3px;
}

.day-tab-panels {
  display: grid;
  gap: 0.9rem;
}

.day-tab-panel {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 55, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.day-tab-panel.active {
  display: block;
}

.day-tab-empty {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(31, 42, 55, 0.12);
  color: var(--nursery-muted);
  font-size: 0.85rem;
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.schedule-day {
  font-weight: 700;
  color: var(--nursery-primary-dark);
}

.schedule-label {
  font-size: 0.8rem;
  color: var(--nursery-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 111, 106, 0.2);
  background: rgba(27, 111, 106, 0.1);
  color: var(--nursery-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.day-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--nursery-primary);
}

.logo-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.logo-preview {
  height: auto;
  border-radius: 18px;
  border: 1px dashed rgba(27, 111, 106, 0.4);
  background: rgba(27, 111, 106, 0.07);
  display: grid;
  place-items: center;
  color: var(--nursery-muted);
  font-weight: 600;
  overflow: hidden;
  padding: 1rem;
}

.logo-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.child-photo-preview {
  height: 140px;
  border-radius: 16px;
  border: 1px dashed rgba(27, 111, 106, 0.4);
  background: rgba(27, 111, 106, 0.06);
  display: grid;
  place-items: center;
  color: var(--nursery-muted);
  font-weight: 600;
  overflow: hidden;
  padding: 0.75rem;
}

.child-photo-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.child-photo-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.child-tabs {
  border-radius: 12px;
  background: #f3f5f7;
  padding: 0.4rem 0.6rem;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.child-tabs .nav-link {
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  color: var(--nursery-muted);
  font-weight: 600;
  background: transparent;
}

.child-tabs .nav-link.active {
  background: #ffffff;
  color: var(--nursery-ink);
  box-shadow: 0 8px 18px rgba(20, 33, 45, 0.08);
}

.child-tabs .nav-link:disabled {
  color: rgba(31, 42, 55, 0.35);
}

.child-tab-content {
  margin-top: 0.5rem;
}

.question-list {
  display: grid;
  gap: 0.6rem;
}

.question-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.question-row .form-control {
  flex: 1 1 0;
  min-width: 0;
}

.question-row .question-remove {
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  flex: 0 0 auto;
}

.doctor-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.6rem;
}

.doctor-row > .col-md-6 {
  grid-column: span 6;
}

.doctor-row > .col-12 {
  grid-column: span 12;
}

@media (max-width: 767.98px) {
  .question-row {
    flex-wrap: wrap;
  }

  .doctor-row > .col-md-6 {
    grid-column: span 12;
  }
}

.attachment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.attachment-box {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 1px dashed rgba(31, 42, 55, 0.2);
  display: grid;
  place-items: center;
  color: var(--nursery-muted);
  font-weight: 600;
  background: rgba(31, 42, 55, 0.03);
  text-align: center;
  padding: 0.4rem;
  position: relative;
  overflow: hidden;
}

.attachment-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.attachment-upload {
  cursor: pointer;
}

.attachment-icon {
  font-weight: 700;
  color: var(--nursery-ink);
  font-size: 0.85rem;
}

.attachment-name {
  font-size: 0.7rem;
  color: var(--nursery-ink);
  text-align: center;
  padding: 0 0.25rem;
  word-break: break-word;
}

.required-items-list {
  display: grid;
  gap: 0.75rem;
}

.required-item-card {
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 0.75rem;
}

.required-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
}

.booking-grid {
  display: grid;
  gap: 1rem;
}

.booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.booking-row:last-child {
  border-bottom: none;
}

.booking-label {
  min-width: 180px;
  font-weight: 600;
}

.booking-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.booking-day {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--nursery-ink);
}

.booking-row.is-disabled .booking-days {
  opacity: 0.5;
}

@media (max-width: 767.98px) {
  .booking-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-days {
    justify-content: flex-start;
  }
}

.logo-actions .form-control {
  border-radius: 12px;
}

.onboarding-shell .form-control,
.onboarding-shell .form-select {
  border-radius: 14px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(31, 42, 55, 0.12);
  box-shadow: none;
}

.onboarding-shell .form-control:focus,
.onboarding-shell .form-select:focus {
  border-color: var(--nursery-primary);
  box-shadow: var(--nursery-ring);
}

.field-hint {
  color: var(--nursery-muted);
  font-size: 0.78rem;
  margin-top: 0.4rem;
}

.stripe-card-element {
  border: 1px solid rgba(31, 42, 55, 0.12);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  background: #fff;
  min-height: 48px;
}

.stripe-card-element.StripeElement--focus {
  border-color: var(--nursery-primary);
  box-shadow: var(--nursery-ring);
}

.stripe-card-element.StripeElement--invalid {
  border-color: #e15b4f;
}

.select2-container {
  width: 100% !important;
  font-family: var(--font-sans);
}

.select2-container .select2-selection--multiple {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  padding: 0.35rem 0.75rem;
  box-shadow: none;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.select2-container--focus .select2-selection--multiple,
.select2-container--open .select2-selection--multiple {
  border-color: var(--nursery-primary);
  box-shadow: var(--nursery-ring);
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
  background: rgba(27, 111, 106, 0.12);
  color: var(--nursery-primary-dark);
  border: none;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin: 0;
  font-weight: 600;
  font-size: 0.85rem;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--nursery-primary-dark);
  margin-right: 0.35rem;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 0;
  font-size: 0.95rem;
  color: var(--nursery-ink);
}

.select2-dropdown {
  border-radius: 12px;
  border: 1px solid rgba(31, 42, 55, 0.12);
  box-shadow: 0 12px 24px rgba(20, 33, 45, 0.14);
  overflow: hidden;
}

.select2-results__option {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.select2-results__option--highlighted {
  background: rgba(27, 111, 106, 0.12);
  color: var(--nursery-primary-dark);
}

.select2-results__option--selected {
  background: rgba(27, 111, 106, 0.18);
  color: var(--nursery-primary-dark);
}

.select2-container--open {
  z-index: 1060;
}

.info-list {
  display: grid;
  gap: 0.9rem;
}

.info-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.info-list span {
  color: var(--nursery-muted);
  font-size: 0.85rem;
}

.btn-primary.btn-lg {
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(27, 111, 106, 0.25);
}

@media (max-width: 991.98px) {
  .section-card {
    box-shadow: 0 10px 24px rgba(20, 33, 45, 0.06);
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-steps {
    flex-direction: column;
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0.5rem;
  }

  .timeline::before {
    top: 18px;
    bottom: 18px;
    left: 18px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-item {
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .dashboard-shell {
    overflow-x: hidden;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    height: 100dvh;
    z-index: 1045;
  }

  .dashboard-main {
    width: 100%;
  }
}
.table-responsive {
  position: relative;
  z-index: 1;
}

.table-responsive .dropdown-menu {
  z-index: 2000;
}
