@font-face {
    font-family: 'DroidArabicKufiRegular';
    src: url("../../fonts/DroidArabicKufiRegular.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Calibri';
    src: url("../../fonts/calibriRegular.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url("../../fonts/Roboto-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

body{
    font-family: 'DroidArabicKufiRegular';
    background: linear-gradient(#9ec4fd80, #e9e9e9);
    height: 100%;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.rtl{
    text-align: right;
    direction: rtl;
    float: right;
}

.ltr{
    text-align: left;
    direction: ltr;
    float: left;
}


select{
    padding: 0 !important;
}

#nav{
    border-bottom: 1px #7fadf380 solid;
    padding: 0 4px;
    z-index: 1;
}

#content{
    padding: 15px;
    margin-right: 50px;
    transition: margin-right 0.3s ease-in-out;
    direction: rtl;
    text-align: right;
}

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

.body-container{
    /* width: 1424px !important; */
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px; 
}

#logo {
    height: 48px;
}

#brand a{
    float: right;
}


/*  Login Page  */

.page-title h2, .page-title h4{
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}
.login-form{
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.login-form .container{
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.login-form .container .form-group{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-form .container .form-group input {
    margin-bottom: 10px;
    margin-top: 10px;
}

input[type="password"] {
    font-family: 'Times New Roman', Times, serif; 
}


/* Intro Page */
#videoInstructions{
    max-width: 768px;
    align-items: center;
    margin: auto;
}


.errorlist{
    color: red;
}

/* Translate Book Page */

#Book-Select{
    direction: rtl;
    text-align: right;
}

#roundedCard{
    border-radius: 20px;
}

#msg{
    direction: rtl;
    text-align: right;
    color: #0b4cc4;
    font-weight: bold;
    height: 40px;
}

.fixed-bottom {
    right: auto;
    left: 50%;
    transform: translate(-50%, 0);
    border: none;
}

.empty-footer {
    left: 0;
    bottom: 0;
    width: 100%;
    /* min-height: 350px; */
    min-height: 50px;
}

.translation-footer {
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 250px;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #3898f8;
    color: #181818;
    text-align: center;
    font-weight: bold;
}

input[type=file] {
  width: 350px;
  max-width: 100%;
  color: #444;
  padding: 5px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #555;
}

input[type=file]::file-selector-button {
    margin-right: 20px;
    border: none;
    background: #2a579a;
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease-in-out;
}

input[type=file]::file-selector-button:hover {
      background: #0d45a5;
}

.select2-container .select2-selection--single {
    height: 45px;
    min-width: 200px;
    /* min-width: 350px; */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px;
    word-wrap: break-word !important;
    text-overflow: inherit !important;
    white-space: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1px;
}

.select2-results__options {
    min-height: 380px;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
}

.select2-container--default .select2-dropdown {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.select2-container--open .select2-dropdown {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

.select2-dropdown .select2-results > .select2-results__options::-webkit-scrollbar {
    width: 12px;
}
  
.select2-dropdown .select2-results > .select2-results__options::-webkit-scrollbar-track {
    background: #f2f2f2; 
}

.select2-dropdown .select2-results > .select2-results__options::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 4px;
}

.select2-results__option {
    padding: 8px;
}


/* Translate Page */

#search-panel {
    display: none;       /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #2c597e;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.data-container, #data-table{
    justify-content: center;
    align-items: center;
}

th{
    background-color: #abcafa;
    font-weight: bolder;
}

#pagination-container{
    position: sticky;
    top: 66px;
    z-index: 100; /* Adjust as needed */
    padding-top: 15px !important;
    background-color: #F8F9FA;
    border-bottom: 1px #7fadf380 solid;
    height: 60px !important;
}

#pagination-container,
#bottom-pagination-container{
    height: 600px;
    direction: rtl;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 50px;
}

#pagination-container .paginationjs-pages ul,
#bottom-pagination-container .paginationjs-pages ul  {
    list-style: none;
    padding: 0;
}

