:root {
  --mslp-primary: #0A192F;
  --mslp-accent: #1D8CF8;
  --mslp-accent-soft: #EAF4FF;
  --mslp-line: #D8E7F7;
  --mslp-surface: #FFFFFF;
  --mslp-page: #F7FAFF;
  --mslp-muted: rgba(10, 25, 47, .64);
  --mslp-radius: 14px;
  --mslp-field-radius: 8px;
}

body.mslp-tutor-dashboard {
  overflow-x: clip;
  color: var(--mslp-primary);
  background: var(--mslp-surface);
}

body.mslp-tutor-dashboard .content-wrapper,
body.mslp-tutor-dashboard .page-content {
  width: 100%;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.mslp-sidebar-lock {
  overflow: hidden;
}

.mslp-dashboard-shell {
  width: 100%;
  padding: 18px 0 36px;
  background: var(--mslp-page);
}

.mslp-dashboard-shell .tutor-dashboard-layout {
  width: min(1320px, calc(100% - 32px));
  min-height: 680px;
  display: flex !important;
  align-items: stretch;
  margin: 0 auto;
  overflow: hidden;
  direction: rtl;
  background: var(--mslp-surface);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-radius);
}

.mslp-dashboard-sidebar {
  position: relative !important;
  inset: auto !important;
  z-index: 30;
  width: 286px !important;
  min-width: 286px;
  height: auto !important;
  min-height: 680px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex: 0 0 286px;
  flex-direction: column;
  padding: 20px 14px 16px;
  overflow-y: auto;
  transform: none !important;
  scrollbar-width: thin;
  scrollbar-color: var(--mslp-line) transparent;
  background: var(--mslp-surface);
  border: 0;
  border-left: 1px solid var(--mslp-line);
  box-shadow: none;
}

.mslp-dashboard-sidebar .tutor-dashboard-sidebar-logo {
  position: relative;
  width: 82px;
  height: 32px;
  display: block;
  flex: 0 0 32px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.mslp-dashboard-sidebar .tutor-dashboard-sidebar-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 136px !important;
  height: 136px !important;
  max-width: none !important;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.mslp-dashboard-profile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px 11px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px;
  background: var(--mslp-page);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-radius);
}

.mslp-dashboard-profile .mslp-dashboard-profile__avatar,
.mslp-dashboard-profile > img {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  object-fit: cover;
  border: 2px solid var(--mslp-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--mslp-line);
}

.mslp-dashboard-profile__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mslp-dashboard-profile__copy small {
  color: var(--mslp-muted);
  font-size: 10px;
}

.mslp-dashboard-profile__copy strong {
  overflow: hidden;
  color: var(--mslp-primary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mslp-dashboard-profile__progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
}

.mslp-dashboard-profile__progress > span {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: var(--mslp-line);
  border-radius: 999px;
}

.mslp-dashboard-profile__progress > span::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--mslp-profile-progress);
  background: var(--mslp-accent);
  border-radius: inherit;
}

.mslp-dashboard-profile__progress small {
  color: var(--mslp-muted);
  font-size: 9px;
}

.mslp-dashboard-profile__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mslp-dashboard-profile__actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  color: var(--mslp-primary);
  background: var(--mslp-surface);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-field-radius);
  font-size: 9px;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.mslp-dashboard-profile__actions a i {
  color: var(--mslp-accent);
  font-size: 11px;
}

.mslp-dashboard-profile__actions a:hover,
.mslp-dashboard-profile__actions a:focus-visible {
  color: var(--mslp-surface);
  background: var(--mslp-accent);
  border-color: var(--mslp-accent);
}

.mslp-dashboard-profile__actions a:hover i,
.mslp-dashboard-profile__actions a:focus-visible i {
  color: var(--mslp-surface);
}

.mslp-dashboard-nav {
  display: grid;
  gap: 4px;
}

.mslp-dashboard-nav__label {
  margin: 13px 10px 4px;
  color: var(--mslp-muted);
  font-size: 9px;
  font-weight: 700;
}

.mslp-dashboard-nav__item,
.mslp-dashboard-nav__group > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  color: rgba(10, 25, 47, .76);
  border: 1px solid transparent;
  border-radius: var(--mslp-field-radius);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.mslp-dashboard-nav__item > i,
.mslp-dashboard-nav__group > summary span > i {
  width: 19px;
  flex: 0 0 19px;
  color: var(--mslp-accent);
  font-size: 15px;
  text-align: center;
}

