/**
 * ShopsyPro - Message/alert styles (success, error, warning, info)
 * Matches app dark theme: same panel background, accent only on border + icon.
 */

/* ---- Message boxes: dark panel + left accent, no neon ---- */
.msg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left-width: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #e5e5e5;
}
.msg-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  opacity: 0.9;
}
.msg-body {
  flex: 1;
  min-width: 0;
}

/* Accent = left border + icon only; panel stays neutral */
.msg-success {
  border-left-color: #22c55e;
}
.msg-success .msg-icon { color: #22c55e; }

.msg-error {
  border-left-color: #ef4444;
}
.msg-error .msg-icon { color: #ef4444; }

.msg-warning {
  border-left-color: #eab308;
}
.msg-warning .msg-icon { color: #eab308; }

.msg-info {
  border-left-color: #4A9EFF;
}
.msg-info .msg-icon { color: #4A9EFF; }

/* Inline error: subtle, no bright color block */
.inline-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a8a29e;
}
.inline-error::before {
  content: "";
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.inline-error.inline-success { color: #78716c; }
.inline-error.inline-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

/* Legacy flash: same panel + left accent design */
.flash-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid #22c55e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #e5e5e5;
}
.flash-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid #ef4444;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #e5e5e5;
}
.flash-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid #eab308;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #e5e5e5;
}
.flash-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid #4A9EFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: #e5e5e5;
}
