﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.chatbot-body {
    
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 768px;
    overflow: auto;
}
.chatbot-body * {
    font-family: "Poppins", sans-serif !important;
}
:focus-visible {
outline: none !important;
}
img {
    max-width: 100%;
}
.chatbot-header {
    display: flex;
    background: #000b33;
    padding: 10px;
    position: relative;
}

.chatbot-header-profile {
    margin-left: auto;
    display: flex;
}

.chatbot-header-logo {
    flex: 1;
    justify-content: center;
    display: flex;
}

.chatbot-header-logo>img {
    max-height: 40px;
}
.chatbot-header-profile-avtar {
    max-width: 32px;
    height: auto;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.chatbot-header-profile-avtar>img {
    border-radius: 32px;
    max-width: 100%;
}
.chatbot-container {
    display: flex;
    flex: 1;
    overflow: auto;
    background: #fff;
}
.chatbot-sidebar {
    width: 250px;
    position: relative;
    transition: width 0.6s;
    margin: 24px;
}
.chatbot-sidebar.collapsed {
    width: 0px;
}
.chatbot-sidebar>.chatbot-sidebar-wrapper {
    padding: 0px;
    overflow: hidden;
    height: 100%;
    border-radius: 8px;
    border-top-right-radius: 0px;
}

.chatbot-sidebar-inner{
    min-width: 216px;
    padding: 16px;
    border: 1px solid #D0D5DD;
    height: calc(100% - 34px);
    border-radius: 8px;
    border-top-right-radius: 0px;
    background-color: #F9FAFB;
    overflow-y:auto;
}
.chatbot-sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 6px 0px;
    cursor: pointer;
    margin: 4px 0px;
}

.chatbot-sidebar-nav-item-icon>img {
    max-width: 24px;
    max-height: 24px;
}

.chatbot-sidebar-nav-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    margin-right: 6px;
}

.chatbot-sidebar-nav-item:hover .chatbot-sidebar-nav-item-name {
    color: #000b33;
}
.chatbot-sidebar .chatbot-sidebar-header {
    font-size: 18px;
    padding: 12px 10px;
    background: hsl(222deg 91% 18% / 10%);
    margin: 0px;
    font-weight: bold;
    border-radius: 6px;
}
.chatbot-sidebar ul {
    list-style: none;
    padding: 0;
}
.chatbot-sidebar li {
    padding: 8px 0;
}
.chatbot-content {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
}
.chatbot-content-body {
    flex: 1;
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding-bottom: 32px;
    flex-grow: 1;
}
.chatbot-content-message{
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    justify-content: end;
}
.message-box {
    width: 70%;
    max-width: 100%;
    align-self: flex-start;
    display: flex;
    margin-top: 12px;
}
.message-box.blue {
    text-align: right;
    align-self: flex-end;
    flex-direction: row-reverse;
}
.message-box.blue span.chatitem-message-text {
    background: #041D59;
    color: #fff;
    margin-right: 8px;
    text-align: left;
    border-top-left-radius: 8px;
    border-top-right-radius: 0px;
    width: -webkit-calc(100% - 21px);
    width: -moz-calc(100% - 21px);
    width: calc(100% - 21px);
}
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    margin-bottom: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ccc;
}
.footer input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.footer button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.file-input__input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
  }
  
  .file-input__label {
    cursor: pointer;
    max-height: 28px;
    cursor: pointer;
    display: flex;
  }
  
  .file-input__label img {
    max-height: 20px;
  }
  .chatbot-content-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    flex-direction: column;
    padding-right: 0px;
    margin-right: 20px;
}

.chatbot-input {
    flex: 1;
    display: flex;
}

.chatbot-input>textarea {
    width: -webkit-fill-available;
    background: transparent;
    border: 0px;
    font-size: 14px;
    font-family: 'Poppins';
    flex: 1;
    padding: 12px;
}

.chatbot-mic>img,.chatbot-img>img {
    max-height: 20px;
    width:20px;
    cursor: pointer;
}
button.chatbot-button {
    font-size: 18px;
    background: #041d59;
    border: 1px solid #041d59;
    color: #fff;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
}
button.chatbot-button.secondary{
    color: #041d59;
    border: 1px solid #041d59;
    background-color: transparent;
}
button.chatbot-button>img {
    width: 20px;
}
.chatbot-content-suggestion {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: auto;
    flex: none; 
    /*margin-bottom: 20px;*/
}

