@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

section#header-dash, section#header-dash h6, section#header-dash button, section#main-dash, section#main-dash h5, section#main-dash h6, section#main-dash p, section#main-dash span, section#main-dash div, section#main-dash a,
label, input, textarea{
    font-family: "Inter", serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

.cke_inner{
    border: 2px solid black !important;
}
.preview-ref h6,
.preview-ref b,
.preview-ref p{
    font-family: "Inter", serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}
.preview-ref h6{
    font-size:1.3rem !important;
}

.btn-form {
    padding: 0.5rem !important;
    background-color: #ffffff;
    outline: none;
    border: none;
    border-radius: 6px;
}
.btn-form img{
    width: 20px;
    height: 20px;
}
#btn-kumpul-label,#btn-kembali-label,#btn-save-label,#btn-print-label,#btn-excel-label{
    font-size: 0.875rem !important;
}

#main-dash h6:not(#judul-form,#progress-title){
    font-size:1.3rem !important;
}

#judul-form, #progress-title{
    font-size: 1rem !important;
}

#header-dash{
    height: 60px;
    position: fixed;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.5rem;
    width: 100%;
    z-index: 4;
}
#main-dash{
    padding-top: 60px;
}
.btn-form-label{
    font-weight: 600;
    margin-left: 0.5rem;
}
.btn-form:hover {
    background-color: #EFEFEF;
}
.btn-form:active {
    background-color: #bfbfbf;
}
.text-red{
    color: #FF0000;
}
.text-green{
    color: #61C554;
}
#navbar-tugas{
    position: fixed;
    width: 100%;
    height: unset;
    padding: 0.2rem 1.5rem;
    z-index: 3;
}
.nav-item{
    margin-bottom: 0px;
}
.nav-link{
    color: #8B8A8D;
}
.nav-link.active, .nav-link:hover{
    color: #375CB4;
}
.nav-link.active::after {
    content: " ";
    position: relative;
    background: #375CB4;
    width: 15px;
    display: flex;
    height: 3px;
    text-align: center;
    margin:0 auto;
}

.timeline-item{
    cursor: pointer;
    padding: 0px 1.5rem;
}  
.timeline-body {
    padding: 16px 0px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #BABCBE;
}

.timeline-item.active{
    background: #ECF3FF;
    border-left: 4px solid #375CB4;
    padding: 0px 1.5rem 0px 1.2rem;
}

.timeline-body .icon-box {
    width: 60px;
    height: 60px;
    background-color: #ECF3FF;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-body .icon-box img {
    width: 20px;
}

.timeline-body .details {
    flex: 1;
}

.timeline-body .details .date {
    font-size: 1rem;
    color: #212529;
}

.timeline-body .details .date-value {
    font-size: 1rem !important;
    color: #212529;
}

.timeline-body .details .status {
    color: #28a745; /* Green checkmark */
    margin-left: 8px;
}

.timeline-body .details .description {
    overflow: hidden; /* Hides the overflow */
    display: -webkit-box; /* Creates a flexbox-like structure */
    line-clamp: 2;
    -webkit-box-orient: vertical; /* Orients the box vertically */
    -webkit-line-clamp: 2; /* Limits the content to 2 lines */
    text-overflow: ellipsis; /* Optional: Adds '...' if truncated */
    white-space: normal; /* Ensures the text wraps within the container */
}

div.category{
    display: flex;
    gap: 10px;
}
div.category .badge{
    cursor: pointer;
}

