html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    display: flex;
}

nav {
    width: 300px;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    background: #000000;
    color: #f5f5f7;
    height: 100%;
}

button {
    background: #000000;
    color: #fff;
    border: 2px solid #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    white-space: nowrap;
    margin-bottom: 10px;
    width: calc(100%);
    text-align: left;
}

nav button:last-child {
    margin-bottom: 0;
}

nav button:hover {
    background: #ff00a0;
}

button img.surrealdb-logo {
    height: 40px;
    padding-right: 10px;
    vertical-align: middle;
}

button img {
    -webkit-user-drag: none;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #151517;
}

main form {
    display: flex;
    height: 50px;
}

main form input {
    border-radius: 10px;
    border: 2px solid #444748;
    padding: 10px;
    box-sizing: border-box;
    font-family: inherit;
    margin-right: 10px;
    flex: 1;
    background: #151517;
    color: #f5f5f7;
}

main form button {
    width: 100px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #ff00a0;
    color: #fff;
    border: none;
    text-align: center;
    display: block;
    height: 100%;
}

a:-webkit-any-link {
    color: #ff00a0;
    cursor: pointer;
    text-decoration: underline;
}

.messages {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.message {
    border-radius: 15px;
    padding: 15px;
    background: #151517;
    margin-bottom: 15px;
    color: #f5f5f7;
    display: flex;
    flex-direction: column;
}

.message .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message .messenger-name {
    font-weight: bold;
    font-size: 1rem;
    color: #ff00a0;
}

.message .message-time {
    font-size: 0.85rem;
    color: #f5f5f7;
}

.message p.message-content {
    margin: 0;
}

.system.message .messenger-name {
    color: #9600ff;
}
