﻿#quickReplies {
    opacity: 0;
    transition: opacity 0.5s ease;
}
#quickReplies.show {
    opacity: 1;
}

.qr-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block;
    pointer-events: none;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    padding: 6px 12px;
    border: 1px solid #007bff;
    border-radius: 25px;
    background: #fff;
    color: #007bff;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.qr-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qr-btn:hover {
    background: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}
.pull-right {
    float: right;
}

.btn-apply {
    font-size: 12px !important;
    line-height: 1.5;
    padding: 4px 6px;
}

.card-body {
    padding: .75rem;
}

div.content-suggestion {
    background: #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 10px 0;
}

#run-review {
    display: flex;
    align-items: center;
}

.dropdown-toggle::after {
    margin-top: 0;
}

.btn-party {
    color: #212529;
    background-color: #fff;
    border-color: #ddd;
}

.form-control:focus, .btn.focus, .btn:focus {
    box-shadow: unset !important;
}

.dot-typing-api {
    left: -9898px !important;
}

div#partyList {
    max-height: 160px;
    overflow-y: auto;
}

.progress {
    height: 12px;
    border-radius: 4px;
}

.progress-bar {
    background-color: #007bff;
}

    .progress-bar.bg-info {
        background-color: #17a2b8;
    }

.card-header .fa-chevron-down {
    transition: transform 0.2s;
}

.card-header a.collapsed .fa-chevron-down {
    transform: rotate(180deg);
}
/* chart  */
.semi-circle-chart {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.semi-circle-chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.semi-circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 4;
}

.semi-circle {
    fill: none;
    stroke-width: 4;
    stroke: #007bff;
    stroke-linecap: round;
}

.chart-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .chart-text span {
        font-size: 18px;
        font-weight: bold;
    }

    .chart-text p {
        margin: 0;
        font-size: 12px;
        color: gray;
    }
/* Overlay page styling */
.overlay-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .overlay-page.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.overlay-content {
    padding: 20px;
    max-width: 600px;
    margin: 50px auto;
    background-color: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

    .overlay-content ul {
        list-style: none;
        padding: 0;
    }

        .overlay-content ul li {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #ccc;
        }
/*css table header missed*/
.missed-checks-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}

.missed-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .missed-tab .number {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: bold;
        width: 60px;
        height: 40px;
        border-radius: 20px;
        padding: 5px;
        margin-bottom: 5px;
    }

    .missed-tab p {
        margin: 0;
        font-size: 12px;
        font-weight: normal;
        color: #6c757d;
    }

/* Màu nền cho từng tab */
#tab-all .number {
    border: 2px solid #ddd;
    background-color: #ddd;
}

#tab-covered .number {
    background-color: rgba(102, 103, 171, 0.1);
    color: #6667ab;
}

#tab-missed .number {
    background-color: rgba(253, 122, 122, 0.1);
    color: #fd7a7a;
}

.missed-tab .number.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#tab-all .number.active {
    border: 1px solid #007bff;
}

#tab-covered .number.active {
    background-color: #6667ab;
    color: white;
}

#tab-missed .number.active {
    background-color: #fd7a7a;
    color: white;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 50;
    }

    100% {
        stroke-dasharray: 10.5, 50;
    }
}

i {
    cursor: pointer;
}

#backButton, #wrongTypeBackButton {
    font-size: 24px;
    color: #212529;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

    #backButton:hover, #wrongTypeBackButton:hover, .fa-arrow-right:hover {
        color: #0056b3;
        transform: scale(1.2);
    }

    #backButton:active {
        transform: scale(0.95);
    }

#accordionMissedChecks .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #accordionMissedChecks .card-header h6 {
        margin: 0;
        flex-grow: 1;
    }

.card-header a {
    color: inherit;
    text-decoration: none;
}

#accordionMissedChecks .card {
    margin-bottom: 10px;
    border: 1px solid #dee2e6 !important;
}

#accordionMissedChecks .card-header {
    border-bottom: 1px solid #dee2e6 !important;
}

.card, .checklist-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
}

    .card:hover, .checklist-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.icon-set {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-set-left {
    display: flex;
    justify-content: flex-start;
}

.icon-set-right {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.icon-set i {
    font-size: 14px;
    cursor: pointer;
    color: #6c757d;
}

    .icon-set i:hover {
        color: #007bff;
    }
/* css wrong type */

.checklist-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}

    .checklist-card h6 {
        font-weight: bold;
        margin-bottom: 5px;
        text-align: center;
    }

    .checklist-card p {
        margin: 0;
        color: #6c757d;
    }

.icon-wrong {
    justify-content: center !important;
    margin-top: 10px;
}

    .icon-wrong i {
        margin-right: 4px;
        margin-left: 14px;
    }

.icon-set .icon-number {
    font-size: 12px;
    color: #6c757d;
    margin-right: 15px;
}

#insights {
    margin-top: 18px;
}

    #insights .dot-typing {
        left: -9860px !important;
    }
