@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
/* 
 * Notification Styles - Единые стили уведомлений для всего приложения
 * Улучшенный дизайн с соответствием общему стилю сайта
 */
.notifications {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(28, 32, 36, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(233, 235, 238, 0.3);
  border-left: 6px solid;
  pointer-events: auto;
  position: relative;
  max-width: 100%;
  word-wrap: break-word;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1c2024;
  min-height: 80px;
  overflow: hidden;
  animation: notificationslideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-wrap: wrap;
}
.notification.error {
  border-left-color: #f44336;
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
  animation: notificationSlideInPulse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.notification.error .notification-icon {
  color: #f44336;
}
.notification.error::before {
  background: linear-gradient(90deg, transparent 0%, rgba(244, 67, 54, 0.6) 50%, transparent 100%);
}
.notification.success {
  border-left-color: #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.notification.success .notification-icon {
  color: #4CAF50;
}
.notification.success::before {
  background: linear-gradient(90deg, transparent 0%, rgba(76, 175, 80, 0.6) 50%, transparent 100%);
}
.notification.warning {
  border-left-color: #ff9800;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
  animation: notificationSlideInPulse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.notification.warning .notification-icon {
  color: #ff9800;
}
.notification.warning::before {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 152, 0, 0.6) 50%, transparent 100%);
}
.notification.info {
  border-left-color: #e9ebee;
  background: linear-gradient(135deg, rgba(233, 235, 238, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}
.notification.info .notification-icon {
  color: #e9ebee;
}
.notification.info::before {
  background: linear-gradient(90deg, transparent 0%, rgba(233, 235, 238, 0.6) 50%, transparent 100%);
}

.notification-icon {
  flex-shrink: 0;
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.notification-content {
  flex: 1;
  min-width: 0;
  padding-right: 1.25rem;
}

.notification-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
  color: #1c2024;
  line-height: 1.3;
}

.notification-message {
  font-size: 16px;
  color: #1c2024;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0.9;
}

/* Эффект блеска внизу уведомления */
.notification::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(233, 235, 238, 0.8) 50%, transparent 100%);
  animation: shimmer 2.5s infinite;
}

/* Анимации */
@keyframes notificationSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
    scale: 0.9;
  }
  to {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
}
@keyframes notificationSlideInPulse {
  0% {
    transform: translateX(100%);
    opacity: 0;
    scale: 0.9;
  }
  70% {
    transform: translateX(0);
    opacity: 1;
    scale: 1.02;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
}
@keyframes notificationSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
    scale: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
    scale: 0.9;
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.3;
  }
}
/* Адаптивный дизайн */
@media (max-width: 768px) {
  .notifications {
    top: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
  .notification {
    padding: 20px 24px;
    font-size: 15px;
    min-height: 70px;
  }
  .notification-icon {
    font-size: 22px;
  }
  .notification-title {
    font-size: 16px;
  }
  .notification-message {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .notifications {
    top: 15px;
    right: 15px;
    left: 15px;
  }
  .notification {
    padding: 18px 20px;
    min-height: 65px;
  }
  .notification-icon {
    font-size: 20px;
  }
  .notification-title {
    font-size: 15px;
  }
  .notification-message {
    font-size: 14px;
  }
}
/* Дополнительные классы для удобства */
.notification.hide {
  animation: notificationSlideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Утилитарные классы для быстрого создания уведомлений */
.notification.compact {
  padding: 16px 20px;
  min-height: 60px;
}

.notification.large {
  padding: 28px 32px;
  min-height: 90px;
}
.notification.large .notification-title {
  font-size: 20px;
}
.notification.large .notification-message {
  font-size: 17px;
}
.notification.large .notification-icon {
  font-size: 26px;
}

/* -----------------------------------------------------------------------------
 * Reporting a problem
 * -----------------------------------------------------------------------------
 * The button used to be a string of inline styles inside a template literal,
 * with its hover state written as onmouseover handlers. It lives here now, in
 * the same tokens as the rest of the site, and the form it opens replaces the
 * browser prompt() that used to ask for an email over the top of the page.
 */
.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #868e96;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms cubic-bezier(0.2, 0, 0.2, 1), color 140ms cubic-bezier(0.2, 0, 0.2, 1);
}
.notification-close:hover {
  background: rgba(28, 32, 36, 0.08);
  color: #0f1216;
}
.notification-close:focus-visible {
  outline: 2px solid #0f83b4;
  outline-offset: 2px;
}

.notification-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #ffffff;
  color: #495057;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms cubic-bezier(0.2, 0, 0.2, 1), color 140ms cubic-bezier(0.2, 0, 0.2, 1);
}
.notification-report-btn::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #f44336;
}
.notification-report-btn:hover:not(:disabled) {
  border-color: #2f9fcd;
  color: #0a5876;
}
.notification-report-btn:focus-visible {
  outline: 2px solid #0f83b4;
  outline-offset: 2px;
}
.notification-report-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.notification-report-form {
  flex-basis: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.notification-report-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #6b737c;
}

.notification-report-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.notification-report-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  color: #0f1216;
}
.notification-report-input::placeholder {
  color: #adb5bd;
}
.notification-report-input:focus {
  outline: none;
  border-color: #0f83b4;
  box-shadow: 0 0 0 3px rgba(15, 131, 180, 0.28);
}

.notification-report-send {
  flex: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #0a6b95;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms cubic-bezier(0.2, 0, 0.2, 1);
}
.notification-report-send:hover:not(:disabled) {
  background: #0a5876;
}
.notification-report-send:focus-visible {
  outline: 2px solid #0f83b4;
  outline-offset: 2px;
}
.notification-report-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.notification-report-state {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #6b737c;
}
.notification-report-state:empty {
  display: none;
}
.notification-report-state.is-good {
  color: #0b5c42;
}
.notification-report-state.is-bad {
  color: #9c2a20;
}

/* A way out of a notification that cannot fix itself - offered when a report
 * could not be delivered, so the reader is not left holding a problem with
 * nobody to tell. */
.notification-action {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a6b95;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notification-action:hover {
  color: #0a5876;
}
.notification-action:focus-visible {
  outline: 2px solid #0f83b4;
  outline-offset: 2px;
}