#pagination-container .paginationjs-pages ul li,
#bottom-pagination-container .paginationjs-pages ul li {
    display: inline-block;
    margin-right: 5px;
}

#pagination-container .paginationjs-pages ul li a,
#bottom-pagination-container .paginationjs-pages ul li a {
    text-decoration: none;
    padding: 2px 10px;
    border: 1px solid #ccc;
}

#pagination-container .paginationjs-pages ul li a:hover,
#bottom-pagination-container .paginationjs-pages ul li a:hover,
#pagination-container .paginationjs-pages ul li.active a,
#bottom-pagination-container .paginationjs-pages ul li.active a {
    background-color: #9ec4fd80;
}

.no-click {
    pointer-events: none;
    color: #979797; /* optional visual cue */
}

#approveIcon{
    color: #e2e2e2 !important;
}

#confirmIcon{
    color: #ff0000 !important;
}

#saveIcon{
    color: #4caf50 !important;
}

#saveButton{
    border: #97f197 solid 1px;
    border-radius: 4px;
    background-color: #d4f5d4;
    height: 20px;
    padding: 0 !important;
    margin-left: auto;
    margin-right: auto;
}

#saveButton::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    display: none;
}
  
#saveButton:hover::after {
    display: block;
    width: 200px;
}


#showIcon{
    color: #4577ff !important;
}

#addSpecialCharButton, #showTransButton{
    height: 20px;
    padding: 0 !important;
    margin-left: auto;
    margin-right: auto;
}

.track-tr {
    transition: all 0.3s ease;
}

.stageBtn{
    /* background-color: #d8ecfd; */
    padding: 4px;
    font-size: 10px;
    font-weight: 600;
}

.stageDataBtn{
    background-color: #e2e2e2;
    padding: 2px;
    margin-right: 16px;
    font-size: 12px;
}

.transP{
    background-color: #ffffff;
    border: #e9e9e9 solid 1px;
    border-radius: 5px;
    margin-top: 2px;
    padding: 4px 4px 2px 2px;
    direction: rtl;
}

#transSelect{
    text-align: left;
}

#translationBtn{
    background-color: #9ec4fd80;
    font-size: 16px;
    font-weight: normal;
}
.dropdown-menu {
    width: 450px;
}
.dropdown-item {
    white-space: normal;
    text-align: left;
}

.dropdown-menu .dropdown-item:nth-child(odd) {
    background-color: #f8f9fa;
}
.dropdown-menu .dropdown-item:nth-child(odd):hover {
    background-color: #b9d3fa80;
    transition: background-color 0.4s ease-out;
}
.dropdown-menu .dropdown-item:nth-child(even) {
    background-color: #edeff1;
}
.dropdown-menu .dropdown-item:nth-child(even):hover{
    background-color: #b9d3fa80;
    transition: background-color 0.4s ease-out;
}
.dropdown-menu .dropdown-item {
    color: #495057;
}

#translations-table{
    table-layout: fixed;
    width: 100%;
}

.closed-paragraph{
    color: #35A6E1 !important;
}

.closed-paragraph::before {
    content: attr(data-text);
    background-color: #EBEBEB;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
}
#finalTranslation,
#finalTrans {
  font-family: 'Roboto' !important;
}

#badgePhraseOrder{
    background-color: #ecebeb;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    border-radius: 4px;
    padding: 0px 3px;
}

/*  Bottom Panel  */

#bottomPanel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #F3F3F3;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    height: 40px;
    z-index: 300;
    /* padding-right: 50px; */
}

#panelContent{
    margin-left: 10px;
}

.panel-expanded {
    transition: height 0.3s ease-in-out;
}

#resizeHandle {
    height: 11px;
    background-color: #cccccc;
    cursor: ns-resize;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

#resizeHandle:hover {
    background-color: #bbbbbb;
}

#resizeIcon {
    margin: 4px auto;
    border-radius: 8px;
    background-color: black;
    width: 32px;
    height: 3px;
}

#bottomPanelCloseBtn{
    position: absolute;
    right: 10px;
    top: 10px;
    margin-right: 8px;
    cursor: pointer;
    font-weight: bold;
}

