body {
    font-family: Arial, sans-serif;
    margin: 0; /* Remove default margin */
    overflow: hidden; /* Prevent vertical scrollbar */
    padding: 10px; /* Add padding from page borders */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 20px); /* Adjust height to account for body padding */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.main-panel {
    display: flex;
    flex: 1;
    overflow: hidden; /* Prevent overflow */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.user-list {
    width: 20%;
    border-right: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto; /* Make user list scrollable */
    background-color: #f0f0f0;
    border-radius: 8px; /* Round corners */
    margin-right: 5px; /* Reduce padding between panels */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.user-list ul {
    margin: 0; /* Remove default margin */
    padding-left: 0; /* Remove default left padding */
    list-style-type: none; /* Remove default list style */
}

.chat-panel {
    width: 80%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto; /* Make chat panel scrollable */
    background-color: #f0f0f0;
    border-radius: 8px; /* Round corners */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-log {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto; /* Make chat log scrollable */
    margin-bottom: 5px; /* Reduce padding between panels */
    background-color: #fff;
    border-radius: 8px; /* Round corners */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-input {
    display: flex;
    margin-bottom: 5px; /* Reduce padding between panels */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.chat-input input {
    flex: 1;
    padding: 5px;
}

.chat-input button {
    padding: 5px 10px;
}

.technical-log-panel {
    background-color: #f0f0f0;
    padding: 10px;
    height: 30vh;
    /* 30% of the screen height */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: 8px; /* Round corners */
    margin-top: 5px; /* Reduce padding between panels */
}

.technical-log-panel.hidden {
    display: none;
}

.technical-log {
    border-top: 1px solid #ccc;
    padding-top: 10px;
    margin: 0;
    height: 100%;
    /* Adjust height to fit within the panel */
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px; /* Round corners */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.toggle-log-panel {
    position: fixed;
    bottom: 10px;
    left: 10px;
}

#toggle-log-button {
    margin-top: 10px;
}

.server-panel {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 8px; /* Round corners */
    margin-bottom: 5px; /* Reduce padding between panels */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    width: 100%; /* Ensure server panel fits the screen width */
    flex-wrap: wrap; /* Allow wrapping to prevent overflow */
}

.server-panel label {
    font-size: 12px; /* Make text smaller */
    margin-bottom: 5px;
}

.server-panel input {
    min-width: 0; /* Reduce minimum width of input fields */
    flex: 1; /* Ensure input fields resize */
    width: 100%; /* Ensure input fields take full width of their container */
}

.input-buttons {
    width: 100px;
    height: 100%;
    margin-right: 20px; /* Add margin inside input group */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.input-username {
    width: 150px;
    margin-right: 20px; /* Add margin inside input group */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.input-server-url {
    width: 200px;
    margin-right: 20px; /* Add margin inside input group */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.server-panel button {
    width: 100%;
    height: 100%;
    flex: 1; /* Ensure buttons take full height of their container */
}