/**
 * ingate Commission Platform v2: Error Pages Styles (404, offline, unreachable)
 * CSP Compliant (extracted from inline styles)
 */
.error-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: var(--bg-canvas);
  text-align: center;
  position: relative;
}

.error-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-code {
  font-size: 56px;
  font-weight: 800;
  color: var(--brand-cyan);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -1px;
}

.error-icon-svg {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-2);
  color: var(--brand-cyan);
}

.error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy-text);
  margin-bottom: var(--space-1);
}

.error-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.error-actions {
  display: flex;
  gap: var(--space-2);
  width: 100%;
  justify-content: center;
}

.lang-switcher {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

[dir="rtl"] .lang-switcher {
  right: auto;
  left: var(--space-3);
}

/* Modal or full-screen banner for offline / backend unreachable */
.network-status-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--status-bad-bg);
  border: 1px solid var(--status-bad-border);
  color: var(--status-bad-text);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  z-index: 99999;
}

.network-status-banner.offline {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309;
}
