/**
 * AirPets Notification System Styles
 * 
 * @package    Airpets_Crm
 * @subpackage Airpets_Crm/public/css
 * @since      3.2.0
 */

/* Base Alert Styles */
p.alert {
  background: #f9f9f9;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  border: 1px solid #dadada;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem auto;
  max-width: 90%;
  position: relative;
}

/* Dismissable alerts */
p.alert.dismissable,
p.alert.temp {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  border: none;
  text-align: center;
  width: max-content;
  margin-right: auto;
  margin-left: auto;
}

/* Alert icon */
p.alert .alert-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* Message text */
p.alert .message {
  flex: 1;
}

/* Dismiss button */
p.alert .dismiss {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  font-size: 1rem;
}

p.alert .dismiss:hover {
  opacity: 1;
  color: var(--wp--preset--color--red, #d63638);
}

/* Type Variants */

/* Success */
p.alert.alert-success {
  background: #d7f5e3;
  border-color: #00a32a;
  color: #006618;
}

p.alert.alert-success .alert-icon {
  color: #00a32a;
}

/* Error */
p.alert.alert-error {
  background: #fce8e8;
  border-color: #d63638;
  color: #8a1f1f;
}

p.alert.alert-error .alert-icon {
  color: #d63638;
}

/* Warning */
p.alert.alert-warning {
  background: #fff8e5;
  border-color: #f0b849;
  color: #8a6116;
}

p.alert.alert-warning .alert-icon {
  color: #f0b849;
}

/* Info */
p.alert.alert-info {
  background: #e5f5fa;
  border-color: #2271b1;
  color: #135e96;
}

p.alert.alert-info .alert-icon {
  color: #2271b1;
}

/* Working/Loading */
p.alert.alert-working {
  background: #f0f0f1;
  border-color: #8c8f94;
  color: #50575e;
}

p.alert.alert-working .alert-icon {
  color: #2271b1;
}

/* Position Variants */
p.alert.alert-left {
  margin-left: 0;
  margin-right: auto;
}

p.alert.alert-right {
  margin-left: auto;
  margin-right: 0;
}

/* Animation */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

p.alert {
  animation: slideInDown 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  p.alert {
    max-width: 95%;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  p.alert .alert-icon {
    font-size: 0.9rem;
  }
  
  p.alert .dismiss {
    font-size: 0.9rem;
    margin-left: 0.5rem;
  }
}
