body {
    font-size: small;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-top: 70px; /* Space for navbar */
    padding-bottom: 100px; /* Space for footer */
    overflow-x: hidden;
    background-color: #fafafa; /* Very light gray background */
    color: #444444; /* Slightly lighter dark gray text */
}

/* Accent colors for headings, links, and buttons */
h1, h2, h3, h4, h5, h6 {
    color: #34495e; /* Softer dark blue for headings */
}

a {
    color: #2980b9; /* Softer blue for links */
}

button {
    background-color: #1abc9c; /* Softer green for buttons */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners for buttons */
}

button:hover {
    background-color: #232827; /* Darker green on hover */
}

/* Highlight important information */
.highlight {
    background-color: #f1c40f; /* Softer yellow highlight */
    color: #444444;
    padding: 5px; /* Add some padding for better readability */
    border-radius: 3px; /* Rounded corners for highlights */
}

.navbar {
    background-color: #16a085;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    
    display: flex;
    align-items: center;
}

.brand-logo {
    font-size: medium;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar-menu {
    margin-left: 100px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.navbar-menu li {
    display: inline;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-size: medium;
    padding: 10px;
}

.navbar-menu a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    height: calc(100% - 50px); /* Subtract navbar height */
    width: 200px;
    position: fixed;
    top: 50px; /* Below navbar */
    left: 0;
    background-color: #f4f4f4;
    padding-top: 20px;
    padding-bottom: 60px; /* Extra space at the bottom */
    overflow-y: auto;
    transition: width 0.3s;
    box-sizing: border-box; /* Ensure padding is inside the width/height calculation */
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px; /* Space at the bottom of the menu */
}

.sidebar-menu li {
    padding: 10px;
    font-weight: bold;
}

.sidebar-menu a {
    text-decoration: none;
    color: #333;
    font-size: small;
    display: block;
    transition: background-color 0.2s;
}

.sidebar-menu a:hover {
    background-color: #ddd;
}

/* Content Area */
.content {
    font-size: small;
    margin-left: 220px; 
    min-height: calc(100vh - 120px); /* Adjust height to prevent overlap with footer */
    margin-bottom: 50px; /* Extra space below content to prevent footer overlap */
    overflow-x: hidden;
}

/* Toggle Button for Sidebar */
.toggle-button {
    display: none;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .toggle-button {
        display: block;
        position: fixed;
        top: 50px; /* Below navbar */
        left: 0;
        z-index: 1000;
    }

    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .open-sidebar {
        width: 200px;
    }

    .content {
        /* margin-left: 0; */
    }
}

/* Footer */
.footer {
    background-color: #16a085; 
    color: white;
    text-align: center;
    /* padding: 20px 10px; */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.footer a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
}

.footer a:hover {
    color: #ddd;
    text-decoration: underline;
}

/* style to all code snippets */
.code-box {
    background-color: #f4f4f4; /* Light grey background */
    border-left: 4px solid #ddd; /* Left border */
    margin-bottom: 20px; /* Space below each box */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for code */
    overflow: auto; /* Handle overflow for long lines */
    border-radius: 4px; /* Rounded corners */
}