.mslp-dashboard-nav__item > span {
  min-width: 0;
  flex: 1;
}

.mslp-dashboard-nav__item:hover,
.mslp-dashboard-nav__item:focus-visible,
.mslp-dashboard-nav__group > summary:hover,
.mslp-dashboard-nav__group > summary:focus-visible {
  color: var(--mslp-primary);
  background: var(--mslp-accent-soft);
  border-color: var(--mslp-line);
  transform: translateX(-2px);
}

.mslp-dashboard-nav__item.is-active {
  color: var(--mslp-surface);
  background: var(--mslp-accent);
  border-color: var(--mslp-accent);
}

.mslp-dashboard-nav__item.is-active > i {
  color: var(--mslp-surface);
}

.mslp-dashboard-nav__group {
  margin: 0;
}

.mslp-dashboard-nav__group > summary {
  justify-content: space-between;
  list-style: none;
}

.mslp-dashboard-nav__group > summary::-webkit-details-marker {
  display: none;
}

.mslp-dashboard-nav__group > summary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mslp-dashboard-nav__group > summary > i {
  color: var(--mslp-muted);
  font-size: 10px;
  transition: transform .2s ease;
}

.mslp-dashboard-nav__group[open] > summary > i {
  transform: rotate(180deg);
}

.mslp-dashboard-nav__children {
  display: grid;
  gap: 2px;
  margin: 3px 0 7px;
  padding-right: 13px;
  border-right: 1px solid var(--mslp-line);
}

.mslp-dashboard-nav__children .mslp-dashboard-nav__item {
  min-height: 37px;
  padding-block: 7px;
  font-size: 10px;
}

.mslp-dashboard-nav__children .mslp-dashboard-nav__item > i {
  font-size: 12px;
}

.mslp-nav-count {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: var(--mslp-primary);
  background: var(--mslp-surface);
  border: 1px solid var(--mslp-line);
  border-radius: 999px;
  font-size: 9px;
}

.mslp-dashboard-nav__item.is-active .mslp-nav-count {
  color: var(--mslp-accent);
  border-color: var(--mslp-surface);
}

.mslp-dashboard-logout {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  color: var(--mslp-primary);
  background: var(--mslp-page);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-field-radius);
  font-size: 11px;
  text-decoration: none !important;
}

.mslp-dashboard-logout i {
  color: var(--mslp-accent);
}

.mslp-dashboard-logout:hover,
.mslp-dashboard-logout:focus-visible {
  color: var(--mslp-surface);
  background: var(--mslp-primary);
  border-color: var(--mslp-primary);
}

.mslp-dashboard-logout:hover i,
.mslp-dashboard-logout:focus-visible i {
  color: var(--mslp-surface);
}

.mslp-dashboard-main {
  min-width: 0;
  width: auto !important;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  background: var(--mslp-page);
}

.mslp-dashboard-heading {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px clamp(22px, 3vw, 38px);
  background: var(--mslp-surface);
  border-bottom: 1px solid var(--mslp-line);
}

.mslp-dashboard-heading__eyebrow {
  margin: 0 0 5px;
  color: var(--mslp-accent);
  font-size: 10px;
  font-weight: 700;
}

.mslp-dashboard-heading h1 {
  margin: 0;
  color: var(--mslp-primary);
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.mslp-dashboard-heading__welcome {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--mslp-muted);
  font-size: 11px;
  white-space: nowrap;
}

.mslp-dashboard-heading__welcome strong {
  color: var(--mslp-primary);
}

.mslp-dashboard-body {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  padding: clamp(20px, 2.5vw, 32px);
  overflow: visible !important;
  background: var(--mslp-page);
}

.mslp-dashboard-page {
  position: relative;
  width: 100%;
  min-height: 420px;
  margin: 0 auto;
  opacity: 1 !important;
  visibility: visible !important;
}

.mslp-dashboard-shell :is(.tutor-card, .tutor-dashboard-page-card, .tutor-dashboard-courses-card, .tutor-qna-table-wrapper, .tutor-account-page-wrapper) {
  background: var(--mslp-surface);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-radius);
  box-shadow: none;
}

.mslp-dashboard-courses-wrapper,
.mslp-dashboard-courses-card {
  width: 100%;
  max-width: none !important;
}

.mslp-dashboard-courses-card {
  overflow: hidden;
}