.chatbot-content-suggestion-item {
    font-size: 14px;
    margin-right: 8px;
    background: #E9F6FC;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}

.chatbot-sidebar-collapse {
    position: absolute;
    max-width: 24px;
    background: #f9fafb;
    display: flex;
    padding: 8px 2px;
    /*z-index: 999;*/
    top: 0px;
    width: 24px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    border: 1px solid #D0D5DD;
    right: -29px;
}
.chatbot-content-message {
    flex: 1;
    display: flex;
    /*flex-direction: column-reverse;*/
    justify-content: flex-start;
}
.chatbot-sidebar-nav-item-name {
    color: #515B70;
}

.chatbot-sidebar-nav {
    margin-top: 16px;
}
.chatbot-content-footer-inner {
    border: 1px solid #D0D5DD;
    flex-direction: column;
    border-radius: 8px;
    background: #F9FAFB;
    display: flex;
    width: 100%;
}
.chatbot-textarea-wrapper {
    width: 100%;
}
.chatbot-action-wrapper {
    display: flex;
    flex-direction: row;
    width: -webkit-fill-available;
    margin: 12px;
    margin-top: 0px;
}

.chatbot-action-left {
    display: flex;
}

.chatbot-action-right {
    display: flex;
    margin-left: auto;
}
.chatbot-attach {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.chatbot-mic,.chatbot-img {
    display: flex;
    align-items: center;
    margin-right: 6px;
}
.chatbot-send {
    margin-right: 8px;
    border-right: 1px solid #d0d5dd;
    padding-right: 12px;
}
.chatitem-user {
    width: 36px;
    height: 36px;
    flex: none;
    margin-right: 8px;
}

.chatitem-user>img {
    max-width: 100%;
    border-radius: 100%;
}

.chatitem-message-text {
    display: block;
    padding: 10px;
    max-width: 100%;
    background: #F2F4F7;
    border-radius: 8px;
    border-top-left-radius: 0px;
    color: #515B70;
    width: 100%;
    margin-bottom: 4px;
}

.chatitem-message {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    width:100%;
}

.chatitem-message-time {
    color: #98A2B3;
    font-size: 12px;
    font-weight: 300;
    display: flex;
    align-items: center;
}
.chatbot-timestamp {
    display: block;
    position: relative;
    color: #98A2B3;
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 40px;
    margin-top: 24px;
}
.chatbot-timestamp>.text {
    z-index: 9;
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}
.chatbot-timestamp:before {
    content: '1';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 1px;
    color: transparent;
    background: #EAECF0;
}
.chatbot-timestamp>.text>span {
    display: block;
    background: #fff;
    padding: 0px 4px;
}
.chatitem-message-time>span>img {
    width: 16px;
    height: 16px;
}
.chatitem-message-time>span {
    display: flex;
    margin-left: 4px;
}


.typing-animation {
    display: block;
    justify-content: left;
    align-items: center;
}

    .typing-animation .chatitem-message .chatitem-message-text span {
        width: 10px;
        height: 10px;
        margin: 0 3px;
        background-color: #333333;
        border-radius: 50%;
        display: inline-block;
        animation: blink 1.5s infinite;
    }

        .typing-animation .chatitem-message .chatitem-message-text  span:nth-child(2) {
            animation-delay: 0.2s;
        }

.typing .chatitem-message .chatitem-message-text span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0.3;
    }

    40% {
        opacity: 1;
    }
}


.hidden,.testing{
    display:none !important;
}

.mem-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(145deg, #28C76F, #20A15E);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    position: relative;
    right: 8px;
}

.mem-button i {
    margin-right: 8px;
    font-size: 18px;
}

.mem-button:hover {
    background: linear-gradient(145deg, #20A15E, #1A8C50);
    transform: translateY(-2px);
}

.mem-button:disabled {
    background: #A0D0A0;
    color: #D0E5D0;
    cursor: not-allowed;
    transform: none;
}

.floating-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    background: url('images/seqagents_logo.png') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

.save-memory.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
    background: #f1f1f1;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    gap: 5px;
}

