/**
 * Notification system styles
 */

/* Notification button indicator */
.shadcn-icon-button-notification.has-notifications::after {
  background-color: #ef4444;
}

/* Notification count badge */
.shadcn-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--background);
}

/* Mobile notification count badge */
.shadcn-mobile-notification-count {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background-color: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Notification dropdown */
.shadcn-notification-dropdown {
  position: absolute;
  z-index: 1000;
  width: 350px;
  max-width: calc(100vw - 32px);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
}

/* Notification header */
.shadcn-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.shadcn-notification-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.shadcn-notification-mark-all {
  font-size: 0.75rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.shadcn-notification-mark-all:hover {
  text-decoration: underline;
}

/* Notification list */
.shadcn-notification-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Notification item */
.shadcn-notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.shadcn-notification-item:last-child {
  border-bottom: none;
}

.shadcn-notification-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.shadcn-notification-read {
  opacity: 0.7;
}

.shadcn-notification-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.shadcn-notification-message {
  font-size: 0.8125rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.shadcn-notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.shadcn-notification-time {
  color: rgba(255, 255, 255, 0.5);
}

.shadcn-notification-mark-read {
  font-size: 0.75rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.shadcn-notification-mark-read:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

.shadcn-notification-mark-read:not(:disabled):hover {
  text-decoration: underline;
}

/* Empty state */
.shadcn-notification-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .shadcn-notification-dropdown {
    width: calc(100vw - 32px);
    left: 16px !important;
    right: 16px !important;
  }
}