.mslp-dashboard-courses-tab {
  overflow-x: auto;
  border-bottom: 1px solid var(--mslp-line);
}

.mslp-dashboard-shell .tutor-nav {
  min-width: max-content;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 0;
}

.mslp-dashboard-shell .tutor-nav-link {
  min-height: 40px;
  color: var(--mslp-muted) !important;
  border-radius: var(--mslp-field-radius) var(--mslp-field-radius) 0 0;
  white-space: nowrap;
}

.mslp-dashboard-shell .tutor-nav-link:hover,
.mslp-dashboard-shell .tutor-nav-link.is-active {
  color: var(--mslp-accent) !important;
  background: var(--mslp-accent-soft);
}

.mslp-dashboard-courses-list {
  width: 100%;
}

.mslp-dashboard-shell .tutor-progress-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-radius);
  box-shadow: none;
}

.mslp-dashboard-shell .tutor-progress-card-inner {
  min-width: 0;
}

.mslp-dashboard-shell .tutor-progress-card-content {
  min-width: 0;
  flex: 1;
}

.mslp-dashboard-shell .tutor-progress-card img {
  object-fit: cover;
  border-radius: var(--mslp-field-radius);
}

.mslp-dashboard-shell .tutor-wishlist-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.mslp-dashboard-shell .tutor-course-card {
  min-width: 0;
  width: 100% !important;
  overflow: hidden;
  background: var(--mslp-surface);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-radius);
  box-shadow: none;
}

.mslp-dashboard-shell .tutor-course-card-thumbnail,
.mslp-dashboard-shell .tutor-course-card-thumbnail img {
  width: 100%;
  display: block;
}

.mslp-dashboard-shell .tutor-course-card-thumbnail img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mslp-dashboard-shell .tutor-course-card-title {
  min-height: 52px;
  line-height: 1.7;
}

.mslp-dashboard-shell .tutor-course-card-footer {
  color: var(--mslp-accent);
  border-top-color: var(--mslp-line);
  font-weight: 700;
}

.mslp-dashboard-shell .tutor-empty-state {
  max-width: 680px;
  margin: 12px auto;
  padding: clamp(26px, 4vw, 44px);
  background: var(--mslp-surface);
  border: 1px dashed var(--mslp-line);
  border-radius: var(--mslp-radius);
}

.mslp-dashboard-empty-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 18px;
  color: var(--mslp-surface) !important;
  background: var(--mslp-accent);
  border-radius: var(--mslp-field-radius);
  font-weight: 700;
  text-decoration: none;
}

.mslp-dashboard-empty-action:hover,
.mslp-dashboard-empty-action:focus-visible {
  background: var(--mslp-primary);
}

.mslp-account-shell .tutor-account-page-wrapper {
  width: 100%;
  min-height: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.mslp-account-shell .tutor-profile-header {
  display: none !important;
}

.mslp-account-shell .tutor-account-container {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.mslp-account-shell :is(.tutor-profile-settings-section, .tutor-profile-wrapper, .tutor-user-reviews, .tutor-account-section) {
  min-height: auto !important;
  background: transparent !important;
}

.mslp-account-shell .tutor-profile-settings-section .tutor-account-container > div > .tutor-flex {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 !important;
  padding: 0;
}

.mslp-account-shell .tutor-profile-settings-tab-content {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--mslp-surface);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-radius);
}

.mslp-account-shell .tutor-account-section form,
.mslp-account-shell form {
  max-width: 760px;
  margin-inline: auto;
}

.mslp-account-shell :is(.tutor-card, .tutor-account-section .tutor-card, .tutor-preferences-section .tutor-card) {
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--mslp-line);
  border-radius: var(--mslp-radius);
  box-shadow: none;
}

.mslp-account-shell :is(.tutor-form-control, .tutor-form-select, .tutor-input, input, select, textarea) {
  border-color: var(--mslp-line) !important;
  border-radius: var(--mslp-field-radius) !important;
}

.mslp-account-shell :is(input, textarea)::placeholder {
  color: rgba(10, 25, 47, .48);
  opacity: 1;
}

.mslp-account-shell :is(input[type="email"], input[type="tel"], input[name*="phone"], input[name*="email"]) {
  direction: ltr;
  text-align: right;
}

.mslp-account-shell .tutor-profile-cover,
.mslp-account-shell .tutor-account-cover-photo {
  min-height: 140px;
  max-height: 170px;
  border-radius: var(--mslp-field-radius);
}

