body, html { 
    font-family: Trebuchet MS, sans-serif; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin: 0;
    height: 100vh;
    background: #102338;
}

#leftColumn {
            position: relative;
            background-color: #A8A8A8;
            overflow-y: auto;
            border-right: 1px solid #ccc;
        }

#leftColumn::before {
            content: "DROP IMAGES";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #ccc;
            font-size: 24px;
            text-align: center;
        }
        #leftColumn.has-images::before {
            display: none;
        }

/* Thumbnails */
#leftColumn img {
            width: 100px;
            height: 100px;
            margin: 10px;
        }

/* Images Right-Click Menu */
#imageContextMenu {
            display: none;
            position: absolute;
            z-index: 1000;
            background-color: white;
            border: 1px solid #ccc;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        #imageContextMenu ul {
            list-style-type: none;
            margin: 0;
            padding: 5px 0;
        }
        #imageContextMenu ul li {
            padding: 8px 20px;
            cursor: pointer;
        }
        #imageContextMenu ul li:hover {
            background-color: #f1f1f1;
        }
		img {
            margin: 5px;
        }
		#imageDialog {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
        }
        #imageDialog img {
            max-width: 100%;
            max-height: 80vh;
        }
		
table {
	width: 100%;
	height: 100%;
	table-layout: fixed;
	}
	td {
		border: 0px solid #ccc;
		vertical-align: top;
	}
	#leftColumn {
		width: 33%;
		overflow: auto;
	}
	#centerColumn {
		width: 33%;
	}
	#rightColumn {
		width: 33%;
}

/* Chat Window */	
#chat { 
    width: 100%; 
    height: 95%; 
    border: 1px solid #ccc; 
    overflow-y: auto; 
    padding: 10px; 
    padding-right: 20px; 
    margin-bottom: 10px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Message Type In Box */
#message-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;         
}

#message { 
    width: 50%; /* Adjusted width for message input */
    box-sizing: border-box; 
    padding: 10px;
}

#attach-icons {
    display: flex;
    align-items: center; /* Center items vertically */
}

#attach-icons img {
    max-height: 30px; /* Limit height of icons */
    cursor: pointer; /* Add cursor pointer for interaction */
}

/* Send Button */
#send {
    width: 15%; /* Adjusted width for send button */
    box-sizing: border-box;
    padding: 8px;
}



/* Chat Bubble */
.message {
    padding: 8px;
    margin: 1px 0;
    border-radius: 10px;
    background-color: #f1f1f1;
    display: inline-block;
    max-width: calc(100% - 150px); /* Adjust as needed */
    position: relative;
    overflow-wrap: break-word; /* Ensure text wraps within the bubble */
    word-wrap: break-word; /* Compatibility for older browsers */
}

/* Time Stamp */
.message .timestamp {
    font-size: 0.7em;
    font-family: 'Trebuchet MS', sans-serif;
    position: absolute;
	text-align: right;
    left: -100px; /* Adjusted left position */
    top: 15px; /* Fixed 10px from the top */
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Time Stamp Flyout */
.message:hover .timestamp {
    left: -60px; /* Adjusted left position on hover */
    opacity: 1;
}



.attachment {
    display: flex;
    align-items: center;
    justify-content: center; /* Center items horizontally */
    background-color: #d1e7dd;
    padding: 3px;
    border-radius: 5px;
    max-width: 70%;
    margin-left: auto;
    margin-right: 10px;
    margin-top: 5px;
    position: relative;
}

.attachment img {
    height: 20px;
    margin-right: 5px;
}

.attachment a {
    color: #333;
    text-decoration: underline;
    cursor: pointer;
}

