/* General Styles */
body {
    font-family: 'Sora', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Header */
.mheader {  
    padding: 0 20px;
    display: flex;   
    align-items: center;
    background: white;
    border-bottom: 1px solid black;
    position: fixed;
    top: 0;
    height: 70px;
    width: 100%;
    z-index: 1000;
}

.back-button {
    font-size: 20px;
    color: black;
    cursor: pointer;
    margin-right: 50px;
    font-weight: 400;
}

.chat-username {
    font-size: 14px;
    color: black;
    text-align: center;
}

/* Chat Container */
.chat-container {
    height: 100vh;
    width: 100%;
    padding: 70px 15px 100px;
    overflow-y: auto;
   /* Telegram-style background */
    background-image: url('bg.jpg'); /* Path to the doodle PNG */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: scrolls nicely */
    color: #fff; /* ensure chat text is visible */
}
/* Message Box - Common Styles */
/* Common Styles */


.message-box {
    display: flex;
    align-items: flex-start;
    max-width: 75%;
    margin: 10px;
    padding: 10px;
    border-radius: 15px;
    font-size: 12px;
    color: white;
    font-weight: 400;
}

.sender-name {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.message-text {
  margin-top: 5px;
  word-wrap: break-word;
}

.profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 10px;
}


.message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sender-name {
    font-weight: bold;
    font-size: 12px;
    color: #e0e0e0;
    margin-bottom: 2px;
}

.attached-file {
    margin-top: 6px;
    font-size: 14px;
}
.attached-file a {
    color: #ffffff;
    text-decoration: none;
    word-break: break-word;
}
.attached-file a:hover {
    text-decoration: underline;
}



.file-upload-icon {
  cursor: pointer;
  border-radius: 50%;
  background: #000;
  padding: 10px;
  color: white;
  font-size: 16px;
  margin-left: 10px;
}

.file-upload-icon:hover {
  color: #38E078;
}



.timestamp {
    font-size: 10px;
    color: #cccccc;
    margin-top: 5px;
    align-self: flex-end;
}

.message-text {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
}
/* Outgoing (right) message */
.message-box.incoming {
    background-color: #2d6a4f;
    flex-direction: row;
    margin-left: 0;
}

.message-box.outgoing {
    background-color: #38b2ac;
    flex-direction: row-reverse;
    margin-left: auto;
}
/* Message Input */
.message-input-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    height: 50px;
    padding-top: 10px;
    border-radius: 15px 15px 0px 0px;
}

.message-input {
    flex-grow: 1;
    padding: 10px;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    background: transparent;
    font-size: 14px;
    margin-left: 10px;
}

.send-button {
    background-color: #38E078;
    border: none;
    padding: 10px;
    margin-left: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.send-button i {
    color: white;
    font-size: 16px;
}

.background-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-icons i {
    position: absolute;
    font-size: 14px;
    color: rgba(0, 0, 0, 1); /* Soft contrast */
}