#reloadBtn{
    position: absolute;
    right: 10px;
    bottom: 10px;
    cursor: pointer;
    font-size: 13px;
}

.panel-content {
    padding: 10px;
    overflow-y: auto;
    height: calc(100%);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

#panel-roundedCard{
    border-radius: 10px;
    text-align: left;
    background-color: #F8F9FA;
}

#panel-roundedCard:hover{
    background-color: #b9d3fa80;
    transition: background-color 0.4s ease-out;
}

#shortcutSpan{
    background-color: #c9c9c9;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;  
}

#transBtn{
    font-size: 16px;
    font-weight: bold;
}

.trans-text{
    direction: ltr;
    text-align: left;
    margin-bottom: 0;
}


/* Sidebar Css */

#toggleBtn,
#login-btn,
#logout-btn,
#add-btn{
    background-color: #2c597e;
    color: #fff;
    border: none;
}
#toggleBtn:hover,
#login-btn:hover,
#logout-btn:hover,
#add-btn:hover{
    background-color: #214461;
    border: none;
}

#sidebar {
    width: 50px;
    position: fixed;
    height: 100vh;
    background-color: #2c597e;
    transition: width 0.3s;
    right: 0;
    direction: rtl;
    margin-top: 65px; 
    z-index: 300;
}

#sidebar.active {
    width: 250px;
}

#sidebar ul {
    padding: 0;
}

#sidebar ul li {
    list-style: none;
}

#sidebar ul li a {
    color: white;
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    transition: background 0.3s;
    text-align: right;
    font-size: 12px;
}

#sidebar ul li a:hover {
    background-color: #214461;
}

#sidebar ul li a i {
    font-size: 24px;
    margin-left: 10px;
}

#sidebar ul li a span {
    display: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar.active ul li a span {
    display: inline;
}

/*     Book Data Cards  */

#bookAccordion{
    margin: 5px;
}
#book-card-header{
    background-color: #2c597e;
    max-height: 50px;
    padding: 4px;
}
#book-card-header .title{
    display: inline;
    justify-content: center;
    align-items: center;
}
#book-card-header .title, .rotate-icon{
    font-size: 14px;
    color: #fff;
    justify-content: center;
    align-items: center;    
}
#book-card-header .accicon {
    float: left;
    font-size: 20px;  
    width: 1.2em;
    color: #fff;
}
#book-card-header{
    cursor: pointer;
    border-bottom: none;
}
#book-card{
    border-radius: 5px;
    border: 2px solid #2c597e;
}
#book-card-body{
    border-top: 1px solid #ddd;
}
#book-card-header:not(.collapsed) .rotate-icon {
    transform: rotate(180deg);
}



/* Books Table Page */

#input-group {
    direction: rtl;
    max-width: 400px;
    margin: 20px auto;
}

.form-control {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#input-group-text {
    background-color: #2c597e;
    color: white;
    border-radius: 10px 0 0 10px;
    border: none;
}

#input-group-text i {
    font-size: 1.2rem;
}

.form-control:focus {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#books-table th, #users-table th, #langs-table th{
    background-color: #2c597e !important;
    color: #fff !important;
}

#langP{
    font-size: 12px;
    font-weight: 600;
}

.langSpan{
    background-color: #359ef5;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;

}

#filterBtn{
    color: #fff;
    background-color: #2c597e;
}

#filterDropDown .dropdown-menu {
    min-width: 200px;
    width: auto;
}

#filterDropDown .dropdown-menu li:hover {
    background-color: #56abfa;
}

#filterDropDown .dropdown-menu-auto li {
    width: auto;
}

#filterDropDown .dropdown-menu.w-auto .dropdown-item {
    padding-left: .75rem;
    padding-right: .75rem;
}


#TranslationData {
    white-space: pre-wrap;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    justify-content: center; 
    align-items: center;
}

#editModelBtn{
    font-size: 11px;
    padding: 4px;
}

#td-id-table{
    height:180px;
    white-space: nowrap; 
    width: 1%;
}

#stageCard{
    border-radius: 8px !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2) !important;
}

