@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir-FD-WOL.eot');
    src: url('../fonts/Vazir-FD-WOL.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir-FD-WOL.woff') format('woff'),
    url('../fonts/Vazir-FD-WOL.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/Vazir-Bold-FD-WOL.eot');
    src: url('../fonts/Vazir-Bold-FD-WOL.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Vazir-Bold-FD-WOL.woff') format('woff'),
    url('../fonts/Vazir-Bold-FD-WOL.ttf') format('truetype');
    font-weight: bold;
}

/* Language */
.dropdown-language button.dropdown-item:focus,
.dropdown-language button.dropdown-item:active {
    background-color: transparent !important;
}

/* Theme */
.quote_btn-container button.dropdown-item:focus,
.quote_btn-container button.dropdown-item:active {
    background-color: transparent !important;
}

/* Hyperspectral */
.box-detection {
    overflow-y: auto;
    max-height: 60vh;
}

/* Input */
[data-bs-theme="dark"] input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #212529 inset !important;
    -webkit-text-fill-color: #f8f9fa !important;
    caret-color: #f8f9fa;
}

.no-focus {
    caret-color: transparent !important;
}

.no-focus:focus {
    outline: none !important;
}

.no-focus::-moz-focus-inner {
    border: 0;
}

.signin-background {
    position: relative;
    width: 100%;
    background-image: url('../images/auth/sign-background1.jpg');
    background-repeat: no-repeat;
}

.signin {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/auth/sign-in2.png');
    background-repeat: no-repeat;
    background-size: 140px 70px;
    background-position: 0 0;
    top: 0;
    left: 0;
    margin: 10px;
}

.signin-home {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    margin: 10px;
}

.signin-home i:hover {
    background: #54b4d322;
    color: #54b4d3 !important;
    border-color: #54b4d3 !important;
}

.signup {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/auth/sign-up.png');
    background-repeat: no-repeat;
    background-size: 140px 70px;
    background-position: 0 0;
    top: 0;
    left: 0;
    margin: 10px;
}

.clamp-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registrationPhone {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/auth/phone.png');
    background-repeat: no-repeat;
    background-size: 140px 70px;
    background-position: 0 0;
    top: 0;
    left: 0;
    margin: 10px;
}

