body {
    background: linear-gradient(#cfd9df, #e2ebf0);
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Login / Chat window */
#login-window, #chat-window {
    width: 500px;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#titlebar {
    height: 35px;
    background: linear-gradient(#5b8bd9, #3b6db3);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

#login-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-content input {
    width: 80%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#login-content button {
    width: 50%;
    padding: 10px;
    background: #2d89ef;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

#login-content button:hover {
    background: #1e5fbf;
}

/* Chat window */
#messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f0f4f8;
}

.message {
    margin-bottom: 8px;
    padding: 6px 8px;
    background: #e2ebf0;
    border-radius: 4px;
}

#input-area {
    display: flex;
    border-top: 1px solid #ccc;
}

#chat-input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
    background: rgba(255,255,255,0.8);
}

#send-btn {
    width: 80px;
    background: #2d89ef;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#send-btn:hover {
    background: #1e5fbf;
}
