/* Updated CSS with knowledge base enhancements */
:root {
    --bg-dark: #0a0f1a;
    --bg-darker: #050811;
    --bg-card: #111827;
    --bg-card-light: #1f2937;
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.15);
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-glow: rgba(16, 185, 129, 0.15);
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border: #374151;
    --border-light: #4b5563;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 16px;
    --grid-bg: linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    --grid-size: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grid-bg);
    background-size: var(--grid-size) var(--grid-size);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 1200px;
}

/* Header & Navigation */
header {
    background-color: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.25s ease, box-shadow 0.25s ease;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    padding: 20px 0; 
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.logo i {
    margin-right: 12px;
    font-size: 2rem;
    color: var(--primary);
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* ACTIVE STATE — underline stays */ 
nav ul li a.active { 
    color: var(--primary); 
} 
nav ul li a.active::after {
    width: 100%; 
}


.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background-color: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Page Hero */
.page-hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Support Search */
.support-search {
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 99;
}

.search-container {
    position: relative;
    z-index: 99;
}

.search-container i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-container input {
    width: 100%;
    padding: 20px 25px 20px 60px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.search-suggestion {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion:hover {
    background-color: rgba(14, 165, 233, 0.1);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.search-suggestion p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Knowledge Base Navigation */
.kb-navigation {
    margin-bottom: 60px;
}

.kb-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom:20px;
}
.content-grid-div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom:30px;
}
.media-block-pdf {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 100%;
}

.media-block-pdf:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.pdf-icon {
    font-size: 52px;
    color: var(--danger);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.4));
}

.pdf-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.pdf-download-btn {
    display: inline-block;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--text-primary);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
}

.pdf-download-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 14px var(--primary-glow);
}

/* ------------------------------
   MEDIA (RIGHT SIDE)
   ------------------------------ */
.media-block {
    width: 100%;
    background-color: var(--bg-card-light);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    max-height: fit-content;
}
.media-block.trans {
    background-color: transparent;
    border: none;
    box-shadow: none;
}
.media-block img,
.media-block video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.media-block p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Zoom icon overlay */
.media-block .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(14, 165, 233, 0.15);
    color: #0284c7;

    padding: 18px 22px; 
    border-radius: 50%;
    font-size: 2rem;

    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

/* Hover effect */
.media-block:hover .zoom-icon {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(2px);

    overflow: auto;
    padding: 40px 0;

    scrollbar-width: none;
}

.image-modal::-webkit-scrollbar {
    display: none; 
}

.image-modal img {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    animation: zoomFade 0.25s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1500000;
}

@keyframes zoomFade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}


.text-paragraph p {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 22px;
    font-weight: 400;
    line-height: 1.75;
}

.text-paragraph p strong {
    color: var(--primary);
}

.kb-nav-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kb-nav-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.kb-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.kb-nav-card.getting-started::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.kb-nav-card.platform-settings::before {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
}

.kb-nav-card.training-agents::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.nav-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.getting-started .nav-icon {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.platform-settings .nav-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.training-agents .nav-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.kb-nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.kb-nav-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.kb-nav-links {
    list-style: none;
    text-align: left;
}

.kb-nav-links li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.kb-nav-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.kb-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kb-nav-links a:hover {
    color: var(--primary);
}

.kb-nav-links i {
    color: var(--primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.kb-nav-links a:hover i {
    transform: translateX(5px);
}

/* Knowledge Base Content - Updated with accordion */
.kb-content {
    margin-top: 80px;
    display: none;
}

.kb-content.active {
    display: block;
}

.kb-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.kb-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.kb-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.section-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 1.8rem;
}

.getting-started-section .section-icon {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.platform-settings-section .section-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.training-agents-section .section-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.kb-section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.kb-articles-container {
    display: none;
}

.kb-articles-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.kb-article {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
    overflow: hidden;
}

.kb-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.kb-article.getting-started {
    border-left-color: var(--primary);
}

.kb-article.platform-settings {
    border-left-color: var(--secondary);
}

.kb-article.training-agents {
    border-left-color: var(--accent);
}

.kb-article-header {
    display: flex;
    align-items: center;
    /*margin-bottom: 25px;*/
    cursor: pointer;
}

.kb-article-header h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    flex-grow: 1;
    transition: var(--transition);
}

.kb-article-header:hover h3 {
    color: var(--primary);
}

.kb-article-toggle {
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.kb-article-toggle.rotated {
    transform: rotate(180deg);
}

.article-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.getting-started .article-number {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--primary);
}

.platform-settings .article-number {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.training-agents .article-number {
    background-color: rgba(139, 92, 246, 0.2);
    color: var(--accent);
}

/* ------------------------------
   KNOWLEDGE BASE ARTICLE LAYOUT
   ------------------------------ */

.kb-article-content {
    color: var(--text-secondary);
    line-height: 1.9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding-top 0.3s ease;
}

.kb-article-content.expanded {
    max-height: 10000px;
    padding-top: 30px;
}

.kb-article-content p {
    margin-bottom: 20px;
}

.kb-article-content ul, .kb-article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.kb-article-content li {
    margin-bottom: 10px;
}

.note-box,
.warning-box,
.success-box {
    padding: 20px;
    margin: 25px 0 0;
    border-radius: var(--radius);
    background-color: var(--bg-card-light);
    border-left-width: 5px;
    border-left-style: solid;
}

.note-box { border-left-color: var(--primary); }
.warning-box { border-left-color: var(--warning); }
.success-box { border-left-color: var(--success); }

.note-box p,
.warning-box p,
.success-box p {
    margin: 0;
    line-height: 1.5 !important;
}
.note-box b {
    color: var(--primary);
}
.image-placeholder {
    background-color: var(--bg-card-light);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin: 25px 0;
    color: var(--text-muted);
    float: right;
    width: 45%;
    margin-left: 30px;
    margin-bottom: 20px;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary);
}

.sub-article {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 5px;
}

.sub-article.sub {
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    margin-top:30px;
}

.sub-article h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
}
.sub-article.sub h4 {
    color: var(--primary-dark);
}
.sub-article p {
    line-height: normal;
}

.sub-article h4 i {
    margin-right: 10px;
    font-size: 1.3rem;
}
.sub-article-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 25px;
    margin-top: 20px;
}
.sub-image-grid {
    display: grid;
    grid-template-columns: 0.4fr 1.6fr;
    gap: 10px;
}
.sub-article-grid-updated {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
}
.section-setup-steps ol {
    padding-left: 22px;
    margin: 0;
}

