/* LPS Documentation Shared Stylesheet */

:root {
    --primary: #50d199;
    --primary-dark: #3bb47d;
    --secondary: #2d3748;
    --dark: #0a0f1c;
    --darker: #071015;
    --light: #e2e8f0;
    --gray: #a0aec0;
    --dark-gray: #4a5568;
    --card-bg: #1a202c;
    --success: #50d199;
    --warning: #f59e0b;
    --danger: #ef4444;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--light);
    background-color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--darker);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.cta-button {
    background-color: var(--primary);
    color: var(--darker);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--primary-dark);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
}

/* Docs Header */
.docs-header {
    background-color: var(--darker);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.docs-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.docs-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.docs-header .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.docs-header .logo-subtext {
    font-size: 0.9rem;
    color: var(--gray);
}

.docs-header .mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.docs-header .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light);
    transition: all 0.3s;
}

/* Docs Container Layout */
.docs-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Docs Sidebar */
.docs-sidebar {
    width: var(--sidebar-width);
    background-color: var(--darker);
    border-right: 1px solid var(--dark-gray);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    flex-shrink: 0;
}

.docs-sidebar .sidebar-nav {
    padding: 1.5rem 0;
}

.docs-sidebar .nav-section {
    margin-bottom: 1.5rem;
}

.docs-sidebar .nav-section h3 {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.docs-sidebar .nav-section a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.docs-sidebar .nav-section a:hover {
    background-color: rgba(80, 209, 153, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.docs-sidebar .nav-section a.active {
    background-color: rgba(80, 209, 153, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* Docs Main Content */
.docs-main {
    flex: 1;
    padding: 2rem 3rem;
    max-width: calc(100% - var(--sidebar-width));
    overflow-x: hidden;
}

.docs-main .docs-content {
    max-width: 900px;
}

/* Content Typography - Enhanced for Readability */
.docs-content h1 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    font-weight: 700;
}

.docs-content h2 {
    font-size: 1.65rem;
    color: var(--primary);
    margin: 3.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--dark-gray);
    font-weight: 600;
}

.docs-content h3 {
    font-size: 1.35rem;
    color: var(--light);
    margin: 2.5rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.docs-content h4 {
    font-size: 1.15rem;
    color: var(--light);
    margin: 2rem 0 0.75rem;
    font-weight: 600;
}

.docs-content p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.85;
    font-size: 1rem;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-left: 0;
    color: var(--gray);
    list-style: none;
}

.docs-content li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    padding-left: 1.75rem;
    position: relative;
}

.docs-content ul > li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 0.5rem;
    top: 0.65rem;
}

.docs-content ol {
    counter-reset: docs-item;
}

.docs-content ol > li {
    counter-increment: docs-item;
    padding-left: 2.5rem;
}

.docs-content ol > li::before {
    content: counter(docs-item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--darker);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-content a {
    color: var(--primary);
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

.docs-content strong {
    color: var(--light);
}

.docs-content hr {
    border: none;
    border-top: 1px solid var(--dark-gray);
    margin: 2rem 0;
}

.docs-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    background: rgba(80, 209, 153, 0.05);
    color: var(--gray);
}

.docs-content blockquote p {
    margin: 0;
}

/* Tables in docs */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.docs-content th,
.docs-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--dark-gray);
}

.docs-content th {
    background: var(--card-bg);
    color: var(--light);
    font-weight: 600;
}

.docs-content td {
    color: var(--gray);
}

.docs-content tr:hover td {
    background: rgba(80, 209, 153, 0.03);
}

/* Warning and Info boxes */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--warning);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--light);
    line-height: 1.7;
}

.warning-box strong {
    color: var(--warning);
}

.info-box {
    background: rgba(80, 209, 153, 0.1);
    border: 1px solid rgba(80, 209, 153, 0.3);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--light);
    line-height: 1.7;
}

.info-box strong {
    color: var(--primary);
}

/* Docs Footer */
.docs-footer {
    background-color: var(--darker);
    border-top: 1px solid var(--dark-gray);
    padding: 2rem;
    text-align: center;
}

.docs-footer .footer-content {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Legacy Sidebar Navigation (for compatibility) */
.docs-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar container - prevents layout shift on page load */
#sidebar-container {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--darker);
    border-right: 1px solid var(--dark-gray);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    flex-shrink: 0;
}

.sidebar {
    width: 100%;
    background-color: var(--darker);
    padding: 1.5rem 0;
    height: 100%;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(80, 209, 153, 0.05);
    border-radius: 6px;
    margin: 0 0.5rem 0.5rem;
}

