.sidebar-settings-wrap {
  list-style: none;
}

.sidebar-menu a.menu-item {
  text-decoration: none;
  color: inherit;
}

.menu-item-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.header-page-title {
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.user-caret {
  font-size: 10px;
  margin-left: 4px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  text-align: left;
}

.user-dropdown-item:hover {
  background: #f0f8fd;
  color: #0577c4;
}

.user-dropdown-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #0577c4;
}

.user-dropdown .user-dropdown-logout {
  color: #ef4444;
  border-top: 1px solid #eee;
}

.change-password-modal {
  max-width: 480px;
  width: 100%;
}

.change-password-modal .modal-header {
  padding: 22px 28px;
}

.change-password-modal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.change-password-body {
  padding: 24px 28px 8px !important;
}

.change-password-hint {
  margin: 0 0 22px;
  padding: 12px 14px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.change-password-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.change-password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.change-password-field:last-child {
  margin-bottom: 0;
}

.change-password-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.change-password-input-wrap {
  position: relative;
  width: 100%;
}

.change-password-input-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 44px 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.change-password-input-wrap input::placeholder {
  color: #9ca3af;
}

.change-password-input-wrap input:hover {
  border-color: #9ca3af;
}

.change-password-input-wrap input:focus {
  outline: none;
  border-color: #0577c4;
  box-shadow: 0 0 0 3px rgba(5, 119, 196, 0.15);
}

.change-password-input-wrap input.error-field {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.change-password-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  pointer-events: none;
}

.change-password-input-icon svg {
  width: 18px;
  height: 18px;
}

.change-password-field .field-error {
  margin-top: 2px;
  min-height: 18px;
}

.change-password-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 28px 24px !important;
  border-top: 1px solid #f3f4f6;
  background: #fafbfc;
}

.change-password-footer .btn {
  min-width: 130px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

.modal-narrow {
  max-width: 480px;
  width: calc(100% - 32px);
}

@media (max-width: 480px) {
  .change-password-modal .modal-header,
  .change-password-body,
  .change-password-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .change-password-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .change-password-footer .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Searchable select (influencer location, etc.) */
.searchable-select {
  position: relative;
  width: 100%;
}

.searchable-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  text-align: left;
}

.searchable-select-trigger:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.searchable-select-label.is-placeholder {
  color: #9ca3af;
}

.searchable-select-caret {
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
}

.searchable-select.is-open .searchable-select-trigger {
  border-color: #0577c4;
  box-shadow: 0 0 0 3px rgba(5, 119, 196, 0.12);
}

.searchable-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.searchable-select-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.searchable-select-options {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 200px;
  overflow-y: auto;
}

.searchable-select-option,
.searchable-select-empty {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

.searchable-select-option:hover {
  background: #f0f8fd;
  color: #0577c4;
}

.searchable-select-option.is-selected {
  background: #e8f1fa;
  color: #0577c4;
  font-weight: 600;
}

.searchable-select-empty {
  color: #9ca3af;
  cursor: default;
}

.searchable-select-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

/* ---- Settings submenu ---- */

.settings-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.settings-submenu.is-open {
  max-height: 500px;
  opacity: 1;
}

/* Wrapper for each labelled group (Projects, Media) */
.submenu-group {
  margin: 4px 8px 2px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

/* Group label row — looks like a mini section header inside the card */
.submenu-group-label {
  display: block;
  padding: 7px 12px 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #b0b7c3;
  border-bottom: 1px solid #f0f0f2;
  user-select: none;
}

/* List inside each group */
.submenu-list {
  list-style: none;
  margin: 0;
  padding: 4px 4px;
}

.submenu-list li {
  list-style: none;
}

/* Each submenu item — icon + label, like a mini .menu-item */
.submenu-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.submenu-link:hover {
  background: #fce4ec;
  color: #e91e63;
  text-decoration: none;
}

.submenu-link:hover .sub-icon {
  color: #f06292;
}

.submenu-link.active {
  background: #fce4ec;
  color: #e91e63;
  font-weight: 600;
  text-decoration: none;
}

.submenu-link.active .sub-icon {
  color: #e91e63;
}

/* Disabled state */
.submenu-link-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sub-icon — same stroke style as .nav-icon, just smaller */
.sub-icon {
  width: 14px;
  height: 14px;
  stroke: #0056A4;
  flex-shrink: 0;
  transition: stroke 0.18s ease;
}

.submenu-link:hover .sub-icon,
.submenu-link.active .sub-icon {
  stroke: #e91e63;
}

/* Chevron pill on Settings parent */
.settings-chevron {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #9ca3af;
  background: #f3f4f6;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.menu-item[aria-expanded="true"] .settings-chevron,
.menu-item.active .settings-chevron {
  background: #fce4ec;
  color: #e91e63;
  transform: rotate(180deg);
}

button.menu-toggle {
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}

.activity-tabs-wrapper .tab-nav .tab-btn {
  font: inherit;
  font-family: inherit;
}

.activity-tabs-wrapper .tab-nav .tab-btn.active {
  color: #0577c4;
  font-size: 16px;
  font-weight: 700;
  border-bottom-color: #0577c4;
  background: #fff;
}

.field-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 6px;
}

.error-field {
  border-color: #dc2626 !important;
}

.page-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  max-width: 560px;
}

.page-card h3 {
  margin-top: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.alert-banner {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.alert-banner-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.user-dropdown-logout-form {
  margin: 0;
  padding: 0;
}

.user-dropdown-logout-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  color: #ef4444;
  border-top: 1px solid #eee;
}

.pag-links .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.pag-links .page-link,
.pag-links span[aria-current='page'] span {
  display: inline-flex;
  min-width: 36px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.pag-links a {
  color: #0056a4;
}

/* Sidebar — logged-in user card */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-user-card:hover {
  border-color: #bfd9f0;
  box-shadow: 0 4px 14px rgba(0, 86, 164, 0.08);
}

.sidebar-user-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0056a4 0%, #0577c4 100%);
  box-shadow: 0 2px 8px rgba(0, 86, 164, 0.2);
}

.sidebar-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0056a4;
  background: #e8f2fc;
  border: 1px solid #cfe3f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar — program summary card */
.sidebar-program-card {
  text-align: center;
}

.sidebar-program-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-program-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.sidebar-program-stat--kids .sidebar-program-count {
  color: #e91e63;
}

.sidebar-program-stat--mothers .sidebar-program-count {
  color: #0056a4;
}

.sidebar-program-count {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.sidebar-program-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.sidebar-program-caption {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.sidebar-card.sidebar-program-card h4 {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-program-stats {
    gap: 8px;
  }
}

.role-field-wrap {
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}

.role-field-wrap[hidden] {
  display: none !important;
}

.role-field-wrap--visible {
  animation: roleFieldFadeIn 0.2s ease;
}

@keyframes roleFieldFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
