.chat-container {
    width: 100%;
    max-width: 100%;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 500px;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.chat-header {
    background-color: #007bff;
    padding: 15px;
    color: #fff;
    text-align: center;
    font-size: 18px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-box {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px;
    border-radius: 15px;
    max-width: 75%;
    margin-bottom: 10px;
    display: inline-block;
}

/*.user-message {*/
/*    background-color: #d1ecf1;*/
/*    align-self: flex-end;*/
/*}*/

/*.admin-message {*/
/*    background-color: #e2e3e5;*/
/*    align-self: flex-start;*/
/*}*/

.chat-footer {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.textarea-chat {
    width: 80%;
    height: 40px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

.button-chat {
    width: 15%;
    padding: 10px;
    margin-left: 10px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.button-chat:hover {
    background-color: #0056b3;
}

.badge-chat {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 12px;
    margin-left: 5px;
}


/* Container for a single chat message */
.message {
  position: relative;        /* so we can position .timestamp */
  max-width: 60%;           /* limit the bubble width */
  margin: 10px;             /* spacing between bubbles */
  padding: 8px 12px;        /* inner padding */
  border-radius: 8px;
  font-family: sans-serif;  /* pick a font */
  font-size: 14px;          /* adjust as needed */
}

/* Name & phone at the top */
.message .from-line {
  font-weight: bold;
  color: #075E54; /* WhatsApp-like green */
  margin-bottom: 4px;
  /* If you want them on two separate lines:
     you could do:
       white-space: pre; 
       content: "~Mohammad\n+962 7 9142 4162";
     or separate them into two divs.
  */
}

/* The main message text */
.message .content {
  margin-bottom: 3px; /* leave space for the timestamp */
  white-space: pre-wrap; /* preserve line breaks if needed */
}

/* Time at bottom-right */
.message .timestamp {
  text-align: right;
  font-size: 12px;
  color: #999; /* lighter text color */
}

/* Distinguish admin vs user messages */
.admin-message {
  background-color: #DCF8C6; /* WhatsApp green bubble color */
  align-self: flex-end;      /* if using flex container on parent */
}

.user-message {
  background-color: #ffffff; /* White bubble */
  align-self: flex-start;    /* if using flex container on parent */
}