.section-setup-steps li {
    margin-bottom: 5px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.highlight-section {
    background-color: var(--primary-glow);
    padding: 3px 6px;
    border-radius: 6px;
    color: var(--primary);
    font-weight: 500;
}
.section-media-div {
    display:flex;
    flex-direction: column;
    gap:20px;
}
.section-media-div > div {
    flex-shrink: 0;
}
.section-media {
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
}

.section-media img,
.section-media video {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.section-media i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-media p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.section-note {
    margin-top: 25px;
}

.sub-article-grid .media-block {
    /*padding: 15px;*/
}
.section-description p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.75;
}
.section-description {
    margin-bottom: 20px;
}

.section-li li {
    margin-bottom: 0 !important;
}
.kb-content-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.nav-button {
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: var(--radius);
}

.nav-button:hover {
    color: var(--primary-dark);
    background-color: rgba(14, 165, 233, 0.1);
}

.nav-button.prev i {
    margin-right: 10px;
}

.nav-button.next i {
    margin-left: 10px;
}

/* Support Methods */
.support-methods {
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.support-methods::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.methods-container {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.method-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 45px 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.method-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: white;
}

.method-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.method-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.method-card .cta-button {
    margin-top: 10px;
}

.cta-button.small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* System Status */
.status-section {
    /*background-color: var(--bg-darker);*/
    position: relative;
    overflow: hidden;
}

.status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.status-container {
    position: relative;
    z-index: 1;
}

.status-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.status-indicator {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-dot.operational {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.degraded {
    background-color: var(--warning);
    box-shadow: 0 0 10px var(--warning);
}

.status-dot.outage {
    background-color: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.status-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.status-header p {
    color: var(--text-secondary);
}

.status-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.status-component {
    background-color: rgba(55, 65, 81, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-component span {
    font-weight: 500;
    color: var(--text-primary);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 20px;;
}

.status-badge.operational {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-badge.degraded {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(55, 65, 81, 0.3);
    /*margin-top: 100px;*/
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-column ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-logo i {
    margin-right: 12px;
    font-size: 2rem;
    color: var(--primary);
}

.footer-about {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(55, 65, 81, 0.3);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Table of Contents */
.toc-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.toc-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.toc-header i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 15px;
}

.toc-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.toc-list li::before {
    content: counter(toc-counter) ". ";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}
.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: 83vh;
    /* Hide scrollbar */

    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal-body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 93vh;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-card-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    background-color: var(--bg-darker);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: var(--radius);
    max-width: 80%;
}

.message.user {
    background-color: rgba(14, 165, 233, 0.2);
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message.support {
    background-color: rgba(55, 65, 81, 0.5);
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.message.support .message-header {
    color: var(--secondary);
}

.message.user .message-header {
    color: var(--primary);
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 15px;
    background-color: var(--bg-card-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
}

.chat-input button {
    padding: 15px 25px;
}

.chat-maintenance-overlay {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    height: 335px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    z-index: 10;
}

.chat-maintenance-overlay .maintenance-content {
    background: var(--bg-card);
    padding: 20px 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 90%;
}

.chat-maintenance-overlay h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--danger);
}

.chat-maintenance-overlay p {
    margin: 5px 0;
    font-size: 14px;
}


.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    text-align: right;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Empty state for knowledge base */
.kb-empty-state {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.kb-empty-state i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.kb-empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.kb-empty-state p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 30px;
}

/*Steps Style*/

.steps-container {
    padding-left: 0;
}

.step-sub {
    display: flex;
    margin-bottom: 15px;
    margin-top: 20px;
    position: relative;
    padding-left: 50px;
}

.step-sub:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(2, 102, 178, 0.3);
}

.step-sub:last-child:before {
    height: 30px;
}

.step-number-sub {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 2;
}
.step-number-sub.security {
    background: var(--danger);
    color: white;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .page-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .content-grid,
    .sub-article-grid {
        grid-template-columns: 1fr;
    }

    .media-block {
        margin-top: 20px;
    }

    .text-paragraph p {
        font-size: 1.05rem;
    }
    .section-media {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .page-hero {
        padding: 150px 0 80px;
    }
    
    .page-hero h1 {
        font-size: 2.4rem;
    }
    
    .kb-nav-grid,
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .method-card {
        padding: 35px 30px;
    }
    
    .kb-section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .kb-article {
        padding: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .step-sub {
        padding-left: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .kb-nav-card,
    .kb-article {
        padding: 30px 25px;
    }
    
    .status-card {
        padding: 30px 25px;
    }
    
    .kb-content-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}

.form-success {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--secondary);
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
}

.form-success i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.form-success h3 {
    color: var(--text-primary);
    font-size: 1rem;
}

.form-success p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.error-text {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}
