/* support site shared styles — header, i18n, currency, RTL, diagrams */

/* --- Sidebar controls (language, currency, status) --- */
.sidebar-controls {
  margin-top: auto;
  padding-top: 2em;
  border-top: 1px solid #1a1a1a;
}

.sidebar-select {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  color: #666;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75em;
  padding: 0.3em 0.5ch;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

.sidebar-select:hover {
  border-color: #444;
  color: #c0c0c0;
}

.sidebar-select:focus {
  outline: none;
  border-color: #666;
}

/* Remove native dropdown arrow in all browsers */
.sidebar-select::-ms-expand { display: none; }

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4ch;
  text-decoration: none;
  color: #555;
  font-size: 0.8em;
  cursor: pointer;
  border: none;
  transition: color 0.3s;
}

.status-link:hover {
  color: #888;
  border: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  display: inline-block;
  transition: background 0.3s;
}

/* --- RTL support --- */
[dir="rtl"] .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid #1a1a1a;
}

[dir="rtl"] .content {
  margin-left: 0;
  margin-right: 240px;
}

[dir="rtl"] .sidebar-controls {
  direction: ltr;
}

[dir="rtl"] .breadcrumb {
  direction: rtl;
}

[dir="rtl"] .note {
  border-left: none;
  border-right: 2px solid #333;
}

[dir="rtl"] ul, [dir="rtl"] ol {
  margin-left: 0;
  margin-right: 1.5em;
}

[dir="rtl"] .nav-footer {
  flex-direction: row-reverse;
}

/* --- Warning notes (red) --- */
.note-warning {
  border-left: 2px solid #cc3333;
  background: rgba(204, 51, 51, 0.08);
}

.note-warning p {
  color: #e0a0a0;
}

/* --- Flow diagrams --- */
.flow-diagram {
  margin: 1.5em 0;
  padding: 1.5em;
  border: 1px solid #1a1a1a;
  overflow-x: auto;
}

.flow-diagram svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.flow-diagram svg text {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  fill: #999;
  font-size: 11px;
}

.flow-diagram svg .node-box {
  fill: #141414;
  stroke: #333;
  stroke-width: 1;
}

.flow-diagram svg .node-box-active {
  fill: #1a1a1a;
  stroke: #555;
  stroke-width: 1;
}

.flow-diagram svg .flow-arrow {
  stroke: #444;
  stroke-width: 1;
  fill: none;
  marker-end: url(#arrowhead);
}

.flow-diagram svg .flow-label {
  fill: #666;
  font-size: 9px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .support-header {
    left: 0;
    padding: 0 1em 0 3.5em;
  }

  [dir="rtl"] .support-header {
    right: 0;
    padding: 0 3.5em 0 1em;
  }

  [dir="rtl"] .content {
    margin-right: 0;
  }

  .flow-diagram {
    padding: 1em;
  }
}
