/* 现代化通知系统 */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10010;
  max-width: 400px;
  width: 100%;
}

.notification {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(102, 126, 234, 0.3);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

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

.notification.success {
  border-color: rgba(40, 167, 69, 0.5);
  box-shadow: 0 20px 40px rgba(40, 167, 69, 0.1), 0 0 0 1px rgba(40, 167, 69, 0.1);
}

.notification.error {
  border-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 20px 40px rgba(220, 53, 69, 0.1), 0 0 0 1px rgba(220, 53, 69, 0.1);
}

.notification.warning {
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 20px 40px rgba(255, 193, 7, 0.1), 0 0 0 1px rgba(255, 193, 7, 0.1);
}

.notification.info {
  border-color: rgba(23, 162, 184, 0.5);
  box-shadow: 0 20px 40px rgba(23, 162, 184, 0.1), 0 0 0 1px rgba(23, 162, 184, 0.1);
}

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

.notification-icon {
  font-size: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
}

.notification.success .notification-icon {
  background: rgba(40, 167, 69, 0.1);
}

.notification.error .notification-icon {
  background: rgba(220, 53, 69, 0.1);
}

.notification.warning .notification-icon {
  background: rgba(255, 193, 7, 0.1);
}

.notification-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #666;
}

.notification-message {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 0 0 14px 14px;
  transition: width linear;
  right: 0;
}

.notification.success .notification-progress {
  background: linear-gradient(90deg, #11998e, #38ef7d);
}

.notification.error .notification-progress {
  background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.notification.warning .notification-progress {
  background: linear-gradient(90deg, #f093fb, #f5576c);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
