body{
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color:aliceblue;
    min-height: 100vh;
}

main{
    flex-grow:1;
}
/** Header **/
.container-fluid .user-info{
    position: absolute; 
    left: auto; 
    right: 0;
}

/** Chat Box  **/
.chat-container{
    width: 80%;
    border-radius: 8px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: hsla(0,0%,100%,.1);
    height: 500px;
}

.chat-Box{
    max-height: 400px;
    min-height: 100px;
    overflow-y: scroll;
    padding: 10px;
    background-color: hsla(0,0%,100%,.1);
    font-size: 15px;
}

.input-container{
    display: flex;
    padding: 10px;
    position: relative;
    width: 50%;
    margin: auto;
    margin-top: 50px;
}

.input-container input{
    padding: 15px;
    border-radius: 20px;
    background-color: transparent;
    width: 100%;
}

.input-container #send-button{
    padding: 10px;
    background-color: black;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 45px;
    height: 45px;
    right:0;
    aspect-ratio: 1;
    margin-right: 15px;
    margin-top: 7px;
    margin-left: 5px;
}

.input-container #send-button:disabled{
    background-color: dimgray;
}

.input-container .key-reset-btn{
    border: none;
    cursor: pointer;
    position: relative;
    margin: auto;
    margin-right: 3px;
    width: 100px;
}

.message-container{
    padding: 5px;
    padding-bottom: 20px;
}

.chat-Box .user-name, .chat-Box .bot-name{
    padding: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight:bold;
}

/** Contact Chip **/
.chip-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.chip {
    display: inline-block;
    padding: 0 25px;
    height: auto;
    font-size: 18px;
    line-height: 50px;
    border-radius: 25px;
    background-color: #f1f1f1;
    margin-right: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    cursor:pointer !important;
    border: none;
}

.chip:hover{
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.chip:disabled{
    background-color: dimgray;
    color: white;
}

.chip img {
    float: left;
    margin: 0 10px 0 -25px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

.chip-mod{
    display: inline-block;
    padding: 0 25px;
    height: auto;
    font-size: 18px;
    line-height: 50px;
    border-radius: 25px;
    background-color: #f1f1f1;
    margin-right: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border: none;
}

.chip-mod img{
    float: left;
    margin: 0 10px 0 -25px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

/*Moderator*/
.moderator-container{
    display: flex;
    justify-content: left;
    align-items: left;
    padding-top: 30px;
}

/*Footer*/
.icon-link i{
    color: black;
}

/****Sidebar***/
#sidebar{
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100.8vh;
    background-color: #333;
    color: #fff;
    transition: left 0.3s ease;
    z-index: 1000;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#sidebar .chat-list{
    flex-grow: 1;
    overflow-y:auto;
}

#sidebar .new-thread {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidebar .new-thread .close-sidebar-icon{
    color: white;
    margin-left: auto;
}

/* #sidebar .dropdown{
    display: none;
    z-index: 1;
} */

/* #sidebar .chat-thread:hover{
   background-color:grey;
   border-radius: 8px;
   cursor: pointer;
} */
/* 
#sidebar .chat-thread:hover .dropdown{
    display: block;
} */

#chat-histories-list {
    overflow: hidden;           /* Hide overflowing content within the question list */
    text-overflow: ellipsis;    /* Display ellipsis (...) when content overflows */
    white-space: nowrap;    
}

#content {
    transition: margin-left 0.3s ease;
    margin-left: 0;
}

#sidebar.active {
    left: 0;
}

#content.active {
    margin-left: 250px; 
}

.chat-history-item{
    width: 250px;
    height: 40px;
    border-radius: 10px;
    align-content: center;
    padding: 10px;
}
/* Define the color for the hover effect when hovering */
.chat-history-item:hover {
    background-color: gray; /* Set background color */
    color: white; /* Set text color */
    cursor: pointer;
    width: 100%;
}

.template {
    display:none;
}


.button {
	box-shadow: 0px 10px 14px -7px #3e7327;
	background:linear-gradient(to bottom, #ace68f 5%, #72b352 100%);
	background-color:#ace68f;
	border-radius:4px;
	border:1px solid #4b8f29;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:13px;
	font-weight:bold;
	padding:6px 12px;
	text-decoration:none;
	text-shadow:0px 1px 0px #5b8a3c;
}
.button:hover {
	background:linear-gradient(to bottom, #72b352 5%, #ace68f 100%);
	background-color:#72b352;
}
.button:active {
	position:relative;
	top:1px;
}


@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: -1000px;
        width: 90%;
        height: 100.8vh;
        background-color: #333;
        color: #fff;
        transition: left 0.3s ease, width 0.3s ease;
        z-index: 1000;
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    #content.active {
        margin:auto; 
    }

    .input-container{
        width: 350px;
    }
}