:root {
  --notification-primary-color: #0072bc;
  --notification-secondary-color: #fdf005;
  --notification-background-color: #f4ebb6;
  --notification-success-color: #28a745;
  --notification-error-color: #dc3545;
  --notification-warning-color: #ffc107;
  --notification-info-color: #17a2b8;
  --notification-text-color: #333;
  --notification-primary-font: "Anton", serif;
  --notification-secondary-font: "Smooch Sans", serif;
}

/* Modal Overlay */
.notification-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 114, 188, 0.15) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Modal Content */
.notification-modal-content {
  background: linear-gradient(
    145deg,
    var(--notification-background-color) 0%,
    #ffffff 100%
  );
  border-radius: 24px;
  padding: 40px 35px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 25px 80px rgba(0, 114, 188, 0.25),
    0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(253, 240, 5, 0.3);
  transform: scale(0.8) translateY(-20px);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.notification-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--notification-primary-color) 0%,
    var(--notification-secondary-color) 50%,
    var(--notification-primary-color) 100%
  );
}

/* Success variant top border */
.notification-modal-content.success::before {
  background: linear-gradient(
    90deg,
    var(--notification-success-color) 0%,
    #20c997 50%,
    var(--notification-success-color) 100%
  );
}

/* Error variant top border */
.notification-modal-content.error::before {
  background: linear-gradient(
    90deg,
    var(--notification-error-color) 0%,
    #e74c3c 50%,
    var(--notification-error-color) 100%
  );
}

/* Warning variant top border */
.notification-modal-content.warning::before {
  background: linear-gradient(
    90deg,
    var(--notification-warning-color) 0%,
    #ffb300 50%,
    var(--notification-warning-color) 100%
  );
}

/* Info variant top border */
.notification-modal-content.info::before {
  background: linear-gradient(
    90deg,
    var(--notification-info-color) 0%,
    #00bcd4 50%,
    var(--notification-info-color) 100%
  );
}

/* Modal Header */
.notification-modal-header {
  margin-bottom: 25px;
  position: relative;
}

/* Icon Container */
.notification-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.9);
  position: relative;
  animation: iconPulse 2s ease-in-out infinite;
}

/* Success Icon */
.notification-modal-icon.success {
  background: linear-gradient(
    135deg,
    var(--notification-success-color) 0%,
    #20c997 100%
  );
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4),
    0 6px 15px rgba(40, 167, 69, 0.2);
}

/* Error Icon */
.notification-modal-icon.error {
  background: linear-gradient(
    135deg,
    var(--notification-error-color) 0%,
    #b02a37 100%
  );
  box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4),
    0 6px 15px rgba(220, 53, 69, 0.2);
}

/* Warning Icon */
.notification-modal-icon.warning {
  background: linear-gradient(
    135deg,
    var(--notification-warning-color) 0%,
    #ffb300 100%
  );
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4),
    0 6px 15px rgba(255, 193, 7, 0.2);
}

/* Info Icon */
.notification-modal-icon.info {
  background: linear-gradient(
    135deg,
    var(--notification-info-color) 0%,
    #00bcd4 100%
  );
  box-shadow: 0 12px 30px rgba(23, 162, 184, 0.4),
    0 6px 15px rgba(23, 162, 184, 0.2);
}

.notification-modal-icon i {
  color: white;
  font-size: 28px;
}

/* Modal Title */
.notification-modal-title {
  font-family: var(--primary-font-family, "Anton", serif);
  font-size: 24px;
  color: #333;
  margin: 0 0 8px 0;
  font-weight: 600;
}

/* Modal Message */
.notification-modal-message {
  font-family: var(--secondary-font-family, "Smooch Sans", serif);
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}

/* Buttons Container */
.notification-modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  justify-content: center;
  flex-wrap: wrap;
}

/* OK Button */
.notification-btn-ok {
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 120px;
  font-family: var(--notification-secondary-font);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Success Button */
.notification-btn-ok.success {
  background: linear-gradient(
    135deg,
    var(--notification-success-color) 0%,
    #20c997 100%
  );
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4),
    0 3px 8px rgba(40, 167, 69, 0.2);
}

.notification-btn-ok.success:hover {
  background: linear-gradient(135deg, #20c997 0%, #17a085 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.5),
    0 5px 12px rgba(40, 167, 69, 0.3);
}

/* Error Button */
.notification-btn-ok.error {
  background: linear-gradient(
    135deg,
    var(--notification-error-color) 0%,
    #b02a37 100%
  );
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4),
    0 3px 8px rgba(220, 53, 69, 0.2);
}

.notification-btn-ok.error:hover {
  background: linear-gradient(135deg, #b02a37 0%, #8c1f2a 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.5),
    0 5px 12px rgba(220, 53, 69, 0.3);
}

/* Warning Button */
.notification-btn-ok.warning {
  background: linear-gradient(
    135deg,
    var(--notification-warning-color) 0%,
    #ffb300 100%
  );
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4),
    0 3px 8px rgba(255, 193, 7, 0.2);
  color: #333;
}

.notification-btn-ok.warning:hover {
  background: linear-gradient(135deg, #ffb300 0%, #ff9800 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.5),
    0 5px 12px rgba(255, 193, 7, 0.3);
}

/* Info Button */
.notification-btn-ok.info {
  background: linear-gradient(
    135deg,
    var(--notification-info-color) 0%,
    #00bcd4 100%
  );
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4),
    0 3px 8px rgba(23, 162, 184, 0.2);
}

.notification-btn-ok.info:hover {
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(23, 162, 184, 0.5),
    0 5px 12px rgba(23, 162, 184, 0.3);
}

/* Button Ripple Effect */
.notification-btn-ok::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.notification-btn-ok:active::before {
  width: 300px;
  height: 300px;
}

/* Close Button */
.notification-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 20px;
  color: #666;
}

.notification-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg) scale(1.1);
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Auto-close progress bar */
.notification-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.notification-progress-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: progressAnimation linear forwards;
}

.notification-progress-fill.success {
  background: var(--notification-success-color);
}

.notification-progress-fill.error {
  background: var(--notification-error-color);
}

.notification-progress-fill.warning {
  background: var(--notification-warning-color);
}

.notification-progress-fill.info {
  background: var(--notification-info-color);
}

@keyframes progressAnimation {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .notification-modal-content {
    padding: 35px 25px;
    max-width: 90%;
    margin: 0 20px;
  }

  .notification-modal-icon {
    width: 70px;
    height: 70px;
  }

  .notification-modal-icon i {
    font-size: 24px;
  }

  .notification-modal-title {
    font-size: 22px;
  }

  .notification-modal-message {
    font-size: 15px;
  }

  .notification-btn-ok {
    padding: 12px 24px;
    font-size: 15px;
    min-width: 100px;
  }

  .notification-modal-close {
    width: 32px;
    height: 32px;
    top: 15px;
    right: 15px;
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .notification-modal-content {
    padding: 30px 20px;
  }

  .notification-modal-icon {
    width: 60px;
    height: 60px;
  }

  .notification-modal-icon i {
    font-size: 20px;
  }

  .notification-modal-title {
    font-size: 20px;
  }

  .notification-modal-message {
    font-size: 14px;
  }

  .notification-btn-ok {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 90px;
  }
}