.badge-blue, .badge-outer-blue{
    border-radius: 20px;
    border: 1px solid #375CB4;
    padding: 7px !important;
    font-weight: normal !important;
}
.badge-blue{
    color: white;
    background: #375CB4;
}
.badge-outer-blue{
    color: #375CB4;
}
/* Hide scrollbar for Chrome, Safari and Opera */
#daftar_soal_list::-webkit-scrollbar {
    display: none;
}
#daftar_soal_list{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.progress{
    height: 8px;
}
.progress-bar{
    background: #375CB4;
}
.progress-content{
    position: fixed; 
    bottom: 1rem; 
    width: calc(400px - 3rem); 
    background: #ECF3FF; 
    border-radius: 10px; 
    height: 100px;
    z-index: 2;
    padding: 1rem;
    margin: 0 1.5rem;
    border: 1px solid #375CB4;
}
.banner{
    height: 400px;
    width: 100%;
    background: white;
    border-radius: 20px;
    display: flex; /* Enable flexbox */
    align-items: center; /* Vertically center content */
    justify-content: flex-start;
    background-image: url("../asset_dore/img/bgimage.png");
    background-size: cover;
}

button.disabled{
    cursor: not-allowed;
}

.btn-blue{
    background: #375CB4;
    color: white;
    padding: 0px 10px !important;
    border-radius: 100px !important;
}
.btn-blue:hover{
    background: #375db4e9;
    color: white;
}
.bold{
    font-weight: bold;
}
.table th{
    background: none !important;
    border-color: #D9D9D9 !important;
}
.table:not(.table-striped,.treegrid) td{
    background: white !important;
    border-color: #D9D9D9 !important;
    vertical-align: middle;
}
.table td:not(.selected-cell), .table th{
    padding: 8px !important;
}
.form-row{
    margin-left: -15px;
    margin-right: -15px;
}
#main-dash input, #main-dash select, #main-dash textarea, #main-dash .selectize-input{
    border-radius: 2px !important;
    border: 2px solid #000000;
}
.add-row{
    background: #F8F8F8;
    border: 1px dashed #8B8A8D !important;
    border-radius: 5px !important;
    padding: 5px !important;
    height: unset !important;
    gap:6px;
    color: black;
}
#daftar_soal{
    height: calc(100vh - 180px); background: white; 
    width: 400px; 
    position: fixed;
    top: 175px;
    z-index: 1;
}
#daftar_soal_list{
    height: calc(100vh - 300px);overflow-y:auto;position: relative; padding-bottom: 100px;
}
#content_soal{
    margin-left: calc(400px + 15px); 
    margin-top: 60px;
    width: calc(100vw - 440px);
    z-index: 0;
}
.form-input .form-body{
    min-height: calc(100vh - 300px);
}
.form-input .form-body .card-body{
    background: #ECF3FF;
}
.view-body .card-body{
    background: #ECF3FF;
}
.ref-body .card-body{
    background: #ECF3FF;
}
.input-grid{
    width:100%;
}
.input-grid thead{
    background: #F1F3F4;
}
.table-view thead{
    background: #F1F3F4 !important;
}
.input-icon-date{
    margin-top:34px;margin-left:5px;position: absolute;top: 0;right: 25px;
}
.column-gap-25{
    column-gap: 0.25rem;
}

#form-tambah .selected-cell, .input-grid .selected-cell {
    padding: 0px !important;
}


/* TABLE */
#table-search
{
    border-collapse:collapse !important;
}

#table-search_filter label, #table-search_filter input
{
    width:100%;
}
.hidden{
    display: none;
}

.dataTables_wrapper .paginate_button.previous {
    margin-right: 0px; 
}

.dataTables_wrapper .paginate_button.next {
    margin-left: 0px; 
}

div.dataTables_wrapper div.dataTables_paginate {
    margin-top: 25px; 
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    justify-content: right; 
}

.dataTables_wrapper .paginate_button.page-item {
    padding-left: 5px;
    padding-right: 5px; 
}

.page-item.disabled .page-link{
    border:none !important;
    color: #374957 !important;
}

.page-item.active .page-link{
    border:1px solid #000000 !important;
    color: #374957 !important;
}

.dataTables_length select {
    border: 0;
    background: none;
    box-shadow: none;
    border:none;
    width:120px !important;
    transition-duration: 0.3s; 
}
table.dataTable,
.DTFC_LeftBodyWrapper,
.DTFC_Cloned {
    border-collapse: collapse !important;
}

