@charset "UTF-8";
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: "Vazirmatn", sans-serif;
}

:root {
  /* متغیرهای پیش‌فرض (حالت تیره) */
  --bg-dark: #050505;
  --bg-sidebar: rgba(10, 10, 10, 0.95);
  --bg-content: #0a0a0a;
  --bg-card: rgba(20, 20, 20, 0.6);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #00ffa3;
  --primary-glow: rgba(0, 255, 163, 0.4);
  --code-bg: #1a1a1a;
  --scrollbar-bg: #0a0a0a;
  --scrollbar-thumb: #333;
}

/* کلاس حالت روشن */
body.light-mode {
  --bg-dark: #f4f6f8;
  --bg-sidebar: rgba(255, 255, 255, 0.95);
  --bg-content: #ffffff;
  --bg-card: rgba(240, 240, 240, 0.8);
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --border: rgba(0, 0, 0, 0.1);
  --code-bg: #f0f0f0;
  --scrollbar-bg: #f4f6f8;
  --scrollbar-thumb: #ccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.8;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ساختار کلی */
.docs-layout {
  display: flex;
  min-height: 100vh;
}

/* سایدبار */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  overflow-y: auto;
  padding: 30px 20px;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--text-main);
}

.sidebar-header span {
  color: var(--primary);
}

.nav-group {
  margin-bottom: 30px;
}

.nav-group-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 15px;
  font-weight: 700;
}

.nav-links li {
  margin-bottom: 10px;
}

.nav-links a {
  display: block;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(0, 255, 163, 0.1);
  color: var(--primary);
}

/* محتوای اصلی */
.main-content {
  margin-right: 280px; /* عرض سایدبار */
  width: calc(100% - 280px);
  padding: 60px;
  background: var(--bg-content);
}

.container-docs {
  max-width: 900px;
  margin: 0 auto;
}

/* تایپوگرافی محتوا */
h1.doc-title {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-meta {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
  display: flex;
  gap: 20px;
}

h2 {
  font-size: 2rem;
  margin: 60px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

h3 {
  font-size: 1.5rem;
  margin: 40px 0 15px;
  color: var(--text-main);
}

p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

ul, ol {
  margin-bottom: 20px;
  padding-right: 20px;
  color: var(--text-muted);
}

li {
  margin-bottom: 10px;
}

/* کدها */
pre {
  background: var(--code-bg);
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  direction: ltr;
  text-align: left;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  color: #d63384;
}

pre code {
  color: var(--text-main);
}

/* جداول */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(0, 255, 163, 0.05);
  color: var(--primary);
  font-weight: 700;
}

td {
  color: var(--text-muted);
}

/* باکس‌های هشدار و نکته */
.alert {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border-right: 4px solid;
  background: var(--bg-card);
}

.alert-info {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.alert-warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.alert-title {
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
  color: var(--text-main);
}

/* دکمه باز کردن منو موبایل */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.active {
    transform: translateX(0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .main-content {
    margin-right: 0;
    width: 100%;
    padding: 30px 20px;
  }
  .mobile-menu-btn {
    display: block;
  }
  h1.doc-title {
    font-size: 2rem;
  }
}/*# sourceMappingURL=doc.css.map */