/* css tab patent */
#patent .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}

#patent .custom-control-label::before {
    border-radius: 15px;
    height: 20px;
    width: 40px;
    background-color: #ccc;
    border-color: #ccc;
}

#patent .custom-control-label::after {
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s;
}

#patent .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(20px);
}

#patent .custom-control-input:focus {
    outline: none;
    box-shadow: none;
}

#title-input, #prompt-textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
}

#patent .btn-primary {
    background-color: #007bff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

    #patent .btn-primary:hover {
        background-color: #0056b3;
    }

#patent .form-group {
    margin-bottom: 15px;
}

textarea#prompt-textarea {
    resize: vertical;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.loading-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    text-align: center;
    width: 96%;
}

.spinner {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

    .spinner .dot {
        height: 8px;
        width: 8px;
        background-color: #007bff;
        border-radius: 50%;
        display: inline-block;
        animation: blink 1.4s infinite both;
    }

        .spinner .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .spinner .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

#chatTab {
    z-index: 999 !important;
}

#fileManagerModal .modal-content {
    overflow: auto;
}

#fileManagerModal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #dee2e6;
    padding: 15px;
    background-color: #f8f9fa;
}

    #fileManagerModal .modal-footer .row-buttons {
        display: flex;
        gap: 10px;
        flex: 1 1 auto;
    }

    #fileManagerModal .modal-footer .full-width-button {
        flex: 1 0 96%;
    }
/* popup template */
.floating-popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

    .floating-popup.show {
        right: -20%;
    }

.popup-content {
    padding: 20px;
}

.template-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .template-list li {
        padding: 10px;
        cursor: pointer;
        border-bottom: 1px solid #ddd;
    }

        .template-list li:hover {
            background-color: #f0f0f0;
        }

#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    transition: opacity 0.3s ease;
}

    #popupOverlay.show {
        display: block;
        opacity: 1;
    }

#fileManagerModal ul li {
    list-style: none;
}

#fileManagerModal ul {
    padding: 0 15px;
}

#patent .card-header {
    cursor: pointer;
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #ddd;
    border-bottom: unset !important;
}

#patent .card {
    border: unset !important;
}

#configHeader h6 {
    margin: 0;
}

#configHeader i {
    transition: transform 0.3s ease;
}

    #configHeader i.rotate {
        transform: rotate(180deg);
    }

.setting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.setting-overlay-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    width: 300px;
}

.close-setting-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

.btn-group-sm > .btn, .btn-sm {
    padding: .25rem .5rem;
    font-size: .6rem !important;
    line-height: 1.5;
    border-radius: .2rem;
}

.list-file-xml .list-group-item {
    position: relative;
    display: block;
    padding: 3px 10px !important;
    background-color: #fff;
}

.btn-upload-xml {
    font-size: 0.875rem;
}

/* Horizontal Slide Transition for Quick Actions */
.transition-slide {
    transition: max-width 0.3s ease, opacity 0.3s ease;
    max-width: 500px;
    opacity: 1;
}

.transition-slide.collapsed {
    max-width: 0;
    opacity: 0;
    margin-left: 0 !important;
}

#quickActionsToggle {
    transition: transform 0.3s ease;
}

#quickActionsToggle.collapsed {
    transform: translateY(-50%) rotate(180deg);
}

/* Modern Nav Tabs Styling */
.nav-tabs-modern {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs-modern .nav-item {
    margin-bottom: -2px;
}

.nav-tabs-modern .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs-modern .nav-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.nav-tabs-modern .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.nav-tabs-modern .nav-link i {
    font-size: 1rem;
}

.pdf-file-name {
    max-width: 36ch; /* responsive-ish limit; browser will clamp */
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-actions .badge {
    margin-right: 12px;
}

/* Step Indicator with Animation */
.step-indicator {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-number {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.step-check {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0);
}

/* Active state animation */
.step-indicator.completed .step-number {
    opacity: 0;
    transform: scale(0);
}

.step-indicator.completed .step-check {
    opacity: 1;
    transform: scale(1);
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Primary color for step 1 & 2 */
#step-indicator-claims .step-number,
#step-indicator-xml .step-number {
    background: #007bff;
}

/* Secondary color for step 3 */
#step-indicator-spec .step-number {
    background: #6c757d;
}