body {
	font-family: Arial, sans-serif;
    direction: rtl;
    background: #f3f4f6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: start;
    height: 100vh;
    padding-top: 20px;
	overflow:hidden;
}

#chat-container {
	width: 420px;
    max-width: 90%;
    height: 90vh;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
	position:relative;
}

#chat {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position:relative;
}

.waiting{
	order:99;
	
}
.waiting span{

	width:20px;
	height:20px;
	display: block;
	text-align:center;
	animation: spin 4s linear infinite;
    transform-origin: center center;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(180deg); }
  50%  { transform: rotate(180deg); }  /* وقفة ثانية */
  75%  { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }  /* وقفة ثانية */
}

.message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.bot {
  background: #eef2f1;
  align-self: flex-start;
  color: #0f1720;
  border-bottom-left-radius: 4px;
}

.user {
  background: #10a37f;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

#input-bar {
  /*display: flex;*/
  align-items: center;
  padding: 8px;
  border-top: 1px solid #eee;
  background: #fafafa;
  gap: 8px;
}

#file-input,#image_input {
  display: none;
}

#images{display:none;}
.option_cont {
	padding:5px;
    font-size: 14px;
    padding: 0px 5px 0px 0px;
    border-radius: 5px;
    background: white;
    color: #10a37f;
    border: 1px solid #ddd;
    width: 100%; 
}

.upload-icon {
    cursor: pointer;
    font-size: 14px;
    background: white;
    color: #10a37f;
    display: block;
    height: 38px;
    width: calc(100% - 40px);
    float: right;
    border: 0px;
    padding: 0px;
}



.option_cont input{
	width: calc(100% - 45px);
    height: 38px;
    float: right;
    border: 0px;
	text-align:right;
}

.attach{
	float: right;
    height: 40px;
    line-height: 45px;
}

.send_icon{
	transform: scaleX(-1);
    color: #fff;
    background: #10a37f !important;
    float: left;
    margin: 0px !important;
    border: 0px !important;
    height: 40px !important;
    width: 40px;
    text-align: center;
    line-height: 40px !important;
	padding:0px !important;

}

.input{
	height:25px;
	border:solid 1px #ddd;
	border-radius:5px;
}



.options-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  
}
.exit_cont{
	float: left;
    display: flex;
    justify-content: center;
    align-items: center;
	position: absolute;
    left: 20px;
    top: 20px;
	display:none;
	
}

.prev_ques_return{
	 
	cursor: pointer;
    margin-right: 10px;
	
}
.option {
	background: #ffffff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    height: 30px;
    line-height: 30px;
}

.option:hover {
  background: #f0f0f0;
}

#chat-header {
	background: #10a37f;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #0e8c6e;
    height: 40px;
    line-height: 40px;
}

.double_title{

	float:right;
	height: 35px;
	line-height: 25px;
	width: 100%;
	background: #fefefe;
	border-bottom: solid 1px #ddd;
	box-sizing: border-box;
	padding: 5px;
	margin-bottom:5px;
	
}
.double_input{
	width: calc(50% - 30px) !important;
    height: 38px !important;
    background: #f6f6f6;
    text-align: center !important;
	border-radius: 10px;
}

.option_cont.double{
	padding:0px !important;
}


.thumb{
	
	float: left;
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    border-radius: 10px;
    margin-right: 5px;
	
}

.option_cont.file{
	text-align: center;
    height: auto;
    z-index: 0;
    font-size: 14px;
    position: relative;
    width: 100%;
}



    #file_preview-container {
		width: 100%;
		max-height: 70px;
		overflow-y: auto;
		border-top: solid 1px #ddd;
		padding-top: 10px;
		background: #fff;
		display:none;
		padding: 10px;
		box-sizing: border-box;
    }

    .file_preview {
        position: relative;
		width: 100%;
		height: 50px;
		border-radius: 10px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
		background: #f4f4f4;
		justify-content: center;
		font-size: 40px;
		margin-bottom: 10px;
    }

	.delete_preview{
		font-size: 14px;
		background: #ff0000;
		width: 40px;
		color: #fff;
		text-align: center;
		float: left;
		height: 50px;
		line-height: 50px;
		cursor:pointer;
	}
	
	.file_preview img {
		width: 50px;
		height: 100%;
		float: right;
	}
	
	.file_name_preview{
		float: right;
		font-size: 14px;
		/*margin-right: 60px;*/
		width: calc(100% - 110px);
		height: 50px;
		display: flex;
		justify-content: center;
		align-items: center;
		text-align: center;
	}
	
	.file{
		text-align: center;
		position: absolute;
		top: 0px;
		right: 0px;
		width: 50px;
		height: 50px;
		z-index: 0;
		font-size: 35px;
	}
    
	.progress-circle {
        position: absolute;
		top: 0px;
		right: 0px;
		
		width: 50px;
		height: 50px;
		border-radius: 10%;
		background: rgba(0, 0, 0, 0.6);
		color: #fff;
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: bold;
		font-size: 14px;
		float: right;
		position: absolute;
		z-index:1;
    }

   

    #send_icon.enabled {
      cursor: pointer;
      opacity: 1;
    }