/* ============================================================
   Vulnity Docs — Clean Theme
   ============================================================ */

:root {
  --theme-color: #7c3aed;
  --sidebar-width: 280px;
}

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  background: #111113;
  border-right: 1px solid #27272a;
  width: var(--sidebar-width) !important;
  padding: 0 !important;
}

/* Logo / App name */
.app-name {
  padding: 20px 20px 16px !important;
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  border-bottom: 1px solid #27272a;
  text-align: left !important;
}

.app-name-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: #fff !important;
}

.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
  display: block;
}

.sidebar-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sidebar-brand-name span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.sidebar-brand-name small {
  font-size: 11px;
  font-weight: 400;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Search box */
.search {
  padding: 12px 16px !important;
  border-bottom: 1px solid #27272a;
}

.search input {
  background: #1c1c1f !important;
  border: 1px solid #3f3f46 !important;
  border-radius: 8px !important;
  color: #e4e4e7 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color 0.15s !important;
}

.search input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

.search input::placeholder {
  color: #52525b !important;
}

/* Nav container */
.sidebar-nav {
  padding: 12px 12px 40px !important;
  overflow-y: auto;
}

/* Reset default margins/padding on all nav lists */
.sidebar-nav ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.sidebar-nav ul li {
  margin: 1px 0 !important;
}

/* All nav links */
.sidebar-nav ul li a {
  display: block !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #a1a1aa !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: background 0.12s, color 0.12s !important;
  border-right: none !important;
}

.sidebar-nav ul li a:hover {
  background: #1c1c1f !important;
  color: #e4e4e7 !important;
  text-decoration: none !important;
}

/* Active link */
.sidebar-nav ul li.active > a {
  background: rgba(124, 58, 237, 0.15) !important;
  color: #c4b5fd !important;
  font-weight: 500 !important;
  border-right: 2px solid #7c3aed !important;
  border-radius: 6px 0 0 6px !important;
}

/* Section headers (bold items like **SIEM**, **Instalación**) */
.sidebar-nav ul li > p {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #52525b !important;
  padding: 14px 10px 4px !important;
  margin: 0 !important;
  cursor: default;
}

/* Nested lists: indent only, no extra padding */
.sidebar-nav ul ul {
  padding-left: 14px !important;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

/* ============================================================
   CONTENT
   ============================================================ */
.content {
  left: var(--sidebar-width) !important;
  background: #fff;
}

.markdown-section {
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 48px 56px !important;
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .markdown-section { padding: 28px 24px !important; }
}

/* Headings */
.markdown-section h1 {
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  color: #09090b !important;
  letter-spacing: -0.03em;
  margin: 0 0 24px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e4e7;
}

.markdown-section h2 {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #18181b !important;
  letter-spacing: -0.02em;
  margin: 44px 0 12px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid #f4f4f5;
}

.markdown-section h3 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #27272a !important;
  margin: 32px 0 8px !important;
}

/* Links */
.markdown-section a {
  color: #7c3aed !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.markdown-section a:hover {
  border-bottom-color: #7c3aed;
}

/* Inline code */
.markdown-section code {
  background: #f4f4f5 !important;
  color: #7c3aed !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.85em !important;
  border: none !important;
}

/* Code blocks */
.markdown-section pre {
  background: #18181b !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin: 20px 0 !important;
  overflow-x: auto;
}

.markdown-section pre > code {
  background: transparent !important;
  color: #e4e4e7 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-family: 'JetBrains Mono', monospace !important;
}

/* Tables */
.markdown-section table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 20px 0 !important;
  font-size: 14px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  overflow: hidden;
}

.markdown-section th {
  background: #fafafa !important;
  color: #3f3f46 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 10px 14px !important;
  text-align: left !important;
  border-bottom: 1px solid #e4e4e7 !important;
  border-top: none !important;
}

.markdown-section td {
  padding: 10px 14px !important;
  border-top: 1px solid #f4f4f5 !important;
  border-left: none !important;
  border-right: none !important;
  color: #3f3f46;
}

.markdown-section tr {
  border-top: none !important;
}

.markdown-section tr:nth-child(2n) {
  background: transparent !important;
}

.markdown-section tr:hover td {
  background: #fafafa;
}

/* Images */
.markdown-section img {
  border-radius: 10px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  max-width: 100%;
  margin: 16px 0;
  display: block;
}

/* Blockquote */
.markdown-section blockquote {
  border-left: 3px solid #7c3aed !important;
  background: #faf5ff;
  padding: 12px 20px !important;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #4c1d95;
}

.markdown-section blockquote p {
  margin: 0 !important;
  font-weight: 400 !important;
}

/* HR */
.markdown-section hr {
  border: none !important;
  border-top: 1px solid #e4e4e7 !important;
  margin: 32px 0 !important;
}

/* ============================================================
   ADMONITIONS
   ============================================================ */
.callout {
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  border-left: 4px solid;
  font-size: 14px;
  line-height: 1.65;
}

.callout p:last-child,
.callout-body p:last-child { margin-bottom: 0; }

.callout-title {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.callout-info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.callout-note    { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.callout-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.callout-danger  { background: #fff1f2; border-color: #ef4444; color: #991b1b; }
.callout-tip     { background: #faf5ff; border-color: #7c3aed; color: #4c1d95; }
.callout-success { background: #f0fdf4; border-color: #16a34a; color: #14532d; }

.callout-info .callout-title    { color: #2563eb; }
.callout-warning .callout-title { color: #d97706; }
.callout-danger .callout-title  { color: #dc2626; }
.callout-tip .callout-title     { color: #7c3aed; }

/* ============================================================
   HOME PAGE GRID
   ============================================================ */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.home-card {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  display: block;
  text-decoration: none !important;
  border-bottom: 1px solid #e4e4e7 !important;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.12s;
  color: inherit !important;
}

.home-card:hover {
  box-shadow: 0 4px 20px rgba(124,58,237,0.1);
  border-color: #c4b5fd !important;
  transform: translateY(-2px);
}

.home-card-icon { font-size: 24px; margin-bottom: 10px; }

.home-card h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #18181b !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: none !important;
}

.home-card p {
  font-size: 13px !important;
  color: #71717a !important;
  margin: 0 !important;
  line-height: 1.5;
}

/* ============================================================
   COPY CODE BUTTON
   ============================================================ */
.docsify-copy-code-button {
  background: rgba(255,255,255,0.08) !important;
  color: #a1a1aa !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  padding: 4px 10px !important;
  top: 8px !important;
  right: 8px !important;
  font-family: inherit !important;
}

.docsify-copy-code-button:hover {
  background: rgba(255,255,255,0.16) !important;
  color: #fff !important;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search .results-panel {
  background: #18181b !important;
  border: 1px solid #3f3f46 !important;
  border-radius: 8px !important;
  margin-top: 4px !important;
}

.search .matching-post {
  border-bottom: 1px solid #27272a !important;
  padding: 10px 14px !important;
}

.search .matching-post:last-child {
  border-bottom: none !important;
}

.search .matching-post a {
  color: #e4e4e7 !important;
  font-size: 13px !important;
  font-weight: 500;
}

.search .matching-post p {
  color: #71717a !important;
  font-size: 12px !important;
  margin: 2px 0 0 !important;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
  background-color: #7c3aed !important;
}

/* ============================================================
   SIDEBAR TOGGLE (mobile)
   ============================================================ */
.sidebar-toggle {
  background: transparent !important;
  width: auto !important;
}

.sidebar-toggle span {
  background-color: #7c3aed !important;
}

body.close .content {
  left: 0 !important;
}
