/* Notification System Styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 350px;
  width: 100%;
}

.notification {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  overflow: hidden;
  animation: slideIn 0.3s ease-out forwards;
  border-left: 4px solid #3182ce;
}

.notification.high-priority {
  border-left-color: #e53e3e;
}

.notification.medium-priority {
  border-left-color: #d69e2e;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f7fafc;
  border-bottom: 1px solid #edf2f7;
}

.notification-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #2d3748;
}

.notification-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #a0aec0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-body {
  padding: 15px;
}

.notification-content {
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 10px;
}

.notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #718096;
}

.notification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.notification-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}

.notification-btn-primary {
  background-color: #3182ce;
  color: white;
  border: none;
}

.notification-btn-secondary {
  background-color: white;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.notification-settings-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: white;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  transition: right 0.3s ease-out;
  overflow-y: auto;
}

.notification-settings-panel.open {
  right: 0;
}

.notification-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.notification-settings-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #2d3748;
}

.notification-settings-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #a0aec0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-settings-body {
  padding: 20px;
}

.notification-settings-section {
  margin-bottom: 24px;
}

.notification-settings-section-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #2d3748;
  margin-bottom: 12px;
}

.notification-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notification-toggle-label {
  font-size: 0.875rem;
  color: #4a5568;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #3182ce;
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e53e3e;
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification.closing {
  animation: slideOut 0.3s ease-in forwards;
}