.google-g {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;

    --g-blue: #4285F4;
    --g-red: #DB4437;
    --g-yellow: #F4B400;
    --g-green: #0F9D58;

    background: conic-gradient(
            var(--g-blue) 0deg 90deg,
            var(--g-red) 90deg 200deg,
            var(--g-yellow) 200deg 290deg,
            var(--g-green) 290deg 360deg
    );

    -webkit-background-clip: text;
    color: transparent;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.accordion-button::after {
    margin-left: 0 !important;
}

.tooltip {
    text-align: left !important;
    direction: ltr !important;
}


/* Message block*/
.alert .btn-close {
  left: 1rem;
  right: auto;
}

/* display */
.d-contents {
    display: contents !important;
}

.d-ruby {
    display: ruby !important;
}

.tab-pane > .active {
    display: contents !important;
}

/* Justify */
.justify-items-center {
    justify-items: center !important;
}


/* height with vh */
.vh-75 {
    height: 75vh !important;
}

.vh-70 {
    height: 70vh !important;
}

.vh-50 {
    height: 50vh !important;
}

.vh-25 {
    height: 25vh !important;
}

.vh-15 {
    height: 15vh !important;
}

.vh-10 {
    height: 10vh !important;
}

/* Font size */
.fs-7 {
    font-size: .8rem !important;
}

.fs-8 {
    font-size: .75rem !important;
}

/* Flip */
.flip-h {
    transform: scale(-1, 1);
}

a.hover-link:hover {
    color: #0dcaf0;
}

.blur {
    -webkit-filter: blur(1px);
    -moz-filter: blur(1px);
    -o-filter: blur(1px);
    -ms-filter: blur(1px);
    filter: blur(1px);
}

.ml-auto {
    margin-right: auto !important;
}

.mr-auto {
    margin-left: auto !important;
}

[type="email"], [type="number"], [type="tel"], [type="url"] {
    direction: rtl !important;
}

.info_section h5::before {
    content: "";
    position: absolute;
    top: 57% !important;
    right: -20px !important;
    width: 15px;
    height: 15px;
    background-color: #00c6a9;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.btn-subscribe-news {
    margin-right: -100px !important;
}

.swal2-container {
    z-index: 99999 !important;
}

/* css */
html {
    font-family: Vazir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%
}

body {
    font-family: Vazir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto;
}

.emoji-container {
    height: 150px;
}

.font-vazir {
    font-family: Vazir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.text-webkit-right {
    text-align: -webkit-left !important;
}

.text-webkit-left {
    text-align: -webkit-right !important;
}

/* auth box */
.auth-box {
    background-image: linear-gradient(to right, #f5f1fa, #fafffa);
}

.gradient-img {
    background: rgb(131, 58, 180);
    background: linear-gradient(90deg, rgb(196, 33, 255, 70%) 50%, rgb(124, 42, 255, 50%) 100%);
    display: flex;
}

.gradient-img img {
    opacity: 0.5;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    transition: opacity 500ms 0ms ease-in-out;
}

.auth-box:hover img,
.auth-box:focus img {
    opacity: 1
}

.cursor-pointer {
    cursor: pointer;
}

.country-list {
    max-height: 45vh;
    padding: 5px;
    min-height: 25vh;
    overflow: auto;
    overflow-x: unset;
}

input[name=phone-number] {
    padding: 5px !important;
    border: 0 !important;
    width: calc(10 * (1.6ch + 5px)) !important;
    letter-spacing: 15px !important;
    background: repeating-linear-gradient(to right, #a6a6a6 0 3ch, transparent 1ch calc(.95ch + 16px)) bottom/100% 1px content-box no-repeat !important;
    min-height: 40px !important;
    right: 5px;
    left: 5px;
}

input[name=phone-number]:focus {
    box-shadow: unset !important;
    background: repeating-linear-gradient(to right, #0D6EFD 0 3ch, transparent 1ch calc(.95ch + 16px)) bottom/100% 1px content-box no-repeat !important;
}

.btn-country:focus,
.btn-country:active {
    background-color: transparent !important;
    box-shadow: 0 0 0 0 transparent !important;
}

.btn-country:hover {
    background-color: transparent !important;
    border-bottom: 1px solid gray !important;
    border-radius: 0;
}

.phone-form {
    left: 0;
    opacity: 1;
}

.phone-number {
    width: 3vh;
    text-align: center;
    background: repeating-linear-gradient(to right, #a6a6a6 0 3ch, transparent 1ch calc(.95ch + 16px)) bottom/100% 1px content-box no-repeat !important;
    padding-bottom: 4px;
    margin: 0 1px;
}

.phone-number-error {
    width: 3vh;
    text-align: center;
    background: repeating-linear-gradient(to right, red 0 3ch, transparent 1ch calc(.95ch + 16px)) bottom/100% 1px content-box no-repeat !important;
    padding-bottom: 4px;
    margin: 0 1px;
}

.phone-number:hover,
.phone-number:focus-visible,
.phone-number:focus,
.phone-number:active,
.phone-number-error:hover,
.phone-number-error:focus-visible,
.phone-number-error:focus,
.phone-number-error:active {
    outline: none !important;
}

.phone-number.focus {
    background: repeating-linear-gradient(to right, #0D6EFD 0 3ch, transparent 1ch calc(.95ch + 16px)) bottom/100% 2px content-box no-repeat !important;
}

.btn-search-country {
    position: relative;
    right: -13px;
    top: -25px;
    z-index: 9;
}

.verification-form {
    left: -3%;
    opacity: 0;
}

.verify-code {
    width: 5.5vh;
    height: 5.5vh;
    margin: 4px;
}

.verify-code.focus {
    box-shadow: none !important;
    border: 2px solid #0D6EFDFF !important;
}

.info-sec {
    left: -5px;
}

.profile-picture {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    transition: 0.3s ease;
}

.camera-icon {
    bottom: 5%;
    right: 15%;
    transform: translate(25%, 25%);
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.camera-icon:hover {
    color: #0a53be;
}

@media (max-width: 576px) {
    .profile-picture {
        width: 80px;
        height: 80px;
    }

    .camera-icon {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
}

@media (min-width: 577px) and (max-width: 992px) {
    .profile-picture {
        width: 95px;
        height: 95px;
    }
}


/* spinner */
.fa-spin {
    position: relative;
    right: 2px;
    top: 2px;
}

/* resize able image */
.grid-page {
    box-sizing: border-box;
    margin: 0;
    height: 100%;
    width: 100%;
    background-size: 100px 100px;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 99px, #ccc 99px, #ccc 100px),
    repeating-linear-gradient(-90deg, transparent, transparent 99px, #ccc 99px, #ccc 100px);
}

.resizable {
    display: inline-block;
    background: black;
    resize: both;
    overflow: hidden;
    line-height: 0;
}

.resizable img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* action */
@keyframes show-zoom-in {
    0% {
        transform: scale(.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes just-zoom-in {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

@keyframes hide-zoom-out {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(.9);
        opacity: 0;
    }
}

@keyframes just-zoom-out {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* message */
.message.zoom-in {
    opacity: 1;
    transform: scale(1);
    animation: show-zoom-in 1s;
}

/* tab */
.nav-tabs,
.nav-link {
    --mdb-nav-tabs-link-color: rgba(var(--mdb-highlight-bg-color), 0.55) !important;
}

.nav-link:hover {
    background-color: #eeeeee44 !important;
}

/* subscriptions */
.subscriptions-box {
    max-width: 960px;
}


.subscription-box.zoom-in {
    transform: scale(1);
    animation: just-zoom-out 1s;
}

.subscription-box.zoom-in:hover {
    transform: scale(1.05);
    animation: just-zoom-in 1s;
}

.cart-icon.zoom-in {
    opacity: 1;
    transform: scale(1);
    animation: zoom-in 1s;
}


.form-check-input[type="checkbox"]:checked::after {
    margin-right: 4px !important;
}

/* Date */
span i.bi.bi-clock::before {
    font-size: large;
    margin-top: 10px !important;
    margin-left: 5px !important;
}

[placeholder]:focus::-webkit-input-placeholder {
    transition: text-indent 0.5s 0.5s ease;
    text-indent: -100%;
    opacity: 1;
}

input[class="date"],
textarea {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    outline: none;
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
}

input[class="date"]:focus,
textarea:focus {
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
}

input[class="date"] {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 2px solid rgb(5, 5, 5);
}

input[class="date"],
textarea {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    outline: none;
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
}

input[class="date"]:focus,
textarea:focus {
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
}

input[class="date"] {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 2px solid rgb(5, 5, 5);
}

span.input-group-text.bg-light.d-block {
    background-color: #fff !important;
    border: none !important;
}

.input-group-append {
    cursor: pointer;
}

i.fa.fa-calendar {
    padding: 4px;
}

.datepicker td,
th {
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
}

.datepicker {
    border: 1px solid black;
}

.datepicker-switch:hover,
.century:hover,
.decade:hover,
.year:hover,
.month:hover,
.day:hover {
    background: #a1a1a150 !important;
}

.century.focused,
.decade.focused,
.year.focused,
.month.focused,
.day.focused {
    background: #0d6efD !important;
}

/* Color emoji */
.awful:hover,
.awful.active {
    fill: #ef4623;
}

.poor:hover,
.poor.active {
    fill: #f68e20;
}

.ok:hover,
.ok.active {
    fill: #fecc08;
}

.good:hover,
.good.active {
    fill: #91e53e;
}

.awesome:hover,
.awesome.active {
    fill: #0ec12f;
}

/*
    START IMAGE PROCESSING DETECTION
*/
.container-canvas-spectral {
    width: 100% !important;
}

.canvas-spectral {
    width: 100% !important;
    height: 100% !important;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-area-inner {
    min-height: 200px;
    max-height: 400px; /* Add max height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent overflow */
}

.img-preview {
    max-width: 100%;
    max-height: 300px; /* Fixed maximum height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    border-radius: 4px;
    object-fit: contain; /* Ensure entire image is visible */
}

/* Updated uploaded image container styles */
.uploaded-image-container {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed height */
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.uploaded-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
}

/* Rest of your existing styles remain the same */
.upload-area.dragover {
    background: #e9ecef;
    border-color: #0d6efd;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    font-size: 0.875rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.uploaded-image-container:hover .image-overlay {
    transform: translateY(0);
}

#uploadedImages {
    min-height: 100px;
}

.image-placeholder {
    background: #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.upload-area.dragover {
    animation: pulse 1s infinite;
}

/*
* saffron-grid
*/

.saffron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    margin: 0 auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .saffron-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-cell {
    aspect-ratio: 1;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    min-height: 120px;
}

.grid-cell:hover {
    border-color: #0d6efd;
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grid-cell.processing {
    border-color: #ffc107;
    background: #fff3cd;
}

.grid-cell.real {
    border: 1px dashed #198754; /* Restored dashed style with thicker border */
    background: #d1e7dd;
    box-shadow: 0 0 12px 7px rgba(25, 135, 84, 0.8); /* Outer shadow */
    animation: pulse 0.5s ease-in-out;
    transition: all 0.3s ease;
}

.grid-cell.fake {
    border: 1px dashed #dc3545; /* Restored dashed style with thicker border */
    background: #d1e7dd;
    box-shadow: 0 0 12px 7px rgba(246, 72, 3, 0.8); /* Outer shadow */
    animation: pulse 0.5s ease-in-out;
    transition: all 0.3s ease;
}

.grid-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-cell .upload-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #6c757d;
}

.grid-cell .cell-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 9;
}

.grid-cell .status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.grid-cell.overlay {
    position: relative;
}

.grid-cell.overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0.5rem;
    backdrop-filter: blur(2px);
    z-index: 5;
}

.msg-predict {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: inline-block;
    text-align: center;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.pending {
    background-color: #dee2e6;
}

.status-indicator.processing {
    background-color: #ffc107;
}

.status-indicator.real {
    background-color: #198754;
}

.status-indicator.fake {
    background-color: #dc3545;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.grid-cell.processing {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .saffron-grid {
        padding: 1rem;
        gap: 0.75rem;
    }

    .grid-cell {
        min-height: 100px;
    }
}

.detection-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.grid-container {
    flex: 1;
    overflow-y: auto;
    min-height: 400px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.saffron-grid {
    height: 100%;
    min-height: 400px;
}

/*
    START IMAGE PROCESSING DETECTION
*/
/*
    START DROP ZONE
*/
.drop-zone {
    width: 100%;
    height: 150px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    color: #8a8a8a;
    border: 2px dashed var(--secondary-color, #3498db);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.drop-zone.drag-over {
    background-color: rgba(52, 152, 219, 0.2);
    border-color: var(--primary-color, #2c3e50);
}

.drop-zone.has-file {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.drop-zone-input {
    display: none;
}

.drop-zone-text {
    color: #6c757d;
    font-size: 1rem;
}

.drag-over {
    border: 2px dashed #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
}

/*
    END DROP ZONE
*/

/* sm up to Top */
@media (min-width: 360px) {
    .phone-number {
        width: 2vh !important;
    }

    .phone-number-error {
        width: 2vh !important;
    }
}

@media (min-width: 576px) {
    .phone-number {
        width: 2.5vh !important;
    }

    .phone-number-error {
        width: 2.5vh !important;
    }
}

/* md up to Top */
@media (min-width: 768px) {
    .phone-number {
        width: 3vh !important;
    }

    .phone-number-error {
        width: 3vh !important;
    }
}

/* lg up to Top */
@media (min-width: 992px) {
    .phone-number {
        width: 4vh !important;
    }

    .phone-number-error {
        width: 4vh !important;
    }
}

/* heatmap worker */

.heatmap-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 4px;
    margin: 10px 0;
    direction: rtl; /* تغییر جهت به RTL */
}

.heatmap-table th,
.heatmap-table td {
    padding: 2px;
    text-align: center;
}

.empty-cell {
    width: 30px;
}

.day-label {
    font-size: 10px;
    color: #666;
}

.month-label {
    font-size: 10px;
    color: #777;
    width: 30px;
}

.cell {
    width: 10px;
    height: 8px;
    border-radius: 1px;
    position: relative;
}

.cell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    right: 50%; /* جهت تغییر کرده برای راست‌چین */
    transform: translateX(50%);
    background-color: #333;
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 10px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 999;
}

.cell:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .heatmap-table {
        font-size: 9px;
    }

    .cell {
        width: 8px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .heatmap-table {
        font-size: 8px;
    }

    .cell {
        width: 6px;
        height: 5px;
    }
}

/* Pop up image */

.thumbnail-img {
    display: inline-block;
    width: 70px;
    height: 70px;
    cursor: zoom-in;
    border: 1px solid #ccc;
    transition: 0.2s;
}

.popup-img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    background: #ccc;
    border: 2px solid #aaa;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 200px;
    height: auto;
}

.popup-img img {
    min-width: 150px;
    min-height: 150px;
    display: inline-block;
    max-width: 180px;
    max-height: 180px;
}

/* Nav tab */
.nav-scroller {
    overflow-x: auto;
    white-space: nowrap;
}

.nav-link i {
    vertical-align: middle;
}

.nav-link.active,
.nav-link.active i {
    color: var(--bs-primary) !important;
}

.btn {
    text-transform: initial !important;
}


/* Organization */
:root {
    --menu-active-bg: #f8f9fa;
    --menu-active-border: #0d6efd;
    --menu-active-color: #212529;
}

[data-bs-theme="dark"] {
    --menu-active-bg: #343a40;
    --menu-active-border: #0d6efd;
    --menu-active-color: #ffffff;
}

.section-container {
    overflow-y: auto;
    min-height: 700px;
}

.avatar, .avatar-lg {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    margin-left: -10px;
}

.avatar-lg {
    width: 38px;
    height: 38px;
}

.avatar {
    width: 32px;
    height: 32px;
}

.header-row {
    display: flex;
    flex-direction: row-reverse;
    border-top: 1px solid rgba(220, 219, 219, 0.91);
    border-right: 1px solid rgba(220, 219, 219, 0.91);
    border-left: 1px solid rgba(220, 219, 219, 0.91);
    border-bottom: 1px solid rgba(220, 219, 219, 0.91);
    background-color: #f8f9fa;
    font-weight: 500;
}

.header-cell {
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.col-name {
    flex: 2;
    justify-content: flex-start;
}

.col-visibility, .col-members, col-roles, col-status {
    flex: 0;
    justify-content: flex-start;
}

.td-members {
    width: 40%;
}

.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0 0 12px 12px;
    overflow: auto;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(220, 219, 219, 0.91);
    border-left: 1px solid rgba(220, 219, 219, 0.91);
    border-bottom: 1px solid rgba(220, 219, 219, 0.91);
}

.search-box {
    position: relative;
    direction: rtl;
}

.search-box input {
    padding-left: 2.5rem;
    padding-right: 0.75rem;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #888;
}

.action-dropdown .dropdown-menu a.text-danger:hover {
    background-color: #f8d7da;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-height: 35px;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    cursor: text;
    direction: rtl;
}

.tag {
    display: flex;
    align-items: center;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 0.8rem;
    flex-direction: row-reverse;
}

.tag img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 0;
    object-fit: cover;
}

.tag .remove-tag {
    margin-right: 6px;
    margin-left: 0;
    cursor: pointer;
}

.tags-container input {
    border: none;
    outline: none;
    flex-grow: 1;
    min-width: 100px;
    padding: 0;
    text-align: right;
}

.suggestions-list {
    position: absolute;
    top: 90%;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: none !important;
    max-height: 250px;
    overflow-y: auto;
    padding-top: 5px;
    direction: rtl;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    flex-direction: row-reverse;
}

.suggestion-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 10px;
    margin-right: 0;
    object-fit: cover;
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}


.list-group-item.active {
    background-color: var(--menu-active-bg) !important;
    border-left: 4px solid var(--menu-active-border) !important;
    font-weight: bold;
    color: var(--menu-active-color) !important;
}

td.fit-content {
    width: 1%;
    white-space: nowrap;
}

.badge-access-level {
    position: absolute;
    left: 0;
    top: 7px;
}