/* Bildirim offcanvas — site teması ile uyumlu */
.notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.notif-overlay.open {
  opacity: 1;
  visibility: visible;
}

.notif-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483003;
  width: min(100%, 480px);
  display: flex;
  flex-direction: column;
  background: #0b0b0f;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.notif-offcanvas.open {
  transform: translateX(0);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

.notif-offcanvas .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.notif-offcanvas .offcanvas-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text, #f0f0f8);
  letter-spacing: -0.02em;
}

.notif-close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 16px;
}

.notif-offcanvas .offcanvas-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.notif-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.msg-toolbar {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.msg-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.msg-actions-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.msg-action-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2, #a78bfa);
  cursor: pointer;
  font-family: inherit;
}

.msg-action-link:hover {
  color: var(--accent, #8b5cf6);
}

.msg-action-danger {
  color: #f87171;
}

.msg-toolbar-search {
  position: relative;
  min-height: 48px;
  padding: 8px 14px;
}

.msg-toolbar-search i {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.msg-toolbar-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #f0f0f8);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.msg-toolbar-search input:focus {
  border-color: rgba(var(--te-accent-rgb, 139, 92, 246), 0.4);
}

.ptr-scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notif-ptr-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  padding: 8px;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notif-item-unread {
  background: rgba(var(--te-accent-rgb, 139, 92, 246), 0.06);
  border-left: 3px solid var(--orange, #f59e0b);
}

.notif-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #f0f0f8);
  line-height: 1.3;
}

.notif-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-item-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.notif-item-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--orange, #f59e0b);
  text-transform: uppercase;
}

.notif-item.info .notif-item-title {
  color: var(--text, #f0f0f8);
}

.notif-empty,
.notif-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  text-align: center;
}

.notif-empty i {
  font-size: 36px;
  opacity: 0.2;
}

.notif-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(139, 92, 246, 0.15);
  border-top-color: var(--accent, #8b5cf6);
  border-radius: 50%;
  animation: notifSpin 0.85s linear infinite;
}

@keyframes notifSpin {
  to { transform: rotate(360deg); }
}

.notif-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.notif-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 0;
}

.notif-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 24px;
}

.notif-detail-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text, #f0f0f8);
  margin: 0 0 8px;
  line-height: 1.35;
}

.notif-detail-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}

.notif-detail-msg {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 18px;
}

.notif-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  background: var(--orange, #f59e0b);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.notif-detail-action.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #f0f0f8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.notif-open {
  overflow: hidden;
}