#stageName{
    font-size: 14px;
    font-weight: 600;
    color: white;
    border-radius: 8px 8px 0px 0px !important;
}

.assignBtn{
    font-size: 11px;
    padding: 2px;
    margin: 4px 0px;
}

#resetApprovedBtn{
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 2px;
    height: 24px;
    width: 24px;
}

#progressSpan{
    font-size: 9px !important;
    font-weight: 400;
    color: #5e6880;
    padding: 2px;
}

#wordsP{
    font-size: 12px !important;
    font-weight: 500;
    color: #5e6880;
    padding: 10px 0px;
    margin: 2px !important;
}

#transProgress{
    width: 90%;
    justify-content: right; 
    align-items: right;
    position: absolute;
    top: 5px;
    font-weight: bold;
}


#CompPercentDiv, #importTransDiv{
    position: absolute;
    /* right: 10px; */
    bottom: 10px;
}

#importBtn{
    padding: 2px;
    height: 24px;
    width: 24px;
}

#ModalCloseBtn{
    position: absolute;
    left: 10px;
    top: 10px;
    cursor: pointer;
    font-weight: bold;
}

#langBtn{
    /*background-color: #3cbd85;*/
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

#weightBtn{
    font-size: 12px;
    font-weight: 500;
}

.removeIcon{
    background-color: #bbbbbb;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* border-radius: 50%; */
    border-radius: 5px;
    cursor: pointer;
    padding: 1px 2px !important;
    font-size: 14px;
}

#editBtn, #exportBtn{
    font-size: 12px;
    font-weight: 500;
}

#model-specific-fields{
    text-align: right;
    direction: rtl;
    float: right;
}


/* Book Info Page*/
#bookTitle{
    color: #007bff;
    text-align: right;
}

#addStageBtn{
    font-size: 11px !important;
    font-weight: 600;
    padding: 4px 12px;

}

@keyframes flash-bg {
    0%, 100%   { background-color: transparent; }
    50%        { background-color: rgba(157, 244, 255, 0.8); /* semi-transparent yellow */ }
}
  
.flash-highlight {
    animation: flash-bg 1s ease-in-out 2;
}


/* Prompts in Models Table */

/* Add some padding and make the text more readable */
#prompt-modal-body{
    direction: ltr;
    text-align: left;

}

#full-prompt-text {
    font-size: 16px;
    line-height: 1.6;
    padding: 10px;
}


/* AI models Multiselect */

#multiselect_rightAll, #multiselect_rightSelected,
#multiselect_leftSelected, #multiselect_leftAll,
#multiselect_move_up, #multiselect_move_down{
    background-color: #f0f0f0 !important;
    color: black;
    border: none;
}

/* striped style for multiselect and multiselect_to Options  */
#multiselect option:nth-child(odd), #multiselect_to option:nth-child(odd) {
    background-color: #f8f9fa; /* Light background for odd items */
}
#multiselect option:nth-child(even), #multiselect_to option:nth-child(even) {
    background-color: #e9ecef; /* Darker background for even items */
}
#multiselect option:hover, #multiselect_to option:hover {
    background-color: #007bff;
    color: #fff;
}

#multiselect, #multiselect_to{
    height: 250px;
}

.btn-block {
    height: 30px !important; 
}


/*  Arabic / Translations Books */
#ArabicBookBtn,
#TranslationBookBtn{
    background-color: #2c597e !important;
    min-height: 40px !important;
    color: #fff;
    align-items: center;
    font-weight: bold;
}

#ArabicBookCollapse{
    background-color: #f1f1f1 !important;
}

/* Tracking changes  */ 

del {
    text-decoration: line-through;
    color: #f44336 ;
}
ins {
    text-decoration: underline;
    color: #4caf50;
}



/* Book Statistics */
#models-statistics-table{
    width: 85%;
}

/* Models Statistics */
.dt-search{
    left: 0;
}

.dt-paging{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
}

.toast-container {
    position: fixed;
    top: 4rem;
    right: 4rem;
    z-index: 1100;
}

