body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

a {
    color: #4d4d4d;
    text-decoration: none;
}

.truncated-path {
    width: 300px; /* Adjust the max width as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.prettified-json {
    background-color: #100e0e;
    border: 1px solid #564e4e;
    border-radius: 4px;
    padding: 10px;
    white-space: pre-wrap;
    color: #aad351;
    font-family: 'Rubik';
    font-size: 11px;
    width: 450px;
    /* width: -webkit-fill-available; */
}

.d-flex-1 {
    flex: 1;
}

.parent-content {
    display: flex;
    flex: 1;
}

.content {
    flex: 1;
    overflow-y: auto;
    background-color: #f4f4f4;
    position: relative !important;
}

.sticky .custom-header {
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 20;
}

.custom-input-group-text {
    padding: 5px 10px !important;
}

.custom-header {
    background-color: #efe5e5;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.input-group-text {
    border-right: none !important;
    background-color: #fff !important;
}

.input-group input {
    border-left: none !important;
    padding-left: 0;
}

.input-group input:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

.border-b1 {
    border-bottom: 1px solid #ece5e5;
}

.border-b1-v2 {
    border-bottom: 1px solid #3d3939;
}

.pointer {
    cursor: pointer;
}
.pointer:hover {
    text-decoration: underline;
}

.wrap {
    overflow-wrap:anywhere;
}

.line-height-15 {
    line-height: 17px;
}

.width-400 {
    width: 400px !important;
}
.width-300 {
    width: 300px !important;
}
.width-250 {
    width: 250px !important;
}
.width-180 {
    width: 180px !important;
}

/* dropdown dark */
.dropdown-menu-dark {
    background-color: #333 !important;
}

.dropdown-custom-width {
    width: 400px !important;
}

.dropdown-divider-custom {
    border-color: #3d3939 !important;
}

/* datepicker*/
.gj-datepicker input,
.gj-picker [role="navigator"] [role="period"],
.gj-picker td,
.gj-picker th { 
    font-family: 'Rubik', sans-serif !important;
}

.gj-picker [role="navigator"] [role="period"] {
    font-size: 20px !important;
    font-weight: 300 !important;
}

.gj-picker [role="navigator"] {
    text-align: center;
}

/* top navbar */
.navbar .router-link-active {
    color: #fff;
    background-color: #44474a;
}

/* pagination */
.pagination a.page-link {
    cursor: pointer;
}
.pagination {
    --bs-pagination-active-bg: #5a70c5 !important;
    --bs-pagination-font-size: 13px !important;
}

/* tables */
.table th {
    text-align: center;
    --bs-table-bg: #333 !important;
}
.table td {
    text-align: center;
    vertical-align: middle;
}
.table td.action .btn {
    display: none;
}
.table tr:hover td.action .btn {
    display: flex;
}
tr:nth-child(even) td {
    background-color: #fafafa !important;
}

/* buttons */
.btn-circle {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}
.btn-default {
    background-color: #e9d7d7 !important;
}
.btn-default:hover {
    background-color: #ddd !important;
}

/* alignments */
.align-left {
    text-align:left !important;
}
.align-right {
    text-align:right !important;
}
.center {
    text-align: center;
}
.middle {
    vertical-align: middle;
}

/* badge */
.top-right-15 {
    top: 20px;
    right: 0px;
}
.custom-font-badge {
    font-family: 'Rubik' !important;
    font-weight: 100;
}

/* typography */
.bold {
    font-weight: bold;
}
.font-style-normal {
    font-style: normal !important;
    font-weight: 300;
}
.font-vsmall {
    font-size: 12px !important;
}
.font-small {
    font-size: 15px;
}
.font-medium {
    font-size: 20px;
}
.font-large {
    font-size: 25px;
}
.uppercase {
    text-transform: uppercase;
}
.capitalize {
    text-transform: capitalize;
}

/* padding */

.pad-20 {
    padding: 20px;
}

