/* ═══════════════════════════════════════════════════
   Error Page — Pane Layout
   ═══════════════════════════════════════════════════ */

/* Page container */
.error-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

/* ── Pane container ── */
.error-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--bg-surface);
  border-radius: 12px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* ── Pane header ── */
.error-pane-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.error-pane-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.error-status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--status-inactive-bg);
  color: var(--status-inactive-color);
  letter-spacing: 0.02em;
}

/* ── Pane body ── */
.error-pane-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
  text-align: center;
  overflow-y: auto;
}

/* Illustration */
.error-illustration {
  margin-bottom: 8px;
}

/* Heading */
.error-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Message */
.error-message {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 420px;
}

.error-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
}

/* Actions */
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  line-height: 1;
}

.btn-primary {
  background: #3498db;
  color: #fff;
}

.btn-primary:hover {
  background: #2980b9;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.btn-secondary {
  background: var(--nav-hover-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--nav-active-bg);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .error-pane {
    border-radius: 10px;
  }

  .error-pane-header {
    padding: 16px 16px 12px;
  }

  .error-pane-title {
    font-size: 18px;
  }

  .error-pane-body {
    padding: 32px 16px;
    gap: 14px;
  }

  .error-heading {
    font-size: 20px;
  }

  .error-message {
    font-size: 14px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .error-pane {
    border-radius: 8px;
  }

  .error-pane-header {
    padding: 12px 12px 10px;
  }

  .error-pane-title {
    font-size: 16px;
  }

  .error-pane-body {
    padding: 24px 12px;
    gap: 12px;
  }

  .error-illustration svg {
    width: 96px;
    height: 96px;
  }

  .error-heading {
    font-size: 18px;
  }

  .error-message {
    font-size: 13px;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}
