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

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
}

#container {
    display: flex;
    height: 100%;
}

/* Sidebar Styles */
#sidebar {
    width: 250px;
    min-width: 250px; /* Minimum width for the collapsed state */
    background-color: #2c3e50; /* Dark background */
    padding: 15px;
    border-right: 1px solid #34495e;
    overflow-y: auto;
    color: #ecf0f1; /* Light text */
    transition: width 0.3s ease; /* Smooth transition */
}

#sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #ecf0f1;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
}

#file-list {
    list-style-type: none;
    padding: 0;
}

#file-list li {
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s, color 0.2s;
}

#file-list li:hover {
    background-color: #34495e;
}

#file-list li.active {
    background-color: #2980b9;
    color: #fff;
}

/* Content Styles */
#content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background: #f8f9fa; /* Light background for readability */
}

/* Markdown Content Styles */
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    color: #2c3e50;
}

#content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #34495e;
}

/* Table Styles */
#content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#content table th,
#content table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

#content table th {
    background-color: #2c3e50;
    color: #ecf0f1;
}

#content table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Code Blocks */
#content pre,
#content code {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

#content code {
    background-color: #eee;
    color: #c0392b;
}

/* Links */
#content a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px solid #2980b9;
    transition: color 0.3s, border-bottom-color 0.3s;
}

#content a:hover {
    color: #1a5276;
    border-bottom-color: #1a5276;
}

/* Blockquote */
#content blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    background: #ecf0f1;
    border-left: 5px solid #2980b9;
    color: #34495e;
}

#toggle-button {
    background: #2980b9;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: block;
    margin-bottom: 15px;
    width: 100%;
    font-size: 1.2em;
}

#toggle-button:hover {
    background: #1a5276;
}
