body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

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

#sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background-color: #ffffff;
    padding: 25px;
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    overflow-y: auto;
    flex-shrink: 0;
}

#sidebar h1 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Search styles */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

#search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f0f7ff;
}

.search-no-results {
    padding: 10px 15px;
    color: #666;
    font-style: italic;
}

/* Navigation styles */
#file-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#file-list li {
    width: 100%;
}

#file-list li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #34495e;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    white-space: normal;
    word-wrap: break-word;
}

#file-list li a:hover,
#file-list li a.active {
    background-color: #3498db;
    color: #ffffff;
}

/* Category styling */
.category-header {
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.8em;
    margin-top: 20px;
    padding: 5px 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #e0e0e0;
}

.getting-started-item a {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: bold;
    border-left: 4px solid #0ea5e9;
    margin-bottom: 15px;
}

.getting-started-item a:hover,
.getting-started-item a.active {
    background-color: #0ea5e9;
    color: white;
}

#content {
    flex-grow: 1;
    padding: 30px 40px;
    overflow-y: auto;
    background-color: #ffffff;
}

/* Heading with anchors */
.heading-anchor {
    opacity: 0;
    margin-left: 8px;
    font-size: 0.8em;
    transition: opacity 0.2s ease;
    color: #3498db;
    text-decoration: none;
}

h1:hover .heading-anchor,
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
h5:hover .heading-anchor,
h6:hover .heading-anchor {
    opacity: 1;
}

/* Styles for rendered markdown elements */
#content h1, #content h2, #content h3, #content h4 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.3em;
}

#content h1 { font-size: 2.2em; }
#content h2 { font-size: 1.8em; }
#content h3 { font-size: 1.5em; }

#content p {
    margin-bottom: 1em;
}

#content a {
    color: #3498db;
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

#content code {
    background-color: #ecf0f1;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9em;
}

#content pre {
    background-color: #2c3e50;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #34495e;
}

#content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Add some syntax highlighting styles for code */
.highlighted-code .keyword {
    color: #f92672;
}

.highlighted-code .string {
    color: #a6e22e;
}

.highlighted-code .comment {
    color: #75715e;
}

.highlighted-code .number {
    color: #ae81ff;
}

#content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin-left: 0;
    color: #7f8c8d;
    font-style: italic;
}

#content ul, #content ol {
    padding-left: 20px;
}

#content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

#content th, #content td {
    border: 1px solid #dfe2e5;
    padding: 8px 12px;
}

#content th {
    background-color: #f6f8fa;
    font-weight: bold;
}

#content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    #sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 15px;
    }
    
    #content {
        padding: 15px;
    }
}
