body {
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.container {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 56px;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
}

.sidebar-item,
.nav-item {
    margin-bottom: 20px;
    position: relative;
    text-align: center;
}

.send-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
}

.icon-button:focus,
.icon-button:hover {
    background-color: #e0e0e0;
    border-radius: 5px;
}

.tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.nav-item:hover .tooltip {
    visibility: visible;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}

.title {
    font-size: 24px;
}

.content {
    display: flex;
    flex: 1;
    padding: 20px;
}

.settings,
.chat {
    flex: 1;
    margin-right: 20px;
}

.chat {
    flex: 2;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.chat .output {
    flex: 1;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    position: relative;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 5px 10px;
}

.chat-form {
    display: flex;
    flex-direction: column;
}

.chat-form textarea {
    flex: 1;
    resize: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.chat-actions {
    display: flex;
    align-items: center;
}

.chat-actions .icon-button {
    font-size: 20px;
    margin-right: 10px;
}

.send-button {
    display: flex;
    align-items: center;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.send-button .icon {
    margin-left: 5px;
}

.send-button:hover {
    background-color: #0056b3;
}

.message {
    background-color: #e0e0e0;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    white-space: pre-wrap; /* This ensures that newline characters are preserved as spaces */
}


.bot-message {
    background-color: #d1f1d1;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    white-space: pre-wrap; /* This ensures that newline characters are preserved as spaces */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4b9cea;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 10px;
    right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

#login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#login {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* New styles for the code screen */
#code .content {
    display: flex;
    height: calc(100vh - 200px); /* Adjust based on your header height */
}

.code-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ccc;
    padding: 10px;
}

.code-output {
    flex: 1;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
}

.code-chat-form {
    display: flex;
}

.code-chat-form textarea {
    flex: 1;
    resize: none;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.code-chat-form button {
    margin-left: 10px;
}

.file-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.file-list {
    margin-bottom: 10px;
}

.file-content {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    white-space: pre-wrap;
    overflow-y: auto;
    font-family: monospace;
}

.drawer {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#toggle-drawer-button {
    display: block;
    margin-bottom: 10px;
}

#drawer-content {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}