/**
 * ZC Store Notification System Styles
 */

/* Notification Container */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 350px;
  max-width: 90%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Base Notification Styles */
.notification {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid #ccc;
}

/* Notification Types */
.notification-info {
  border-left-color: var(--bs-info, #0dcaf0);
}

.notification-success {
  border-left-color: var(--bs-success, #198754);
}

.notification-warning {
  border-left-color: var(--bs-warning, #ffc107);
}

.notification-error {
  border-left-color: var(--bs-danger, #dc3545);
}

/* Notification Header */
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.notification-close:hover {
  opacity: 1;
}

/* Notification Body */
.notification-body {
  padding: 15px;
}

.notification-message {
  margin: 0;
  line-height: 1.5;
}

/* Notification Footer */
.notification-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Toast Container */
.toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  width: 100%;
}

.toast-top-right {
  top: 20px;
  right: 20px;
}

.toast-top-left {
  top: 20px;
  left: 20px;
}

.toast-bottom-right {
  bottom: 20px;
  right: 20px;
}

.toast-bottom-left {
  bottom: 20px;
  left: 20px;
}

/* Toast Styles */
.toast {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 100%;
  transition: all 0.3s ease;
  border-left: 4px solid #ccc;
}

/* Toast Types */
.toast-info {
  border-left-color: var(--bs-info, #0dcaf0);
}

.toast-success {
  border-left-color: var(--bs-success, #198754);
}

.toast-warning {
  border-left-color: var(--bs-warning, #ffc107);
}

.toast-error {
  border-left-color: var(--bs-danger, #dc3545);
}

/* Toast Header */
.toast-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.03);
}

.toast-title {
  margin: 0;
  font-size: 0.9rem;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast Body */
.toast-body {
  padding: 10px 15px;
  font-size: 0.875rem;
}

/* Toast Progress Bar */
.toast-progress-container {
  height: 4px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: width linear;
  transition-duration: inherit;
}

/* Animation Classes */
.notification-slide-in {
  animation: slideInRight 0.3s forwards;
}

.notification-slide-out {
  animation: slideOutRight 0.3s forwards;
}

.toast-slide-in {
  animation: fadeIn 0.3s forwards;
}

.toast-slide-out {
  animation: fadeOut 0.3s forwards;
}

/* Keyframes */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  #notification-container,
  .toast-container {
    width: calc(100% - 30px);
    max-width: 100%;
  }

  .toast-top-right,
  .toast-bottom-right {
    right: 15px;
  }

  .toast-top-left,
  .toast-bottom-left {
    left: 15px;
  }

  #notification-container {
    top: 15px;
    right: 15px;
  }
}