.mslp-account-shell .tutor-preferences-setting-item {
  min-height: 62px;
  gap: 18px;
  padding-block: 11px;
}

.mslp-account-shell .tutor-preferences-setting-subtitle {
  max-width: 52ch;
  color: var(--mslp-muted);
  line-height: 1.7;
}

.mslp-dashboard-shell :is(.tutor-form-control, .tutor-form-select):focus,
.mslp-account-shell :is(.tutor-form-control, .tutor-input, input, select, textarea):focus {
  border-color: var(--mslp-accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 140, 248, .13) !important;
}

.mslp-dashboard-shell .tutor-btn-primary,
.mslp-account-shell .tutor-btn-primary {
  color: var(--mslp-surface) !important;
  background: var(--mslp-accent) !important;
  border-color: var(--mslp-accent) !important;
  border-radius: var(--mslp-field-radius) !important;
}

.mslp-dashboard-shell .tutor-btn-primary:hover,
.mslp-account-shell .tutor-btn-primary:hover {
  background: var(--mslp-primary) !important;
  border-color: var(--mslp-primary) !important;
}

.mslp-dashboard-shell :is(.tutor-alert, .tutor-toast, [role="alert"]) {
  border-radius: var(--mslp-field-radius);
}

.mslp-dashboard-shell .tutor-stat-card-time-spent,
.mslp-dashboard-shell .tutor-dashboard-info-card-value {
  unicode-bidi: plaintext;
}

.mslp-dashboard-shell :focus-visible {
  outline: 3px solid rgba(29, 140, 248, .3);
  outline-offset: 2px;
}

.mslp-dashboard-sidebar-toggle,
.mslp-dashboard-sidebar-backdrop {
  display: none;
}

@media (min-width: 768px) {
  .mslp-account-shell .tutor-profile-settings-tab {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .mslp-dashboard-sidebar {
    width: 252px !important;
    min-width: 252px;
    flex-basis: 252px;
  }

  .mslp-dashboard-heading__welcome {
    display: none;
  }

  .mslp-dashboard-shell .tutor-wishlist-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .mslp-dashboard-shell {
    padding: 10px 0 28px;
  }

  .mslp-dashboard-shell .tutor-dashboard-layout {
    width: calc(100% - 20px);
    min-height: 560px;
  }

  .mslp-dashboard-sidebar-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 10px;
    padding: 9px 13px;
    color: var(--mslp-primary);
    background: var(--mslp-surface);
    border: 1px solid var(--mslp-line);
    border-radius: var(--mslp-field-radius);
  }

  .mslp-dashboard-sidebar-toggle i {
    color: var(--mslp-accent);
  }

  .mslp-dashboard-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1002;
    width: min(300px, calc(100vw - 44px)) !important;
    min-width: 0;
    max-height: none;
    padding-top: 22px;
    border-left: 1px solid var(--mslp-line);
    transform: translateX(110%) !important;
    transition: transform .24s ease !important;
  }

  .mslp-dashboard-shell.is-sidebar-open .mslp-dashboard-sidebar {
    transform: translateX(0) !important;
  }

  .mslp-dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(10, 25, 47, .28);
    border: 0;
  }

  .mslp-dashboard-shell.is-sidebar-open .mslp-dashboard-sidebar-backdrop {
    display: block;
  }

  .mslp-dashboard-heading {
    min-height: 78px;
    padding: 15px 17px;
  }

  .mslp-dashboard-heading h1 {
    font-size: 21px;
  }

  .mslp-dashboard-body {
    padding: 16px 12px 72px;
  }

  .mslp-dashboard-shell .tutor-wishlist-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .mslp-account-shell .tutor-profile-settings-section .tutor-account-container > div > .tutor-flex {
    flex-direction: column;
    gap: 12px;
  }

  .mslp-account-shell .tutor-profile-settings-tab {
    position: static;
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 6px;
    background: var(--mslp-surface);
    border: 1px solid var(--mslp-line);
    border-radius: var(--mslp-radius);
  }

  .mslp-account-shell .tutor-profile-settings-tab button {
    min-width: max-content;
    flex: 0 0 auto;
  }

  .mslp-account-shell .tutor-profile-settings-tab-content {
    padding: 16px 12px;
  }

  .mslp-dashboard-shell .tutor-progress-card-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mslp-dashboard-shell *,
  .mslp-dashboard-shell *::before,
  .mslp-dashboard-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}