.pad-40 {
    padding: 40px !important;
}
.pad-bot-20 {
    padding-bottom: 20px;
}

/* color */
.lgray {
    color: rgb(171, 162, 162) !important;
}
.gray {
    color: rgb(90, 88, 88) !important;
}
.red {
    color: rgb(239 59 59) !important
}
.green {
    color: rgb(37, 131, 37) !important;
}
.white {
    color: #fff !important;
}

.bg-red > td:nth-child(2) {    
    /* border-left: 2px solid rgb(234 151 151) !important; */
    background-color: rgb(234 151 151) !important;
}
.bg-green > td:nth-child(2) {    
    /* border-left: 2px solid rgb(27, 133, 27) !important; */
    background-color: rgb(106, 214, 106) !important;
}

/* table loading */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Higher z-index to overlay content */

}
/* .loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
} */

.loading-spinner {
    width: 64px;
    height: 64px;
    background-image: url("../image/64x64.png");
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%);
    animation: filter 2s ease;
}

@keyframes filter {
    0% {
        /* transform: scale(.8); */
        filter: grayscale(100%);
        opacity: .1;
    }
    100% {
        /* transform: scale(1); */
        filter: grayscale(0%);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blurred {
    filter: blur(4px); /* Apply a blur effect to the content */
}

/* no record */
.no-records {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    font-size: 50px;
    color: #333;
}

/* checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
}
.checkbox-label {
    margin-left: 8px;
    font-size: 14px;
}
.custom-checkbox {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
}
.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.custom-checkbox .checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #56585a;
    display: none;
}
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    display: block;
}

/* Gallery */
.is-uploaded {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-right: 70px solid transparent; /* Adjust the size of the triangle */
    border-top: 70px solid rgba(0, 0, 0, 0.7); /* Adjust the shade color */
    z-index: 1;
}
.is-uploaded-icon {
    position: absolute;
    top: 12px;
    left: 10px;
    z-index: 2;
    color: rgb(40, 200, 40);
}

.image-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.image-list-sub {
    flex: 1;
}

.image-list li {
    width: 210px;
    max-width: 210px;
    height: 380px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #f8e9e9;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.image-list img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-list .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

.image-list .image-overlay.white {
    background-color: rgba(255, 255, 255, 1);
    padding: 5px 10px 0;
}

.image-list .buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

.image-list li:hover .buttons {
  opacity: 1;
}

.image-list .image-title {
    margin: 0; 
}

.loading-indicator-img {
    width: 210px;
    height: 380px;
    background-color: #333;
    animation: pulsate 1s infinite alternate;    
}

.error-indicator-img {
    width: 210px;
    height: 380px;
    background-color: #333;
    background-image: url('../image/64x64.png');
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%);
}

@keyframes pulsate {
    0% {
        transform: scale(1); /* Start with normal size */
        opacity: 0.7; /* Start with a slightly lower opacity */
    }
    100% {
        transform: scale(1.1); /* End with a slightly larger size */
        opacity: 1; /* End with full opacity */
    }
}

/* groups and downloads in source page */
.download-list, 
.group-list {
    background-color: #f4f4f4;
    overflow-y: auto;
    position: relative;
    transition: width 0.1s;
    width: 0px;
    padding: 0px;
    border-left: 5px solid #313131;
}

.download-list.expand,
.group-list.expand {
    width: 600px;
    transition: width 0.1s;
}

.download-list-title,
.group-list-title {
    border-bottom: 1px solid #313131;
    padding: 20px 20px 40px;
    background-color: #313131;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.download-list h4 {
    width: 70% !i;
}

.group-list-title h2 {
    width: 50% !important;
}

.download-list .image-list {
    padding-left: 20px !important;
}

.download-list .image-list li {
    width: 260px !important;
    max-width: 260px !important;
    height: 400px !important;
}
.download-list .image-list li .error-indicator-img,
.download-list .image-list li .loading-indicator-img {
    width: 260px !important;
    height: 400px !important;
}

.group-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    padding: 0 20px 20px;
}

.group-list ul li {
    width: 100%;
    background-color: #efe5e5;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.group-list ul li:hover {
    background-color: #ddd;
}

.group-list .group-title {
    cursor: pointer;
}

.group-list .member-list .each-member:hover {
    cursor: pointer;
    background-color: #0f4e79 !important;
}

/* upload */
.upload-request-list {
    background-color: #333;
    overflow-y: auto;
    position: relative;
    transition: width 0.1s;
    width: 0px;
    padding: 0px;
}

.upload-request-list.expand {
    width: 400px;
    transition: width 0.1s;
    padding: 20px;
}

.upload-request-list-title {
    border-bottom: 1px solid #3d3939;
    padding-bottom: 20px;
}

.upload-request-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    padding: 0px;
}