.file-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
}

    .file-item span {
        margin-right: 10px;
    }

.remove-file {
    cursor: pointer;
    color: red;
    font-weight: bold;
    margin-left: 5px;
}
}


.chatbotpopupoverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

#chatBotPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: calc(100% - 173px);
    padding-top: 50px;
    min-width: 70%;
    will-change: transform;
}

#chatBotPopupHeader {    
    user-select: none;
}

#chatBotPopup.drag-lock {
    margin: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    /* optional safety caps */
    max-width: 100vw;
    max-height: 100vh;
}

.save-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 16px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    max-width: 90%;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
    
    .save-toast.info {
        background-color: #17a2b8;
        color: #fff;
    }

    .save-toast.success {
        background-color: #28a745;
        color: #fff;
    }

    .save-toast.warning {
        background-color: #ffc107;
        color: #1f1f1f;
    }

    .save-toast.error {
        background-color: #dc3545;
        color: #fff;
    }

    .save-toast.show {
        opacity: 1;
    }


#chatBotPopup h2 {
    margin-top: 0;
    position: absolute;
    top: 18px;
    width: 96%;
    cursor: move;
}

#chatBotClosePopup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
#chatBotPopup #chatBotPopupContent {
    overflow: auto;
    display: block;
    max-height: calc(100vh - 100px);
    padding-right: 5px;    
}



#chatBotPopupContent form {
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;   
    min-width: 500px;
    padding-left:0px;
    padding-right:0px;
}

#chatBotPopupContent form div {
    margin-bottom: .2rem;
    display: flex;
    flex-direction: column;
}

#chatBotPopupContent label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
}

#chatBotPopupContent input[type="text"] {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    input[type="text"]:focus {
        border-color: #0077cc;
        outline: none;
    }

#chatBotPopupContent button[type="submit"] {
    padding: 8px 16px;
    background-color: #0077cc;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chatBotPopupContent button[type="submit"]:hover {
    background-color: #005fa3;
}

.parse-link {
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #007bff;
    background-color: #fff;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    width:100% !important;
}

    .parse-link:hover {
        background-color: #007bff;
        color: #fff;
    }

.form-options {
    padding: 1rem;
    min-width: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 0px;
    box-sizing: border-box;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
}
.mt-10 {
    margin-top:10px;
}

.row {
    display: flex; /* enable flexbox */
    flex-wrap: wrap; /* allow wrapping on smaller screens */    
}

.col-md-6 {
    position: relative;
    width: 100%; /* default on small screens */
    
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
.form-container {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding:10px;
}
.p-10 {
    padding:10px;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-row {
    display: flex !important;
    gap: 10px;
    flex-direction: row !important;
}

    .top-row .btn {
        flex: 1;
    }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.btn-primary {
    background: #007bff !important;
    color: white;
}

    .btn-primary:hover {
        background: #0056b3;
        transform: translateY(-1px);
    }

.btn-success {
    background: #28a745 !important;
    color: white;
}

    .btn-success:hover {
        background: #1e7e34;
        transform: translateY(-1px);
    }

.btn-info {
    background: #17a2b8 !important;
    color: white;
}

    .btn-info:hover {
        background: #138496;
        transform: translateY(-1px);
    }

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.half-width {
        grid-column: span 1;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        min-width: 200px;
    }
}

.api-call {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: "Fira Code", Consolas, monospace;
    font-size: 14px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow-x: auto;
}

/* Method badges */
.api-method {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    color: white;
}

    .api-method.get {
        background: #059669;
    }
    /* green */
    .api-method.post {
        background: #2563eb;
    }
    /* blue */
    .api-method.put {
        background: #d97706;
    }
    /* orange */
    .api-method.delete {
        background: #dc2626;
    }
/* red */

/* URL */
.api-url {
    color: #059669;
    font-weight: 500;
}

.llm_resp {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 10px 10px 10px 10px; /* leave space for icon */
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0c4a6e;
    position: relative;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 8px 0;
    line-height: 1.4; /* consistent vertical rhythm */
}

    /* 🚚 truck icon aligned vertically */
    .llm_resp::before {
 /*       content: "🚚";*/
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-52%); /* small tweak for emoji alignment */
        font-size: 18px;
    }

