/* === 通知ベル（トップバー） === */

.topbar-notification-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  padding: 0.375rem 0.5rem;
  cursor: pointer;
  transition: color 0.15s;
}

.topbar-notification-btn:hover {
  color: var(--color-primary, #4c7cf5);
}

.topbar-notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-danger, #dc3545);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  padding: 0 0.3rem;
  text-align: center;
  border-radius: 0.55rem;
  transform: translate(30%, -30%);
}

/* === 通知パネル === */

.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 360px;
  max-width: 90vw;
  background: var(--card-bg, rgba(0, 0, 0, 0.96));
  border-left: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  z-index: 1050;
  transform: translate3d(370px, 0, 0);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notification-panel.open {
  transform: translate3d(0, 0, 0);
}

.notification-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1045;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.notification-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

.notification-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  flex-shrink: 0;
}

.notification-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-mark-all-btn {
  background: transparent;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s;
}

.notification-mark-all-btn:hover {
  color: var(--text-primary);
  border-color: var(--color-primary, #4c7cf5);
}

.notification-panel-close {
  cursor: pointer;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  font-size: 1rem;
  padding: 0.25rem;
  transition: color 0.15s;
}

.notification-panel-close:hover {
  color: var(--text-primary);
}

.notification-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.notification-empty-msg {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted, rgba(255, 255, 255, 0.4));
  font-size: 0.875rem;
  padding: 2rem 1rem;
}

.notification-empty-msg i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* === 通知アイテム === */

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
  position: relative;
  transition: background-color 0.15s;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
  background: rgba(76, 124, 245, 0.06);
}

.notification-item.unread:hover {
  background: rgba(76, 124, 245, 0.12);
}

.notification-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #4c7cf5);
  font-size: 1rem;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.notification-time {
  font-size: 0.6875rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.4));
  margin-top: 0.25rem;
}

.notification-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-danger, #dc3545);
  margin-top: 0.5rem;
}