.section-icon {
    font-size: 1rem;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin-left: 0.5rem;
}

.nav-icon {
    font-size: 0.95rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background-color: rgba(80, 209, 153, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-nav a:hover .nav-icon {
    opacity: 1;
}

.sidebar-nav a.active {
    background-color: rgba(80, 209, 153, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-nav a.active .nav-icon {
    opacity: 1;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--darker);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Documentation Content */
.doc-content {
    flex: 1;
    padding: 2.5rem 3.5rem;
    max-width: calc(100% - var(--sidebar-width));
    overflow-x: hidden;
}

.doc-container {
    max-width: 900px;
}

/* Direct content styling for articles (no section wrappers) */
.doc-container h1 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

.doc-container h2 {
    font-size: 1.65rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-gray);
    font-weight: 600;
}

.doc-container h2:first-of-type {
    margin-top: 1rem;
}

.doc-container h3 {
    font-size: 1.35rem;
    color: var(--light);
    margin: 1.5rem 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.doc-container h4 {
    font-size: 1.15rem;
    color: var(--light);
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}

.doc-container > p,
.doc-container .doc-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1rem;
}

.doc-container > ul,
.doc-container > ol {
    margin: 1.5rem 0 2rem;
    padding-left: 0;
    color: var(--gray);
    list-style: none;
}

.doc-container > ul > li,
.doc-container > ol > li {
    margin-bottom: 1rem;
    line-height: 1.8;
    padding-left: 2rem;
    position: relative;
}

.doc-container > ul > li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 0.5rem;
    top: 0.6rem;
}

.doc-container > ol {
    counter-reset: doc-item;
}

.doc-container > ol > li {
    counter-increment: doc-item;
    padding-left: 3rem;
}

.doc-container > ol > li::before {
    content: counter(doc-item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--darker);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested lists */
.doc-container ul ul,
.doc-container ol ul,
.doc-container ul ol,
.doc-container ol ol {
    margin: 0.75rem 0 0.5rem 1rem;
    padding-left: 0;
}

.doc-container ul ul li,
.doc-container ol ul li {
    margin-bottom: 0.5rem;
}

.doc-container ul ul li::before {
    width: 6px;
    height: 6px;
    background: var(--gray);
    top: 0.7rem;
}

/* Blockquotes */
.doc-container blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(80, 209, 153, 0.08);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.doc-container blockquote p {
    margin: 0;
    color: var(--light);
}

/* Strong/emphasis in content */
.doc-container strong {
    color: var(--light);
    font-weight: 600;
}

.doc-container a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.doc-container a:hover {
    border-bottom-color: var(--primary);
}

/* Horizontal rules as section dividers */
.doc-container hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-gray), transparent);
    margin: 4rem 0;
}

.doc-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-gray);
}

.doc-header h1 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.doc-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Notice Boxes */
.notice-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.notice-box.info {
    background: rgba(80, 209, 153, 0.1);
    border-color: rgba(80, 209, 153, 0.3);
}

.notice-box p {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* Documentation Sections - Enhanced Readability */
.doc-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
}

.doc-section:last-of-type {
    border-bottom: none;
}

.doc-section h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    width: 100%;
}

.doc-section h3 {
    font-size: 1.35rem;
    color: var(--light);
    margin: 1.5rem 0 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary);
}

.doc-section h4 {
    font-size: 1.1rem;
    color: var(--light);
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}

.doc-section p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1rem;
}

.doc-section ul,
.doc-section ol {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-left: 0;
}

.doc-section ul {
    list-style: none;
}

.doc-section ul li {
    color: var(--gray);
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    margin-bottom: 0.25rem;
    line-height: 1.7;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.doc-section ul li:hover {
    border-left-color: var(--primary);
    background: rgba(80, 209, 153, 0.03);
    padding-left: 2rem;
}

.doc-section ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 0.5rem;
    top: 1rem;
}

.doc-section ol {
    counter-reset: item;
    list-style: none;
}

.doc-section ol li {
    color: var(--gray);
    margin-bottom: 0.75rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.7;
    counter-increment: item;
}

.doc-section ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--darker);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-section a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.doc-section a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.doc-section strong {
    color: var(--light);
    font-weight: 600;
}

.doc-section mark {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.15));
    color: var(--light);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Section Dividers */
.doc-section + .doc-section {
    margin-top: 0.5rem;
}