.llm_json_inline {
    background: #1e293b; /* dark background */
    color: #e2e8f0;
    font-family: "Fira Code", Consolas, monospace;
    font-size: 13px;
    border-radius: 6px;
    padding: 6px 10px;
    display: inline-block; /* hug content */
    white-space: normal; /* force single line */
    overflow-x: auto; /* scroll if too long */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

    .llm_json_inline .key {
        color: #60a5fa;
    }
    /* blue */
    .llm_json_inline .str {
        color: #34d399;
    }
/* green */

.llm_prompt {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe); /* soft blue gradient */
    color: #1e3a8a;
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px 12px 44px; /* space for icon */
    border-radius: 18px;
    display: inline-block;
    max-width: 75%;
    position: relative;
    margin: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

    /* bubble tail */
    .llm_prompt::after {
        content: "";
        position: absolute;
        left: 22px;
        bottom: -10px;
        border-width: 10px;
        border-style: solid;
        border-color: #bfdbfe transparent transparent transparent;
    }

    /* 🚚 icon inside bubble */
    .llm_prompt::before {
        /*content: "🚚";*/
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
    }

.ask-again-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .ask-again-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .ask-again-btn:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
        transform: translateY(-2px);
    }

        .ask-again-btn:hover::before {
            left: 100%;
        }

    .ask-again-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }

    .ask-again-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
    }
    
    .ask-again-btn.minimal {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        box-shadow: none;
    }

        .ask-again-btn.minimal:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            transform: none;
        }

.use-again-btn {
    background: linear-gradient(135deg, #5fa8ff 0%, #7a5fff 100%);
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(95, 168, 255, 0.30);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .use-again-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .use-again-btn:hover {
        background: linear-gradient(135deg, #539cff 0%, #6f56ff 100%);
        box-shadow: 0 6px 25px rgba(95, 168, 255, 0.40);
        transform: translateY(-2px);
    }

        .use-again-btn:hover::before {
            left: 100%;
        }

    .use-again-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(95, 168, 255, 0.30);
    }

    .use-again-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(95, 168, 255, 0.50);
    }

    /* minimal variant to match your pattern */
    .use-again-btn.minimal {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        box-shadow: none;
    }

        .use-again-btn.minimal:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            transform: none;
        }


.memory-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;    
}

    .memory-table thead {
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        background: linear-gradient(to right, #64748b, #475569);
    }

        .memory-table thead th {
            padding: 8px 10px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
        }

/*            .memory-table thead th:not(:last-child)::after {
                content: '';
                position: absolute;
                right: 0;
                top: 25%;
                height: 50%;
                width: 1px;
                background: rgba(255, 255, 255, 0.2);
            }*/

    
    .memory-table tbody tr {
        transition: all 0.2s ease;
        border-bottom: 1px solid #e5e7eb;
    }

        .memory-table tbody tr:hover {
            background: #f8fafc;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .memory-table tbody tr:last-child {
            border-bottom: none;
        }

    .memory-table tbody td {
        padding: 8px 10px;
        vertical-align: middle;
        font-size: 14px;
        color: #374151;
        line-height: 1.5;
    }
    
    .memory-table input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: #667eea;
        cursor: pointer;
        margin: 0;
    }
    
    .memory-table tbody td:nth-child(2) {
        font-weight: 500;
        color: #1f2937;
        max-width: 400px;
        word-wrap: break-word;
    }
    
    .memory-table tbody td:nth-child(3) {
        color: #6b7280;        
        font-size: 13px;
        white-space: nowrap;
    }
    
    .memory-table .action-button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    }

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.action-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .memory-table {
        font-size: 12px;
    }

        .memory-table thead th,
        .memory-table tbody td {
            padding: 12px 16px;
        }

            .memory-table tbody td:nth-child(2) {
                max-width: 200px;
            }
}

.memory-table tbody tr.empty-state td {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
}


.memory-table.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .memory-table.loading tbody::after {
        content: 'Loading...';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #6b7280;
        font-weight: 500;
    }

