/* Global */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
}

/* Center box (login + register pages) */
.center-box {
    width: 320px;
    background: #1a1a1a;
    padding: 25px;
    margin: 120px auto;
    border-radius: 10px;
    text-align: center;
}

.center-box h2 {
    margin: 0 0 15px 0;
}

input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
    background: #2b2b2b;
    color: #fff;
}

button {
    width: 95%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

/* APP PAGE */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1a1a1a;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#chat-list {
    flex-grow: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

#chat-list li {
    background: #262626;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
}

#chat-list li:hover {
    background: #303030;
}

#new-chat-btn {
    background: #4CAF50;
}

/* Invite box */
#invite-box {
    margin-top: 12px;
    background: #252525;
    padding: 10px;
    border-radius: 6px;
}

/* Chat area */
.chat-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #151515;
}

/* Messages */
#messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    background: #222;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Message input section */
.message-bar {
    display: flex;
    padding: 10px;
    background: #1a1a1a;
}

.message-bar input {
    flex-grow: 1;
}

.message-bar button {
    margin-left: 10px;
}
