/* ==================================================
   Alert & Info Box Components - Consolidated Styles
   Single source of truth for all alert patterns
   ================================================== */

/* Alert Base */
.alert {
  @apply p-4 rounded-md;
}

/* Alert Variants (Tailwind-compatible) */
.alert-info {
  @apply bg-blue-50 text-blue-700 border border-blue-200;
}

.alert-success {
  @apply bg-green-50 text-green-700 border border-green-200;
}

.alert-warning {
  @apply bg-yellow-50 text-yellow-700 border border-yellow-200;
}

.alert-error {
  @apply bg-red-50 text-red-700 border border-red-200;
}

.alert-dismissible {
  @apply relative pr-12;
}

/* Info Box Component (App Branding Style) */
.info-box {
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.info-box.info {
  background: var(--app-info-bg);
  border: 1px solid var(--app-info-border);
}

.info-box.warning {
  background: var(--app-warning-bg);
  border: 1px solid var(--app-warning-border);
}

.info-box.error {
  background: var(--app-error-bg);
  border: 1px solid var(--app-error-border);
}

.info-box.success {
  background: var(--app-success-bg);
  border: 1px solid var(--app-success-border);
}

.info-box i {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
}

.info-box.info i {
  color: var(--app-info-text);
}

.info-box.warning i {
  color: var(--app-warning-text);
}

.info-box.error i {
  color: var(--app-error-text);
}

.info-box.success i {
  color: var(--app-success-text);
}

.info-box-content {
  flex: 1;
}

.info-box-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.info-box.info .info-box-title {
  color: var(--app-info-text);
}

.info-box.warning .info-box-title {
  color: var(--app-warning-text);
}

.info-box.error .info-box-title {
  color: var(--app-error-text);
}

.info-box.success .info-box-title {
  color: var(--app-success-text);
}

.info-box-description {
  font-size: 13px;
  line-height: 1.6;
}

.info-box.info .info-box-description {
  color: var(--app-text-secondary);
}

.info-box.warning .info-box-description {
  color: var(--app-text-secondary);
}

.info-box.error .info-box-description {
  color: var(--app-text-secondary);
}

.info-box.success .info-box-description {
  color: var(--app-text-secondary);
}

/* Toast Notifications */
.toast {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  max-width: 24rem !important;
  background: var(--app-text-primary) !important;
  border-radius: 0.5rem !important;
  pointer-events: auto !important;
  border: 2px solid var(--app-text-primary) !important;
  box-shadow: 0 0 30px rgba(194, 231, 255, 0.6), 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
  color: var(--app-bg-primary) !important;
}

.toast-success {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  max-width: 24rem !important;
  background: var(--app-text-primary) !important;
  border-radius: 0.5rem !important;
  pointer-events: auto !important;
  border: 2px solid var(--app-text-primary) !important;
  border-left: 4px solid var(--app-success-text) !important;
  box-shadow: 0 0 30px rgba(194, 231, 255, 0.6), 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
  color: var(--app-bg-primary) !important;
}

.toast-warning {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  max-width: 24rem !important;
  background: var(--app-text-primary) !important;
  border-radius: 0.5rem !important;
  pointer-events: auto !important;
  border: 2px solid var(--app-text-primary) !important;
  border-left: 4px solid var(--app-warning-text) !important;
  box-shadow: 0 0 30px rgba(194, 231, 255, 0.6), 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
  color: var(--app-bg-primary) !important;
}

.toast-error {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  max-width: 24rem !important;
  background: var(--app-text-primary) !important;
  border-radius: 0.5rem !important;
  pointer-events: auto !important;
  border: 2px solid var(--app-text-primary) !important;
  border-left: 4px solid var(--app-danger-text) !important;
  box-shadow: 0 0 30px rgba(194, 231, 255, 0.6), 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
  color: var(--app-bg-primary) !important;
}

/* Bulk Actions Bar (Connection-specific Alert Style) */
#bulk-actions-bar {
  background: rgba(74, 159, 216, 0.1);
  border: 1px solid rgba(74, 159, 216, 0.3);
  border-radius: var(--radius-md);
}

#bulk-actions-bar .bulk-action-label {
  color: var(--app-text-primary);
  font-size: 14px;
  font-weight: 500;
}

/* Error Icon with Red Accent */
.error-icon-red {
  color: var(--app-accent-red);
  margin-top: 0.125rem;
}