body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Change to column layout */
    min-height: 100vh; /* Ensure the body takes at least the height of the viewport */
    overflow-y: hidden;
    background: #282c34;
}

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 200px; /* Adjust as needed */
    padding: 20px;
    border-right: 1px solid #ccc;
    background-color: #0d0f16;
    transition: width 0.3s;
    color: white;
    min-height: 100vh;
    overflow-y: auto; /* Allow sidebar to scroll if content exceeds height */
    text-align: center;
}


.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-top: 10px;
    text-align: left;
}

.sidebar li {
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 8px;
    background-color: #1d1f2233;
    border-radius: 5px;
}

.sidebar li:hover {
    background-color: #4572ac28;
}

.sidebar button {
    width: 85%;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: rgb(11 76 146);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar button:hover {
    background-color: #0056b3;
}

.editor {
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s;
    overflow-y: auto; /* Allow editor content to scroll if it exceeds height */
    background: #0a0c13;
}

.editor h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.editor input[type="text"],
.editor textarea {
    width: 99%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #0a0c13;
    border-radius: 5px;
    background-color: #282c34; /* VS Code background color */
    color: #fcfdff; /* VS Code text color */
    font-family: "Courier New", Courier, monospace; /* VS Code font */
    resize: none;
}

.editor input[type="text"] {
    font-size: 20px;
}


.editor input[type="text"]:focus,
.editor textarea:focus {
    border-color: #007bff;
}

.editor textarea {
    height: calc(100vh - 140px);
    font-size: 18px; /* Calculate height to fit within viewport */
}

.editor-buttons {
    text-align: right;
    position: absolute;
    bottom: 0%;
    display: flex;
}

.editor-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.editor-buttons button:hover {
    background-color: #218838;
}

.editor-buttons button + button {
    margin-left: 10px;
}
