﻿@font-face {
    font-family: Inter;
    src: url(../fonts/Inter-VariableFont_opszwght.ttf);
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

#kt_app_content {
    position: relative;
}

    #kt_app_content.loading::before {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background: hsl(0deg 0% 0% / 26%);
    }

.jsloader {
    position: absolute;
    background: #f9f9f9;
    top: 50%;
    left: 50%;
    z-index: 999;
    padding: 30px;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    transform: translate(-50%, -50%);
}

.jsloader-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: #7239ea;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rte-editor-h-80 .ql-editor {
    min-height: 80px;
}

.rte-editor-h-60 .ql-editor {
    min-height: 60px;
}

.table tr td p {
    margin-bottom: 0;
}

/* Question Timer */
#js-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.base-timer {
    position: relative;
    width: 120px;
    height: 120px;
}

.base-timer__svg {
    transform: scaleX(-1);
}

.base-timer__circle {
    fill: none;
    stroke: none;
}

.base-timer__path-elapsed {
    stroke-width: 7px;
    stroke: grey;
}

.base-timer__path-remaining {
    stroke-width: 7px;
    stroke-linecap: round;
    transform: rotate(90deg);
    transform-origin: center;
    transition: 1s linear all;
    fill-rule: nonzero;
    stroke: currentColor;
}

    .base-timer__path-remaining.green {
        color: rgb(65, 184, 131);
    }

    .base-timer__path-remaining.orange {
        color: orange;
    }

    .base-timer__path-remaining.red {
        color: red;
    }

.base-timer__label {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

/* question-item */

.question {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
}

    .question li {
        padding: 5px;
        border: 2px solid #ccc;
        border-radius: 8px;
        cursor: pointer;
    }

        .question li:has(input:checked) {
            border-color: #7239ea;
        }

.question-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .question-item input {
        margin-right: 5px;
    }

.question-content {
    font-size: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.question-index {
    background: rgb(233 233 233);
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.question-desc {
    user-select: none;
}

.question li:has(input:checked) .question-index {
    background: rgb(199, 176, 247);
}

.question-types:has(input:checked) {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background-color: var(--bs-primary-light);
}

ul.jstree-children ul.jstree-children ul.jstree-children a.jstree-anchor {
    font-size: 12px;
}


:root {
    --primary-color: #4680ff;
    --light-bg: #f8f9fa;
    --text-muted: #8892a8;
    --border-light: #e0e6f2;
}

.ticket-modal .modal-content {
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
}

.ticket-modal .modal-header {
    border: none;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.ticket-modal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.ticket-modal .modal-body {
    background-color: var(--light-bg);
    padding: 2rem;
}

.status-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .status-item small {
        color: var(--text-muted);
        font-size: 0.85rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .status-item .badge {
        width: fit-content;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .status-item p {
        margin: 0;
        font-weight: 600;
        color: #2c2e3e;
        font-size: 0.95rem;
    }

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

    .info-card small {
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 0.75rem;
    }

    .info-card i {
        color: var(--primary-color);
    }

    .info-card p {
        margin: 0;
        font-weight: 700;
        color: #2c2e3e;
        word-break: break-word;
    }

.complaint-section {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

    .complaint-section h6 {
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

.complaint-title {
    margin-bottom: 1rem;
}

    .complaint-title small {
        color: var(--text-muted);
        font-size: 0.85rem;
        font-weight: 500;
        display: block;
        margin-bottom: 0.5rem;
    }

    .complaint-title p {
        margin: 0;
        color: #2c2e3e;
        font-weight: 600;
    }

.complaint-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-section {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

    .timeline-section h6 {
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

.timeline-wrapper {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

    .timeline-item:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 60px;
        width: 2px;
        height: calc(100% + 1rem);
        background: linear-gradient(to bottom, var(--primary-color), var(--border-light));
    }

.timeline-dot {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(70, 128, 255, 0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.timeline-text {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.attachments-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.attachment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attachment-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(70, 128, 255, 0.2);
}

    .attachment-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(70, 128, 255, 0.3);
        color: white;
        text-decoration: none;
    }

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.spinner-border {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .status-group {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .ticket-modal .modal-body {
        padding: 1rem;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-dot {
        min-width: 40px;
        height: 40px;
    }

    .timeline-item:not(:last-child)::before {
        left: 19px;
    }
}

.table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}

.hover-primary-border:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 1px rgba(62, 151, 255, 0.15);
}

/* Pwa sevice style start*/
.pwa-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    padding: 12px 14px;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pwa-left {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.pwa-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.pwa-text {
    min-width: 0;
}

.pwa-title {
    font-weight: 700;
    font-size: 14px;
}

.pwa-sub {
    font-size: 12px;
    opacity: .7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-actions {
    display: flex;
    gap: 8px;
}

.pwa-btn {
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

    .pwa-btn.primary {
        background: #7239ea;
        color: #fff;
    }

.d-none {
    display: none !important;
}

/* Pwa sevice style end*/



/* Reduce jsTree indentation */
.jstree-default .jstree-wholerow {
    height: 24px;
}

.jstree-default li > .jstree-ocl {
    width: 10px;
}

.jstree-default .jstree-node {
    margin-left: 10px;
    /* default is usually 24px or more */
}

.jstree-default .jstree-children .jstree-node {
    margin-left: 10px;
}

.jstree-default .jstree-anchor {
    line-height: 24px;
    height: 24px;
    padding: 0 4px 0 2px;
}

/* Remove extra leaf node indent */
.jstree-default .jstree-leaf > .jstree-ocl {
    width: 25px !important;
}

/* Children container - no extra padding */
.jstree-default ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Root level nodes - start tight */
.jstree-default > .jstree-container-ul > .jstree-node {
    margin-left: 4px !important;
}

.jstree-default .jstree-icon:empty {
    width: 20px;
    height: 20px;
    line-height: 24px;
    margin-right: 3px;
}

.jstree-default .jstree-anchor {
    line-height: 22px;
    height: 22px;
    padding: 0 4px 0 2px;
    font-size: 10px !important;
    color: #333;
}

/* shrink entire icon safely */
.jstree-default .jstree-icon {
    transform: scale(0.75); /* 32px → 24px */
    transform-origin: center;
}

/* adjust spacing */
.jstree-default .jstree-anchor {
    line-height: 24px !important;
}

.jstree-default .jstree-node {
    min-height: 24px !important;
}