.upload-request-list ul li {
    width: 100%;
    background-color: #efe5e5;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(1, 1, 1, 0.5);
    padding: 10px;
}

.upload-request-list-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.upload-request-list-ea {
    width: 45%;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
    overflow-wrap: break-word;
    z-index: 9999;
}
.toast.show {
    opacity: 1;
}

/* custom select */
.form-select {
    appearance: none;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-select option[disabled] {
    display: none;
}

/* sidebar */
.app-container {
    display: flex;
    height: 100vh;
}
.custom-container {
    display: flex;
    flex: 1;
}
.toggle-sidebar {
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}
.toggle-sidebar i {
    font-size: 10px !important;
}
.toggle-sidebar i:hover {
    color: #a2f5c6;
}
.sidebar {
    width: 200px;
    background-color: #333;
    color: white;
    padding: 20px;
    transition: width 0.1s;
    position: relative;
}
.sidebar.collapsed {
    width: 75px;
    /* overflow: hidden; */
    transition: width 0.1s;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 5px;
}

.sidebar i {
    font-size: 15px;
}

.sidebar span {
    display: inline-block;
}

.sidebar a {
    display: flex;
    align-items: center;
    vertical-align: middle;
    text-decoration: none;
    color: #ddd;
    padding: 10px;
    border-radius: 5%;
}

.sidebar a.router-link-active {
    background-color: #433a3a;
}

.sidebar.collapsed a i {
    color: #fff;   
}

.sidebar a i {
    font-size: 15px;
    margin-top: 3px;
    width: 20px;
    color: #726767;
    text-align: center;
    height: 18px;
    vertical-align: middle !important;
}

.sidebar.collapsed a span,
.sidebar.collapsed li:nth-child(1) {
    display: none;
}

.sidebar li:nth-child(1) img {
    border-radius: 50%;
    width: 96px;
    height: 96px;
}


/* autocomplete */
.autocomplete {
    position: relative;
    display: inline-block;
}
.autocomplete input {
    width: 400px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 999;
}
.autocomplete-list li {
    padding: 8px 10px;
    cursor: pointer;
}
.autocomplete-list li:hover {
    background-color: #f0f0f0;
}

/* login */
.login-container h1 {
    font-weight: 500;
}
.login-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 300px;
    margin-top: -150px;
    margin-left: -250px;
}

/* modal */
.modal-header-custom {
    border-bottom: solid 1px #ead7d7 !important;
    justify-content: center !important;
}

.modal-body-custom {
    background-color: #efe0e0 !important;
}

.modal-footer-custom {
    border-top: solid 1px #ead7d7 !important;
}

.modal-footer-custom-centered {
    border-top: solid 1px #ead7d7 !important;
    justify-content: center !important;
}

/* sweetalert custom */

.swal2-confirm,
.swal2-cancel {
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
}

/* comment/note */

.note-box {
    /* border: 1px solid #e2dede; */
    padding: 3px 10px;
    width: fit-content;
    float: left;
    text-align: center;
    border-radius: 3px;
    background-color: #564d4d;
    color: #fff;
}