div.dataTables_paginate{
    margin-top: 0px !important;
}

.dataTables_scrollBody thead th{
    padding: 0px 8px !important;
}

table.dataTable td{
    padding: 8px !important;
}
.table-striped tbody tr:nth-of-type(2n+1):not(.selected,.selected2) td{
    background-color: #f3f3f3 !important;
}
.table-striped tbody tr:hover{
    background-color: #d7d7d7 !important;
}
.selected2 td{
    background: #a6b4cd !important;
    color: unset !important;
}

.navigation-control{
    position: fixed !important;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0 !important;
    z-index: 3;
    width: 50%;
    display: flex;
    justify-content: space-between;
}
.navigation-control #btn-next, .navigation-control #btn-prev, .navigation-control #btn-prev-next {
    background-color: #4B59BF;
    border-radius: 100px !important;
    padding: 0 0.5rem !important;
    font-size: 12px !important;
    color:white;
}
.selectize-control.loading {
    animation: none !important;
    -webkit-animation: none !important;
    display: unset !important;
    width: inherit !important;
    top: unset !important;
    left: unset !important;
}

.btn-question {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    padding: 8px;
    border-radius: 10px;
    column-gap: 4px;
}
.btn-question:hover {
    background-color: #e4e4e7;
}
.search-item2{
    cursor:pointer;
    font-size: 16px;
    margin-left:5px;
    position: absolute;
    top: 2px !important;
    right: 10px;
    background: white;
    padding: 5px 0 5px 5px;
    z-index: 1;
    height:26px;
}

.readonly > .input-group-prepend{
    background: #e9ecef !important;
}

.readonly > .search-item2{
    background: #e9ecef !important;
    cursor:not-allowed;
    display:none;
}

.input-group > .form-control 
{
    border-radius: 2px !important;
}

.input-group.readonly > .form-control 
{
    background: #f3f3f3 !important;
}

.input-group-prepend > span {
    margin: 5px;padding: 0 5px;
    background: #e9ecef !important;
    border: 2px solid #000000 !important;
    border-radius: 0.25rem !important;
    color: var(--theme-color-1);
    font-weight:bold;
    cursor:pointer;
}

.readonly > .input-group-prepend > span {
    margin: 5px;padding: 0 5px;
    background: #f3f3f3 !important;
    border: 1px solid #000000 !important;
    border-radius: 0.25rem !important;
    color: black;
    font-weight:bold;
    cursor:pointer;
}

span[class^=info-name]{
    cursor:pointer;
    font-size: 12px;
    position: absolute; 
    top: 2px !important; 
    left: 52.36663818359375px;
    padding: 5px 0px 5px 5px; 
    z-index: 1; width: 180.883px;
    background:white;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height:22px;
}

.readonly > span[class^=info-name] {
    cursor:pointer;font-size: 12px;position: absolute; top: 3px; left: 52.36663818359375px; padding: 5px 0px 5px 5px; z-index: 2; width: 180.883px;background:white;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height:22px;
    background: #e9ecef !important;

}

.custom-file-label{
    border: 2px solid #000000;
    border-radius: 0px !important;
}

#navbar_isi{
    position: relative;
    min-height: calc(100vh - 180px);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #efefef;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    z-index: 2;
    visibility: hidden; /* Initially hidden */
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}
  
  /* .loading-overlay .spinner {
    margin-top: 50px;
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to {
        transform: rotate(360deg);
    }
  } */
  
  .loading-overlay.active {
    visibility: visible;
    opacity: 1;
  }
  
  
@media screen and (max-width: 1285px){
    #daftar_soal{
        width: 300px; 
    }
    #content_soal{
        margin-left: calc(300px + 15px); 
        width: calc(100vw - 340px);
    }
    .progress-content{
        width: calc(300px - 3rem); 
    }
    #card-template{
        left: 315px !important; 
        width: calc(100vw - 340px) !important;
    }
}