:root {
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-primary: #060822;
    --text-secondary: #f43063;
    --border-color: #e2e8f0;
    --accent-color: #060822; /* Veyur Green */
    --accent-hover: #030514;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.docs-container {
    display: block;
    min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: none;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
}

.mobile-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 0 16px;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 950;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.close-sidebar {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.sidebar-nav {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.nav-link {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: #f1f5f9;
}

.nav-link.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    background-color: #f1f5f9;
}

/* Main Content */
.content-area {
    margin-left: 280px;
    padding: 48px;
    width: calc(100% - 280px);
    max-width: 900px;
    min-width: 0;
}

.doc-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.doc-section.active {
    display: block;
}

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

/* Typography & Markdown Styles */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

h2 {
    font-size: 1.5rem;
    
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

ul, ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #e11d48;
}

strong {
    
}

/* Global Header Menu Toggle Button */
.global-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}
.global-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .global-header {
        height: 65px !important;
        padding: 0 16px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 3000 !important;
    }

    .header-container {
        position: relative !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .global-logo img {
        height: 38px !important;
        width: auto !important;
    }

    .global-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .global-nav {
        display: none !important;
        position: absolute !important;
        top: 65px !important;
        left: -16px !important;
        right: -16px !important;
        width: calc(100% + 32px) !important;
        background-color: #060822 !important;
        flex-direction: column !important;
        padding: 12px 16px !important;
        gap: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: 3px solid #f43063 !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
        z-index: 3000 !important;
    }

    .global-nav.open {
        display: flex !important;
    }

    .global-nav > a {
        font-size: 0.95rem !important;
        padding: 12px 8px !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: block !important;
        width: 100% !important;
    }

    .dropdown {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .dropdown > a {
        font-size: 0.95rem !important;
        padding: 12px 8px !important;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .dropdown-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        background-color: #0d1138 !important;
        border-radius: 8px !important;
        margin: 4px 0 8px 0 !important;
        padding: 4px 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .dropdown.active .dropdown-content,
    .dropdown:hover .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        color: #ffffff !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        white-space: normal !important;
        display: flex !important;
        align-items: center !important;
    }
    .dropdown-content a i {
        color: #f43063 !important;
    }
    .dropdown-content a:hover {
        background-color: rgba(244, 48, 99, 0.2) !important;
        color: #ffffff !important;
    }

    .dropdown-content a:last-child {
        border-bottom: none !important;
    }

    .mobile-header {
        display: flex;
        top: 65px;
    }

    .sidebar {
        top: 65px;
        height: calc(100vh - 65px);
        transform: translateX(-100%);
        border-right: 1px solid var(--border-color);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .close-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-area {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
        padding-top: 20px;
    }
    
    .sidebar-nav {
        height: calc(100vh - 138px);
        overflow-y: auto;
    }

    .hero-section {
        padding: 30px 15px !important;
    }

    .hero-section h1 {
        font-size: 1.6rem !important;
        margin-bottom: 8px !important;
    }

    .themes-grid-section {
        padding: 30px 15px !important;
    }

    .themes-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .theme-card {
        padding: 20px 16px !important;
    }

    .theme-card h2 {
        white-space: normal !important;
        word-break: break-word !important;
        font-size: 1.25rem !important;
    }

    .doc-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (max-width: 480px) {
    .global-header {
        padding: 0 12px !important;
    }

    .global-logo img {
        height: 34px !important;
    }
}

    .search-box {
        flex-direction: column !important;
        gap: 8px !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .search-box input {
        border-radius: 6px !important;
        border-right: 1px solid #cbd5e1 !important;
        width: 100% !important;
    }

    .search-box button {
        border-radius: 6px !important;
        width: 100% !important;
        padding: 12px !important;
    }
}

/* Image Styles */
.doc-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin: 24px 0;
    display: block;
}

.image-placeholder {
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    color: #64748b;
    margin: 24px 0;
    font-weight: 500;
}

/* Global Header */
.global-header {
    background-color: #060822; /* Dark color matching example */
    color: #ffffff;
    padding: 0 40px;
    height: 75px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
}
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.global-logo {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.global-logo img {
    height: 42px;
    width: auto;
    display: block;
}
.global-nav {
    display: flex;
    gap: 24px;
}
.global-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.global-nav a:hover, .global-nav a.active-nav {
    color: #ffffff !important;
    
}

/* Adjust layout for docs page */
body.docs-page .docs-container {
    padding-top: 75px; /* Offset for fixed global header */
}
body.docs-page .sidebar {
    top: 75px;
    height: calc(100vh - 75px);
}
body.docs-page .mobile-header {
    top: 75px;
}

@media (max-width: 768px) {
    body.docs-page .content-area {
        padding-top: 80px; /* Account for mobile header */
    }
}

/* Home Page Layout */
body.home-page {
    background-color: #f8fafc;
    padding-top: 75px;
}
.hero-section {
    background-color: #e2e8f0;
    padding: 40px 20px;
    text-align: center;
    border-bottom: none;
}
.hero-container {
    max-width: 800px;
    margin: 0 auto;
}
.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 400;
    color: #060822;
    border: none;
    margin-bottom: 10px;
    padding-bottom: 0;
}
.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 4px;
}
.search-box input {
    flex: 1;
    padding: 16px;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-box button {
    background-color: #4c82b1; /* Blue matching HelpScout */
    color: white;
    border: none;
    padding: 0 32px;
    font-size: 1.05rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
}

/* Themes Grid */
.themes-grid-section {
    padding: 80px 20px;
}
.themes-container {
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    justify-content: start;
}
@media (max-width: 992px) {
    .themes-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .themes-container {
        grid-template-columns: 1fr;
    }
}
.theme-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}
.card-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 16px auto;
    display: block;
}
.theme-card h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #060822;
    white-space: normal;
    word-break: break-word;
}
.theme-links {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.theme-links li {
    margin-bottom: 12px;
}
.theme-links li:last-child {
    margin-top: auto;
}
.theme-links li:nth-last-child(1){
    margin-bottom: 0;
}
.theme-links a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.theme-links a::before {
    content: "📄";
    margin-right: 8px;
    font-size: 0.9em;
    filter: grayscale(1);
    opacity: 0.4;
}
.theme-links li:last-child a::before {
    content: ""; /* Remove icon from view all articles */
    margin-right: 0;
}
.theme-links a:hover {
    color: #4c82b1;
}

.home-footer {
    text-align: center;
    padding: 20px 15px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}
.home-footer p {
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}
/* Table Styles */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.doc-table th, .doc-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}
.doc-table th {
    background-color: #f8fafc;
    
    color: var(--text-primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #060822;
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 8px;
    
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
    margin-top: 10px;
}
.btn-primary:hover {
    background-color: #030514 !important;
    text-decoration: none !important;
}
.btn-primary i {
    margin-left: 8px;
    font-size: 1.1em;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.dropdown > a {
    display: flex;
    align-items: center;
}

@media (min-width: 769px) {
    .dropdown-content {
        display: none;
        border: 1px solid #e2e8f0;
        position: absolute;
        background-color: #ffffff;
        min-width: 260px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
        z-index: 2500;
        border-radius: 6px;
        top: 100%;
        left: 0;
        padding: 8px 0;
    }
    .dropdown-content a {
        color: #1e293b !important;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
        font-size: 0.95rem;
        font-weight: 500 !important;
        white-space: nowrap;
    }
    .dropdown-content a:hover {
        background-color: #f1f5f9;
        color: #060822 !important;
    }
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

