/* Reset */
* {margin:0;padding:0;box-sizing:border-box;font-family:Arial,sans-serif;}

/* Container */
.user-container {
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    background:#e5ddd5;
    padding:10px;
}

/* Email entry page */
.chat-start {
    background:#fff;
    padding:30px;
    border-radius:10px;
    width:100%;
    max-width:400px;
    box-shadow:0 4px 6px rgba(0,0,0,0.1);
    text-align:center;
}
.chat-start h2 {margin-bottom:20px;}
.chat-start input {width:100%;padding:12px;margin-bottom:10px;border-radius:5px;border:1px solid #ccc;}
.chat-start button {width:100%;padding:12px;background:#25D366;color:white;border:none;border-radius:5px;cursor:pointer;font-weight:bold;}
.error {color:red;margin-bottom:10px;}

/* Chat box */
.chat-box {
    background:#fff;
    width:100%;
    max-width:500px;
    border-radius:10px;
    display:flex;
    flex-direction:column;
    height:80vh;
    box-shadow:0 4px 6px rgba(0,0,0,0.1);
    overflow:hidden;
}

/* Header */
.chat-header {
    background:#075E54;
    color:white;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.logout-btn {
    background:#25D366;
    padding:5px 10px;
    border-radius:5px;
    color:white;
    text-decoration:none;
    font-weight:bold;
}

/* Messages */
.chat-messages {
    flex:1;
    padding:15px;
    overflow-y:auto;
    background:#ece5dd;
}
.msg {
    margin-bottom:10px;
    padding:10px 15px;
    border-radius:20px;
    max-width:70%;
    word-wrap:break-word;
}
.msg.user {background:#dcf8c6; align-self:flex-end;}
.msg.admin {background:#fff; align-self:flex-start;}

/* Input */
#chat-form {
    display:flex;
    border-top:1px solid #ccc;
}
#msg-input {
    flex:1;
    padding:15px;
    border:none;
    outline:none;
}
#chat-form button {
    background:#25D366;
    border:none;
    padding:15px;
    color:white;
    font-weight:bold;
    cursor:pointer;
}

.msg {padding:10px;margin:5px;border-radius:10px;}
.msg.user {background:#DCF8C6;text-align:right;}
.msg.admin {background:#EEE;text-align:left;}

.chat-messages{
    display:flex;
    flex-direction:column;
    padding:10px;
    overflow-y:auto;
}

/* Common bubble */
.msg{
    max-width:70%;
    padding:10px 14px;
    margin:6px 0;
    border-radius:18px;
    font-size:14px;
    word-wrap:break-word;
}

/* USER → RIGHT SIDE (Green bubble) */
.msg-user{
    align-self:flex-end;
    background:#dcf8c6;
    text-align:right;
}

/* ADMIN → LEFT SIDE (White bubble) */
.msg-admin{
    align-self:flex-start;
    background:#ffffff;
    border:1px solid #ddd;
}