.memory-table tbody tr.selected {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

    .memory-table tbody tr.selected td {
        color: #1e40af;
    }

#responseTabs {
    margin-top: 10px;
    font-family: sans-serif;
}
    
    #responseTabs .tab-headers {
        display: flex;
        border-bottom: 1px solid #ddd;        
    }

    #responseTabs .tab-btn {
        background: #f1f3f5;
        border: 1px solid #ccc;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
        padding: 6px 14px;
        margin-right: 4px;
        cursor: pointer;
        font-size: 13px;
        color: #333;
        transition: background 0.2s ease, color 0.2s ease;
    }

        #responseTabs .tab-btn:hover {
            background: #e6e9ec;
        }

        #responseTabs .tab-btn.active {
            background: #fff;
            border-color: #bbb;
            font-weight: 600;
            color: #000;
        }
    
    #responseTabs .tab-content {
        background: #fff;
        border: 1px solid #bbb;
        border-radius: 0 6px 6px 6px;
        padding: 8px;
    }

.ag-theme-alpine {
    height: calc(100vh - 400px) !important;
    width: 100%;
}

.process-btn {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #4a6fa5;
    border-radius: 6px;
    background-color: #4a6fa5;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .process-btn:hover {
        background-color: #3b5a84;
        border-color: #3b5a84;
    }

    .process-btn:active {
        background-color: #324b6e;
    }

.ag-filter-wrapper {
    background-color: unset !important;
    padding: unset !important;
    min-width: unset !important;
}
.ag-select, .ag-filter-condition, .ag-input-wrapper, .ag-picker-field-wrapper, .ag-filter-condition-operator {
    flex-direction: unset !important;
}
.ag-input-field-input {
    padding-left: calc(var(--ag-spacing) * 1.5 + 12px) !important;
    font-size: inherit !important;
    padding-top:2px !important;
    padding-bottom:2px !important;
    padding-right:12px !important;
}


.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.wave-style {
    margin-right: 0px;
    padding-top: 5px;
    padding-bottom: 0px;
    padding-left: 2px;
    padding-right: 2px
}

.chatBotPopupContent pre {
    white-space: break-spaces;
}

.close-option {
    display:unset !important;
}

.chatbot-recording {
    display: flex;
    align-items: center;
}

.chatbot-recording > img {
    cursor: pointer;
    margin-right: 12px;
}
.chatbot-mic-input {
    width: 12px;
    height: 12px;
    margin-left: 16px;
    margin-right: 5px;
}

.sound-bar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.equalizer {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 22px;
}

.bar {
    width: 1px;
    /*    background: linear-gradient(180deg, #00c9ff, #92fe9d);*/
    background: #808080;
    border-radius: 6px;
    animation: bounce 1s ease-in-out infinite;
    transform-origin: bottom center;
}

    .bar:nth-child(odd) {
        animation-duration: 1.4s;
    }

    .bar:nth-child(even) {
        animation-duration: 1.6s;
    }

    .bar:nth-child(3n) {
        animation-duration: 1.8s;
    }

    .bar:nth-child(4n) {
        animation-duration: 1.9s;
    }

    .bar:nth-child(5n) {
        animation-duration: 1.5s;
    }

    .bar:nth-child(1n) {
        animation-delay: 0.05s;
    }

    .bar:nth-child(2n) {
        animation-delay: 0.1s;
    }

    .bar:nth-child(3n) {
        animation-delay: 0.15s;
    }

    .bar:nth-child(4n) {
        animation-delay: 0.2s;
    }

    .bar:nth-child(5n) {
        animation-delay: 0.25s;
    }

@keyframes bounce {
    0% {
        height: 20%;
    }

    50% {
        height: 100%;
    }

    100% {
        height: 30%;
    }
}