.infoToast.toast {
    height: 50px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: inline-block;
}

/* trans progress bar */
#progress-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 5px;
    z-index: 200;
    width: 30%;
    background-color: #abcafa;
    border: 1px #72aafd solid;
    border-radius: 8px;
    padding: 4px;
    margin-left: auto;
    margin-right: auto;
}

#progress-title{
    font-weight: bold;
    padding: 2px;
}

#trans-progress{
    height: 15px !important;
    width: 100%;
}

#infoIcon{
    color: white;
    background-color: #00A2B6;
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    margin-left: auto;
    margin-right: auto;
}

#verticalSep{
    margin: 4px auto;
    width: 5px;
    background-color: #dadada;
    height: 100%;
}

.phrase-key{
    color: white;
    background-color: #00A2B6;
}

#addIcon{
    font-size: 20px;
    color: #01ac01;
}

#delBtn{
    height: 30px !important;
}

#phraseSpan{
    font-size: large;
}


/* Notes APP */

#NoteTitle{
    padding: 4px;
    border-radius: 4px;
    font-weight: bold; 
    text-align: right;    
    color: #01519c; 
}

#CommentCard{
    border-radius: 10px;
    text-align: right;
    background-color: #F8F9FA;
    padding: 10px;
}

#CommentAuthor{
    background-color: #e6e6e6;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold; 
    text-align: right;    
    color: #2c597e;
}

#CommentEvaluation{
    background-color: #f1f1f1;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold; 
    text-align: right;    
    color: #ff0000;
}

#CommentDate{
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;      
    color: #2c597e;
}

#navbarIcon {
    display: none;
}

/* Relative Ranges */
.RangeIcon{
    font-size: 20px;
    font-weight: bold;
}

.MedRangeIcon{
    font-size: 14px;
    font-weight: bold;
}

#RelativeData{
    display: none;
}

#update-icon{
    text-decoration: none;
}

.update-btn{
    margin-top: 2px;
    padding: 0px 2px !important;
    font-size: 10px;
}

.add-flowid,
.edit-flowid,
.confirm-flowid{
    margin-top: 2px;
    padding: 0px 2px !important;
    font-size: 10px;
}

/* User Management */
#JobRole{
    font-size: 10px;
    font-weight: 600;
    /* color: #2C597E; */
    background-color: #b4d9fc;
    border-radius: 5px;
    padding: 4px;
    margin-left: 4px;
}

/* Configurations Page */
.flashing-text {
    animation: flash 1s linear infinite;
}
  
@keyframes flash {
    0% { opacity: 2; }
    50% { opacity: 0; }
    100% { opacity: 2; }
}

/* Reports Page */

#pagesCount{
    font-size: 12px;
}

#noteP{
    font-size: 11px;
    color: #2e2e2e;
    padding-top: 8px;
}


/* Screen Width 768px  */
/*    Mobile Screen   */
@media screen and (max-width: 768px) {

    .login-form{
        width: 100%;
    }

    #content {
        margin-right: 0px;
        padding: 4px;
    }

    #content.active {
        margin-right: 0px;
    }

    #navbarIcon {
        display: block;
    }

    #user-info {
        display: none;
    }

    #sidebar {
        transform: translateX(100%);
    }

    #sidebar.active {
        transform: translateX(0%);
    }

    #roundedCard{
        padding: 8px !important;
    }

    #progress-container{
        width: 100%;
        height: 40px;
        padding: 2px;
    }

    #progress-title{
        font-size: 12px;
        font-weight: bold;
    }

    #trans-progress{
        height: 10px !important;
    }

    #pagination-container{
        top: 40px;
        height: 50px !important;
    }

    #translations-table{
        table-layout: fixed;
        width: 100%;
    }

    #bottomPanel {
        z-index: 250;
    }

    #panelContent{
        margin-left: 0px;
    }

    #bottomPanelCloseBtn{
        right: 0;
        top: 10px;
        display: flex;
        flex-direction: column;
        margin-right: 0px !important;
        align-items: center;
        font-size: 12px;
    }

}