/* Documentation Page Styles - Shared between Admin and User GUIs */

body.docs-page {
  overflow: hidden;
  height: 100%;
}

body.docs-page .app-content {
  overflow: hidden;
}

.docs-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.docs-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Docs Layout - Sidebar + Content */
.docs-wrapper {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.docs-sidebar {
  width: 220px;
  min-width: 220px;
  padding: 20px;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.8);
  border-right: 1px solid rgba(56, 189, 248, 0.18);
}

.docs-sidebar h4 {
  color: #7dd3fc;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.docs-sidebar a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 4px;
  margin-bottom: 2px;
  transition: all 0.2s;
}

.docs-sidebar a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.docs-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 40px;
}

/* Docs Section */
.docs-section {
  background: linear-gradient(180deg, rgba(24, 32, 48, 0.8) 0%, rgba(12, 18, 28, 0.9) 100%);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.docs-section h2 {
  color: #7dd3fc;
  margin-bottom: 16px;
  font-size: 24px;
  border-bottom: 2px solid rgba(125, 211, 252, 0.2);
  padding-bottom: 8px;
}

.docs-section h3 {
  color: #e2e8f0;
  margin: 20px 0 12px 0;
  font-size: 18px;
}

.docs-section h4 {
  color: #94a3b8;
  margin: 16px 0 8px 0;
  font-size: 16px;
}

.docs-section p,
.docs-section li {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 12px;
}

.docs-section ul,
.docs-section ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.docs-section code {
  background: rgba(14, 116, 144, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #7dd3fc;
}

.docs-section pre {
  background: #0b1220;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.docs-section pre code {
  background: transparent;
  padding: 0;
  color: #e2e8f0;
}

/* Tables */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.docs-table th,
.docs-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.docs-table thead th {
  background: rgba(14, 116, 144, 0.2);
  color: #7dd3fc;
  font-weight: 600;
  border-color: rgba(56, 189, 248, 0.2);
}

/* Highlight Boxes */
.highlight-box {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.2), rgba(56, 189, 248, 0.12));
  border-left: 4px solid #7dd3fc;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.highlight-box.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border-left-color: #f59e0b;
}

.highlight-box.success {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border-left-color: #f59e0b;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.feature-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.feature-card h4 {
  color: #e2e8f0;
  margin-top: 0;
}

/* Protocol Titles */
.protocol-title {
  margin-top: 0;
}

.protocol-title.protocol-http {
  color: #f59e0b;
}

.protocol-title.protocol-https {
  color: #06b6d4;
}

.protocol-title.protocol-ssh {
  color: #8b5cf6;
}

.protocol-title.protocol-tcp {
  color: #f59e0b;
}

.protocol-title.protocol-udp {
  color: #ef4444;
}

/* Compact list spacing */
.docs-list-compact {
  margin: 10px 0 0 20px;
  padding-left: 20px;
}

/* Step Numbers */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  margin-right: 12px;
  flex-shrink: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
}

.donate-panel {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 800px) {
  .docs-wrapper {
    flex-direction: column;
    height: auto;
  }
  .docs-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(139, 156, 255, 0.1);
  }
  .docs-content {
    padding: 20px;
  }
}