.chatbot-action-middle {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.stopwatch {
    color: #808080;
    font-size: 15px;
    margin-right: 8px;
    width: 38px;
}

.display-none{
    display:none !important;
}

button.chatbot-button-recording {
    font-size: 18px;
    background: #2E8B57;
    border: 1px solid #2E8B57;
    color: #fff;
    border-radius: 100%;
    padding: 6px;
    cursor: pointer;
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
    margin-left: 22px;
}

.chatitem-message-text table,
.chatitem-message-text th,
.chatitem-message-text td {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.chatitem-message-text table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
}

.chatitem-message-text th,
.chatitem-message-text td {
    background: #fff !important;
}

.chatitem-message-text table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    border: 1px solid #d6dbe1 !important;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.chatitem-message-text th,
.chatitem-message-text td {
    padding: 10px 12px !important;
    border-right: 1px solid #d6dbe1 !important;
    border-bottom: 1px solid #d6dbe1 !important;
    vertical-align: top;
    word-break: break-word;
}

.chatitem-message-text tr > *:last-child {
    border-right: 0 !important;
}

.chatitem-message-text tbody tr:last-child td {
    border-bottom: 0 !important;
}

.chatitem-message-text th {
    background: linear-gradient(#f8fafc, #eef2f6) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 1px solid #cfd6de !important;
    vertical-align: middle;
}

.chatitem-message-text tbody tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.chatitem-message-text tbody tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.chatitem-message-text tbody tr:nth-child(even):not(:first-child) td {
    background: #fbfdff;
}

.chatitem-message-text tbody tr:not(:first-child):hover td {
    background: #f2f6fb;
}

#responseTabs .tab-headers {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    border-bottom: 1px solid #e4e7ec !important;
    margin-bottom: 10px !important;
}

#responseTabs .tab-btn {
    background: #fff !important;
    border: 1px solid #e4e7ec !important;
    border-bottom: none !important;
    border-radius: 7px 7px 0 0 !important;
    padding: 8px 16px !important;
    color: #667085 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: 0.2s ease !important;
}

    #responseTabs .tab-btn:hover {
        color: #6246ea !important;
        background: #faf9ff !important;
    }

    #responseTabs .tab-btn.active {
        color: #5b3df5 !important;
        font-weight: 600 !important;
        box-shadow: inset 0 -2px 0 #5b3df5 !important;
    }

#responseTabs .pdp-header-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
}

#responseTabs .pdp-collapse-details-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #667085 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: 0.2s ease !important;
}

    #responseTabs .pdp-collapse-details-btn:hover {
        color: #6246ea !important;
        border-color: #c7bdfc !important;
        background: #faf9ff !important;
    }

#responseTabs .download-excel-btn {
    height: 32px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #6246ea !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: 0.2s ease !important;
}

    #responseTabs .download-excel-btn:hover {
        background: #5138d8 !important;
    }

#responseTabs .pdp-details {
    width: 100% !important;
}

#responseTabs .pdp-api-card {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 9px 12px !important;
    margin-bottom: 8px !important;
    background: #fff !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03) !important;
}

#responseTabs .pdp-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1edff !important;
    color: #6246ea !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

#responseTabs .pdp-api-content {
    flex: 1 !important;
    min-width: 0 !important;
}

#responseTabs .pdp-title {
    margin: 0 0 2px 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1d2939 !important;
    line-height: 1.25 !important;
}

#responseTabs .pdp-url {
    color: #475467 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#responseTabs .pdp-copy-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #667085 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: 0.2s ease !important;
}

    #responseTabs .pdp-copy-btn:hover {
        color: #6246ea !important;
        border-color: #c7bdfc !important;
        background: #faf9ff !important;
    }

#responseTabs .pdp-request-card {
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
    background: #fff !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03) !important;
}

#responseTabs .pdp-request-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

    #responseTabs .pdp-request-header .pdp-title {
        flex: 1 !important;
        margin: 0 !important;
    }

#responseTabs .pdp-json {
    margin: 0 !important;
    padding: 8px 10px !important;
    background: #fafafa !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 6px !important;
    font-family: Consolas, Monaco, monospace !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: #344054 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    max-height: 95px !important;
    overflow: auto !important;
}

    #responseTabs .pdp-json::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    #responseTabs .pdp-json::-webkit-scrollbar-thumb {
        background: #d0d5dd;
        border-radius: 6px;
    }

    #responseTabs .pdp-json::-webkit-scrollbar-track {
        background: transparent;
    }

#responseTabs .tab-content,
#responseTabs .tab-panel {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#responseTabs .ag-theme-alpine1 {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.pdp-copy-message {
    position: fixed !important;
    top: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgb(98, 70, 234) !important;
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    z-index: 9999999 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}

.chatbot-llm-error-message {
    display: flex;
    align-items: center;
    gap: 16px;
    color:red;   
    
   
}

.error-icon {
    font-size: 20px;
}

.error-text {
    margin: 0 0 12px 0;
    color: #b78103;
    font-size: 14px;
    line-height: 1.5;
}