/* Alert boxes */
.alert {
  display: block;
  padding: 10px 14px;
  margin: 15px 0;
  border-radius: 6px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: none;
}

.alert i:first-child {
  display: inline-block;
  font-size: 16px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.alert strong {
  display: inline !important;
  font-weight: 600;
}

.alert a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.alert code {
  display: inline;
  padding: 0.125em 0.375em;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

/* Info — exact match of original .info-alert */
.alert-info {
  background: #eef5ff;
  border-color: #cfe0ff;
  color: #2d4b8c;
}
.alert-info i:first-child {
  color: #2d6cdf;
}

/* Success — same design, green palette */
.alert-success {
  background: #edfff3;
  border-color: #bbf0cc;
  color: #1a5c33;
}
.alert-success i:first-child {
  color: #1d9e4a;
}

/* Warning — same design, amber palette */
.alert-warning {
  background: #fff8ee;
  border-color: #fce0a8;
  color: #7a3d00;
}
.alert-warning i:first-child {
  color: #e07800;
}

/* Error / Danger — same design, red palette */
.alert-error,
.alert-danger {
  background: #fff0f0;
  border-color: #fecaca;
  color: #7c1d1d;
}
.alert-error i:first-child,
.alert-danger i:first-child {
  color: #d93025;
}

/* Dark theme */
body.theme-dark .alert code {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .alert-info {
  background: rgba(74, 144, 255, 0.1);
  border-color: rgba(74, 144, 255, 0.2);
  color: #a5c8ff;
}
body.theme-dark .alert-info i:first-child {
  color: #6aabff;
}

body.theme-dark .alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.2);
  color: #86efac;
}
body.theme-dark .alert-success i:first-child {
  color: #4ade80;
}

body.theme-dark .alert-warning {
  background: rgba(255, 152, 0, 0.1);
  border-color: rgba(255, 152, 0, 0.2);
  color: #fcd34d;
}
body.theme-dark .alert-warning i:first-child {
  color: #fbbf24;
}

body.theme-dark .alert-error,
body.theme-dark .alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  color: #fca5a5;
}
body.theme-dark .alert-error i:first-child,
body.theme-dark .alert-danger i:first-child {
  color: #f87171;
}
