/* =========================
   Layout
========================= */
.nova-thw {
  display: flex;
  align-items: center;
  gap: var(--nova-gap, 10px);
  direction: rtl;
}

.nova-thw-item {
  position: relative;
}

/* =========================
   Buttons (Avatar / Bell)
========================= */
button .nova-thw-btn {
  cursor: pointer !important;
  border: 0;
  background: transparent !important;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button .nova-thw-btn.nova-thw-avatar-btn{
    background: transparent !important;
}

.nova-thw-avatar-btn img {
  border-radius: 999px;
  display: block;
}
.nova-thw .tutor-avatar-xl {
    width: 45px;
    height: 45px;
}


.nova-thw-bell-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f4f6;
}

.nova-thw-bell {
  font-size: 18px;
  line-height: 1;
}

/* Badge */
.nova-thw-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
  border: 2px solid #fff;
}

/* =========================
   Dropdown (Panel)
========================= */
.nova-thw-panel {
  position: absolute;
  top: 54px;
  inset-inline-end: 0;
  width: 360px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.nova-thw-item.is-open .nova-thw-panel {
  display: block;
}

.nova-thw-profile-panel {
  width: 320px;
}

/* =========================
   Profile Dropdown
========================= */
.nova-thw-profile-head {
  padding: 16px;
  text-align: center;
}

.nova-thw-profile-name {
  font-weight: 800;
  font-size: 20px;
  color: #111827;
}

.nova-thw-profile-email {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
}

.nova-thw-links {
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nova-thw-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
}

.nova-thw-link:hover {
  background: #f9fafb;
}

.nova-thw-link-ico {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

/* =========================
   Notifications Dropdown
========================= */
.nova-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nova-notif-title-strong {
  font-size: 18px;
  color: #111827;
}

.nova-notif-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nova-notif-actions a {
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
}

.nova-notif-actions a:hover {
  background: #e5e7eb;
}

/* list */
.nova-thw-notifs-body {
  max-height: 360px;
  overflow: auto;
}

.nova-thw-empty {
  padding: 24px;
  text-align: center;
  color: #6b7280;
}

.nova-thw-notif {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nova-thw-notif:hover {
  background: #f9fafb;
}

.nova-thw-notif.is-read {
  opacity: 0.65;
}

.nova-thw-notif-title {
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.nova-thw-notif-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.nova-thw-notif-msg {
  font-size: 13px;
  line-height: 1.55;
  color: #111827;
}

/* See all */
.nova-thw-seeall {
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  color: #2563eb;
  font-weight: 800;
  background: #fff;
}

.nova-thw-seeall:hover {
  background: #f9fafb;
}

/* =========================
   Guest Only
========================= */
.nova-thw-guest-only {
  display: flex;
  align-items: center;
}

.nova-thw-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.nova-thw-login-btn:hover {
  filter: brightness(0.98);
}

/* =========================
   Mobile (Bottom Sheet)
========================= */
@media (max-width: 576px) {
  .nova-thw-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto !important;
    max-width: none !important;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  }

  .nova-thw-notifs-body {
    max-height: 52vh;
  }
  .nova-thw-seeall {
    padding: 16px;
  }

  .nova-thw-bell-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}
