body {
    font-family: Arial, sans-serif;
    direction: rtl;
    background: #f5f5f5;
    padding: 20px;
}

.upload-icon {
    cursor: pointer;
    font-size: 14px;
    background: white;
    color: #3294fd;
    height: 70px;
    width: calc(100% );
    float: right;
    border: 0px;
    padding: 0px;
    border: 1px dashed #333;
    margin-bottom: 5px;
    display: flex;
    text-align: center;
    box-sizing: border-box;		
	align-items: center;     /* محاذاة عمودية */
	justify-content: center; /* محاذاة أفقية */
}


.ques_container {
    display: flex;
    flex-direction: column;
    gap: 20px;
	width:100%;
}

.form_create_cont{
	margin:0 auto;
	max-width:1000px;
}

.ques_box {
    background: #fff;
    border: 2px solid #007BFF;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	position:relative;
	
}

.ques_type,.ques_level{
	font-size: 12px;
    display: table;
    background: #e84757;
    border-radius: 10px;
    padding: 5px 10px;
    color: #fff;
    margin-top: 1px;
    font-weight: 500;
	float: right;
    margin-left: 5px;
}

.ques_level{background:#8142c3;}

.ques_box.active {
	box-shadow: 0 0px 20px rgb(253 255 65);
    border: solid 2px #d0d134;

}

.ques_box:first-of-type {
  display: block;   /* يظهر */
}


.ques_text {
	font-size: 18px;
    font-weight: bold;
    color: #003a79;
    display: inline-block;
    margin-left: 50px;
    margin-bottom: 20px;
    margin-top: 5px;
	width:75%;
}


.add_option{
	background: #e9f2ff;
    border: 1px solid #007BFF;
    border-radius: 8px;
    padding: 5px;
    font-size: 16px;
    width: auto;
    color: #000;
    margin-top: 20px;
    display: inline-block;
	cursor:pointer;
}

.add_ques{
	background: #e9f2ff;
    border: 1px solid #007BFF;
    border-radius: 8px;
    padding: 5px;
    font-size: 16px;
    width: auto;
    color: #000;
    margin-top: 20px;
    display: inline-block;
	cursor:pointer;
	float: left !important;
    margin: 10px 10px 10px 0px  !important;
}

.save_ques_sort{
	background: #e9f2ff;
    border: 1px solid #007BFF;
    border-radius: 8px;
    padding: 5px;
    font-size: 16px;
    width: auto;
    color: #000;
    margin-top: 20px;
	cursor:pointer;
	float: left !important;
    margin: 10px 10px 10px 0px  !important;
	display:none;
}



.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.option_cont {
    background: #e9f2ff;
    border: 1px solid #007BFF;
    border-radius: 8px;
    padding: 5px;
    font-size: 16px;
	width:100%;
}
.option_cont.active {
	background: green;
}



.ques_box.active .hide_ques{
	transform: rotate(90deg);
}

.ques_text_text{
	cursor: pointer;
    max-height: 55px;
    overflow-y: auto;
    display: block;
    margin-bottom: 5px;
}

.hide_ques{
	position:absolute;
	top:10px;
	left:10px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;
}

.delete_ques{
	position:absolute;
	top:10px;
	left:40px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;
}

.options_cont{
	display:none;
}
.options_cont.not_options{
	display:none !important;	
}

.edit_ques{
	position:absolute;
	top:10px;
	left:70px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;
}



.save_options_sort{
	position:absolute;
	top:10px;
	left:100px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;
	display:none;
}




.add_ques_general{
	position:absolute;
	top:10px;
	left:40px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;
}



.start_ques { 
	position:absolute;
	top:10px;
	left:70px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;
}
.multi_ques { 
	position:absolute;
	top:10px;
	left:100px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;
}
.loged_ques {
	position:absolute;
	top:10px;
	left:130px;
	width:20px;
	height:20px;
	line-height:20px;
	cursor:pointer;	
}


.edit_ques{
	cursor:pointer;
}

.message{
	  
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 80%;
	max-width:900px;
    min-height: 200px;
    background: #f7f7f7;
    color: white;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 2;
    border: 2px solid #007BFF;
    text-align: center;
    padding-bottom: 10px;
	height: 80vh;
	
}

#message_back,#message_condition_back{
	width:100vw;
	height:100vh;
	background:#fff;
	opacity:0.9;
	position:fixed;
	z-index:1;
	display:none;
	left:0px;
	top:0px;
}

#message_condition_back{
	z-index:3 !important;	
	
}


#add_condition_message{
	z-index:4;
}




.option_float{
	float: right;
    padding: 5px;
    min-width: 25px;
    text-align: center;
    line-height: 25px;
    margin: 5px;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
	font-size:14px;
}

.option_float.text{
	    width: calc(100% - 110px);
    text-align: right;
}

div,span{
	user-select: none; 
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;    
}

.message_title{
	text-align: center;
    color: #333;
    padding: 10px;
    background: #fff;
    margin: 10px 10px;
    border-radius: 10px;
	 font-weight: bold;
}

.message_body{
    text-align: center;
    color: #333;
    padding: 10px;
    margin: 10px 10px;
    background: #eee;
    height: calc(80vh - 120px);
    border-radius: 10px;
	overflow-y: scroll;
}

.text_editor{
	font-weight: normal;
}

.text_editor span{
	width:auto;
	text-align: right;
    display: inline;
    margin: 0%;
    
}

.message_body input , .message_body select,.message_condition_body input , .message_condition_body select,.condition_value,.text_editor{
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 5px;
    border: solid 1px #ccc;
    background: #fff;
    line-height: 30px;
    text-align: right;
	margin-top:5px;
}


.editor_btn{
font-weight:bold;	
}
.message_body span{
	text-align:right;
	display:block;
	width: 98%;
    margin: 1%;
	font-size:14px;
	
}

.message button{
	background: #007BFF;
    border: 0px;
    height: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
	cursor:pointer;
}

#conditions_cont,#conditions_edit_cont{
	width:100%;
	height:auto;
	min-height:200px;
	background:#fff;
}

.condition_cont{
	height: 30px;
    display: inline-block;
    float: right;
    margin: 10px;
    border: solid 1px #ddd;
    padding: 10px;
    line-height: 30px;
    border-radius: 10px;
    direction: rtl;
}

.delete_condition{
	float: left;
    height: 30px;
    margin-right: 10px;
}

.add_condition{
	direction: rtl;
    cursor: pointer;
    display: inline;
	margin-right:5px;
}

.condition{float:right;}

.div_disabled {
  pointer-events: none; 
  opacity: 0.5;         
}

.editor_btn_cont{
	display:inline-block !important;
	width:auto !important;
	float:left;
	margin-bottom:10px !important;
	margin:0px !important;
	
}

.editor_btn{
	display: inline-block !important;
    width: auto !important;
    float: right;
    margin: 0px !important;
    margin-right: 10px !important;
    border-radius: 5px;
    padding: 5px;
    background: #ddd;
    margin-top: -10px !important;
    cursor: pointer;
	min-width: 20px;
    text-align: center !important;
	height:18px;
}

.btn_disabled{

opacity: 0.5;
}



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

    .file_preview {
        position: relative;
		width: 100%;
		height: 50px;
		border-radius: 10px;
	
		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;
		border-radius:10px;
	}
	
	.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: 60px;
		
		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;
    }