/* Highlight List */
.highlight-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.highlight-item {
    background: linear-gradient(145deg, var(--card-bg), rgba(26, 32, 44, 0.8));
    border: 1px solid var(--dark-gray);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.highlight-item:hover::before {
    transform: scaleY(1);
}

.highlight-item span {
    font-size: 1.5rem;
}

/* Key Concept Cards */
.concept-card {
    background: linear-gradient(145deg, var(--card-bg), rgba(26, 32, 44, 0.9));
    border: 1px solid var(--dark-gray);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    position: relative;
}

.concept-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.concept-card p {
    color: var(--gray);
    margin: 0;
    line-height: 1.7;
}

/* Definition Terms */
.definition {
    background: rgba(80, 209, 153, 0.05);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.definition dt {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.definition dd {
    color: var(--gray);
    margin-left: 0;
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Steps/Process List */
.steps-list {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.steps-list li {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--dark-gray);
    color: var(--gray);
    line-height: 1.7;
}

.steps-list li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--darker);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.steps-list {
    counter-reset: step;
}

/* Callout Boxes */
.callout {
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.callout-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.callout-content p {
    margin: 0;
    line-height: 1.6;
}

.callout.tip {
    background: rgba(80, 209, 153, 0.1);
    border: 1px solid rgba(80, 209, 153, 0.3);
}

.callout.tip .callout-icon,
.callout.tip h4 {
    color: var(--primary);
}

.callout.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.callout.warning .callout-icon,
.callout.warning h4 {
    color: var(--warning);
}

.callout.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.callout.danger .callout-icon,
.callout.danger h4 {
    color: var(--danger);
}

/* Code Blocks - Creative Terminal Style */
pre {
    position: relative;
    background: linear-gradient(145deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 0;
    margin: 1.5rem 0;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #e6edf3;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(80, 209, 153, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Glowing top accent bar */
pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        #3bb47d 25%, 
        #50d199 50%, 
        #3bb47d 75%, 
        var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

pre code {
    display: block;
    padding: 1.5rem 1.75rem;
    padding-top: 2rem;
    background: none;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
    border: none;
    overflow-x: auto;
    box-shadow: none;
}

/* Left glow accent on hover */
pre:hover {
    border-color: rgba(80, 209, 153, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(80, 209, 153, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(48, 54, 61, 0.9);
    border: 1px solid rgba(80, 209, 153, 0.3);
    border-radius: 6px;
    color: var(--gray);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: rgba(80, 209, 153, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: rgba(80, 209, 153, 0.25);
    border-color: var(--primary);
    color: var(--primary);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

/* Inline code */
code {
    background: linear-gradient(135deg, rgba(80, 209, 153, 0.15) 0%, rgba(80, 209, 153, 0.08) 100%);
    border: 1px solid rgba(80, 209, 153, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: var(--primary);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

code:hover {
    background: linear-gradient(135deg, rgba(80, 209, 153, 0.2) 0%, rgba(80, 209, 153, 0.12) 100%);
    border-color: rgba(80, 209, 153, 0.4);
    transform: translateY(-1px);
}

/* Code block wrapper for enhanced styling */
.code-block {
    position: relative;
    background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(80, 209, 153, 0.1);
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #3bb47d, var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.code-block .code-lang {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(80, 209, 153, 0.2), rgba(80, 209, 153, 0.1));
    border: 1px solid rgba(80, 209, 153, 0.3);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.code-block .code-content {
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
}

.code-block .code-content code {
    background: none;
    padding: 0;
    border: none;
    color: #e6edf3;
    box-shadow: none;
}

.code-block .code-content pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.code-block .code-content pre::before {
    display: none;
}

/* Language-specific styling via class */
pre.lang-yaml::after,
pre.lang-json::after,
pre.lang-csharp::after,
pre.lang-bash::after,
pre.lang-http::after,
pre.lang-xml::after {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(80, 209, 153, 0.2), rgba(80, 209, 153, 0.1));
    border: 1px solid rgba(80, 209, 153, 0.3);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

pre.lang-yaml::after { content: 'YAML'; }
pre.lang-json::after { content: 'JSON'; }
pre.lang-csharp::after { content: 'C#'; }
pre.lang-bash::after { content: 'BASH'; }
pre.lang-http::after { content: 'HTTP'; }
pre.lang-xml::after { content: 'XML'; }
pre.lang-text::after { content: 'TEXT'; }
pre.lang-powershell::after { content: 'PS'; }
pre.lang-shell::after { content: 'SHELL'; }
pre.lang-javascript::after { content: 'JS'; }
pre.lang-typescript::after { content: 'TS'; }
pre.lang-python::after { content: 'PYTHON'; }
pre.lang-sql::after { content: 'SQL'; }
pre.lang-html::after { content: 'HTML'; }
pre.lang-css::after { content: 'CSS'; }

/* Code blocks with language labels need extra top padding */
pre[class*="lang-"] code {
    padding-top: 2.5rem;
}

/* Syntax highlighting colors - vibrant palette */
.code-comment { color: #8b949e; font-style: italic; }
.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-number { color: #79c0ff; }
.code-function { color: #d2a8ff; }
.code-variable { color: #ffa657; }
.code-operator { color: #ff7b72; }
.code-property { color: #7ee787; }
.code-class { color: #ffa657; }
.code-tag { color: #7ee787; }
.code-attr { color: #79c0ff; }

/* Tables */
.doc-table,
.doc-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
}

.doc-table th,
.doc-table td,
.doc-container table th,
.doc-container table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border: 1px solid var(--dark-gray);
}

.doc-table th,
.doc-container table th {
    background: var(--card-bg);
    color: var(--light);
    font-weight: 600;
}

.doc-table td,
.doc-container table td {
    color: var(--gray);
    line-height: 1.6;
}

.doc-table tr:hover td,
.doc-container table tr:hover td {
    background: rgba(80, 209, 153, 0.05);
}

.doc-table code,
.doc-container table code {
    background: var(--darker);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Component Cards */
.component-card {
    background: var(--card-bg);
    border: 1px solid var(--dark-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.component-card h3 {
    color: var(--primary);
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.component-card p {
    margin-bottom: 0;
}

.component-card ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Scenario Box */
.scenario-box {
    background: var(--card-bg);
    border: 1px solid var(--dark-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.scenario-box p {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.scenario-list {
    margin: 1rem 0;
}

.scenario-list li {
    color: var(--light) !important;
    margin-bottom: 0.5rem;
}

/* Architecture Image */
.architecture-img {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.architecture-img img {
    max-width: 400px;
    border-radius: 10px;
    border: 1px solid var(--dark-gray);
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, rgba(80, 209, 153, 0.1), rgba(80, 209, 153, 0.05));
    border: 1px solid rgba(80, 209, 153, 0.3);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.summary-box h3 {
    color: var(--primary);
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.summary-list {
    margin: 0;
}

.summary-list li {
    color: var(--light) !important;
    margin-bottom: 0.75rem;
}

.summary-list li strong {
    color: var(--primary);
}

/* CTA Box */
.cta-box {
    text-align: center;
    padding: 2rem;
    background: var(--darker);
    border-radius: 10px;
    margin-top: 2rem;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 1rem;
}

.cta-box a {
    display: inline-block;
    background: var(--primary);
    color: var(--darker);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-box a:hover {
    background: var(--primary-dark);
}

/* Modes List */
.modes-list {
    background: var(--darker);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.modes-list code {
    background: var(--card-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

/* Attribute List */
.attribute-list {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.attribute-list li {
    margin-bottom: 0.75rem;
}

.attribute-list li:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--darker);
    color: var(--light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--dark-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #sidebar-container {
        position: fixed;
        left: -100%;
        top: 0;
        width: var(--sidebar-width);
        min-width: var(--sidebar-width);
        height: 100vh;
        z-index: 150;
        transition: left 0.3s ease;
        border-right: none;
    }

    #sidebar-container.active {
        left: 0;
    }

    .sidebar {
        padding-top: 80px;
        width: 100%;
        border-right: 1px solid var(--dark-gray);
    }

    .docs-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 150;
        transition: left 0.3s ease;
        padding-top: 70px;
    }

    .docs-sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .doc-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .docs-main {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .docs-header .mobile-menu-btn {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 140;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--darker);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }

    .doc-header h1 {
        font-size: 2rem;
    }

    .doc-content {
        padding: 1.5rem 1rem;
    }

    .doc-table {
        display: block;
        overflow-x: auto;
    }

    .highlight-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .highlight-list {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--darker);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Navigation breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--dark-gray);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--dark-gray);
}

.breadcrumb .current {
    color: var(--light);
    font-weight: 500;
}

/* Page navigation (prev/next) */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--dark-gray);
}

.page-nav a {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--dark-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    max-width: 45%;
}

.page-nav a:hover {
    border-color: var(--primary);
    background: rgba(80, 209, 153, 0.05);
}

.page-nav a .label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.page-nav a .title {
    color: var(--primary);
    font-weight: 600;
}

.page-nav a.prev {
    align-items: flex-start;
}

.page-nav a.next {
    align-items: flex-end;
    margin-left: auto;
}
