.floating-chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--PRIMARY_BTN_SHADOW);
    background: var(--PRIMARY_BTN_BG);
}
 
.floating-chat-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--PRIMARY_BTN_SHADOW);
    filter: var(--PRIMARY_BTN_HOVER_FILTER_BG);
    background: var(--PRIMARY_BTN_HOVER_BG);
    color: var(--PRIMARY_BTN_HOVER_COLOR);
}
 
.floating-chat-icon i {
    font-size: var(--ICON_LARGE_FONT_SIZE);
    color: var(--PRIMARY_BTN_COLOR);
}
 
.chat-container {
    position: fixed;
    bottom: 10px;
    right: 12px;
    width: 370px;
    top: auto;
    height: 50vh;
    min-height: 500px;
    max-height: 800px; 
    z-index: 9999999999;
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--PRIMARY_BTN_SHADOW);
}
 
.chat-container.active {
    display: flex;
}
 
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}
 
.greeting-modal {
    border-radius: 12px;
    padding: 0;
    position: relative;
    animation: slideUp 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--THIRD_GRADIENT_BOX_BG);
    color: var(--THIRD_GRADIENT_BOX_COLOR);
}
 
.greeting-modal.hidden {
    display: none;
    animation: slideDown 0.3s ease;
}
 
.close-greeting-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 60px;
    display: flex;
    align-items: center;
    border: none;
    background: none;
    color: var(--THIRD_GRADIENT_BOX_COLOR);
}
 
.close-greeting-btn:hover {
    opacity: 0.7;
}
 
.close-greeting-btn i {
    font-size: var(--ICON_SMALL_FONT_SIZE);
}
 
.greeting-content {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 24px 20px;
    gap: 14px;
    height: 100%;
}
 
.greeting-logo {
    margin-top: 18px;
    letter-spacing: 1px;
    display: flex;
    align-items: center; 
}
 
.dstg-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}
 
.greeting-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 60px;
    color: var(--THIRD_GRADIENT_BOX_COLOR);
    font-family: var(--SECONDARY_FONT_FAMILY);
}
 
.greeting-user {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--THIRD_GRADIENT_BOX_COLOR);
}
 
.greeting-user-emoji {
    font-size: 16px;
    margin-left: 2px;
    display: flex;
    align-items: center;
    color: var(--THIRD_GRADIENT_BOX_COLOR);
}
 
.greeting-subtext {
    font-size: 20px;
    font-weight: 600;
    opacity: 1;
    line-height: 1.3;
    color: var(--THIRD_GRADIENT_BOX_COLOR);
}
 
.greeting-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.greeting-input-wrapper .start-chat-btn {
    position: static;
    width: 100%;
    border-radius: 25px;
    padding: 14px 20px;
    font-size: var(--SUBHEADER_FONT_SIZE);
    font-weight: var(--REG_FONT_WEIGHT);
    font-family: var(--SECONDARY_FONT_FAMILY);
    justify-content: center;
    background: var(--PRIMARY_BTN_BG);
    color: var(--PRIMARY_BTN_COLOR);
    cursor: pointer;
    transition: opacity 0.2s;
    border: none;
}

.greeting-input-wrapper .start-chat-btn:hover {
   filter: var(--PRIMARY_BTN_HOVER_FILTER_BG);
    background: var(--PRIMARY_BTN_HOVER_BG);
    color: var(--PRIMARY_BTN_HOVER_COLOR);
    border: var(--PRIMARY_BTN_HOVER_BORDER);
}
 
.greeting-input {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 14px 52px 14px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background-color: var(--SECONDARY_GRADIENT_BOX_BG);
    color: var(--SECONDARY_GRADIENT_BOX_COLOR);
}
 
.greeting-input::placeholder {
    color: var(--SECONDARY_GRADIENT_BOX_COLOR);
}
.greeting-send-btn {
    position: absolute;
    right: 14px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    border: none;
    background: none;
}
 
.greeting-send-btn:hover {
   background: var(--PRIMARY_BTN_HOVER_BG);
   filter: var(--PRIMARY_BTN_HOVER_FILTER_BG);
   color: var(--PRIMARY_BTN_HOVER_COLOR);
}
 
.chat-window {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    background: var(--MODAL_BG);
}
 
.chat-window.hidden {
    display: none;
    animation: slideDown 0.3s ease;
}
 
.chat-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
    border-bottom: var(--MODAL_BORDER);
    background: var(--MODAL_HEADER_BG);
}
 
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
 
.header-back-btn {
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    background: none;
    color: var(--MODAL_TXT_COLOR);
}
 
.header-back-btn:hover {
    opacity: 0.7;
}
 
.header-back-btn i {
    font-size: 18px;
}
 
.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    background: var(--TXT_COLOR_3);
    color: var(--TXT_COLOR_2);
}
 
.header-title {
    font-size: var(--SUBHEADER_FONT_SIZE);
    font-weight: var(--MED_FONT_WEIGHT);
    color: var(--MODAL_TXT_COLOR);
}
 
.header-subtitle {
    font-size: 14px;
    margin-top: 2px;
    color: var(--SECONDARY_COLOR);
}
 
.chat-header-right {
    display: flex;
    gap: 8px;
}
 
.close-chat-btn {
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    background: none;
    color: var(--MODAL_TXT_COLOR);
}
 
.close-chat-btn:hover {
    opacity: 0.7;
}
 
.close-chat-btn i {
    font-size: 18px;
}
 
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--MODAL_BG);
}
 
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
 
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
 
.chat-messages::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--SCROLLBAR_COLOR);
}

.message {
    display: flex;
    animation: messageIn 0.3s ease;
}
 
@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
.message.bot {
    justify-content: flex-start;
}
 
.message.bot .message-content {
    border-radius: 12px;
    max-width: 85%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    border: var(--DISABLED_INPUT_BORDER);
    background:var(--DISABLED_INPUT_BG);
    color: var(--DISABLED_INPUT_COLOR);
}
 
.message.user {
    justify-content: flex-end;
}
 
.message.user .message-content {
    border-radius: 12px;
    max-width: 85%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    background: var(--PRIMARY_COLOR);
    color: var(--PRIMARY_TXT_COLOR);
}
 
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}
 
.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: typing 1.4s infinite;
    background: var(--PRIMARY_COLOR);
}
 
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
 
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
 
@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}
 
#inactivityWarningSlot {
    position: absolute;
    bottom: 165px;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0 12px;
}
 
#inactivityWarningSlot:empty {
    display: none;
}
 
.inactivity-warning {
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: messageIn 0.3s ease;
    border: 1px solid #FF8C00;
    background: #fff8e1;
    color: #FF8C00;
}
 
.inactivity-warning-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
    color: #FF8C00;
}
 
.inactivity-warning-top i {
    font-size: 15px;
    flex-shrink: 0;
    color: #FF8C00;
}

.inactivity-warning-top #warningCountdown {
	color: var(--IMPORTANT_COLOR);
}

.inactivity-warning-bottom {
    font-size: 13px;
    padding-left: 0;
    color:  var(--TXT_COLOR_2);
}
 
.inactivity-warning-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}
 
.inactivity-stay-btn {
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    background: var(--PRIMARY_BTN_BG);
    color: var(--PRIMARY_BTN_COLOR);
    border: var(--PRIMARY_BTN_BORDER);
    box-shadow: var(--PRIMARY_BTN_SHADOW);
}
 
.inactivity-stay-btn:hover {
    background: var(--PRIMARY_BTN_HOVER_BG);
    filter: var(--PRIMARY_BTN_HOVER_FILTER_BG);
    color: var(--PRIMARY_BTN_HOVER_COLOR);
    border: var(--PRIMARY_BTN_HOVER_BORDER);
}
 
.inactivity-end-btn {
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    background: var(--IMPORTANT_COLOR);
    color: var(--TXT_COLOR_1);
}
 
.inactivity-end-btn:hover {
    filter: brightness(1.1);
}

.chat-input-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    background: var(--MODAL_BG);
}
 
.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-container {
    position: relative;
    flex: 1;
    display: flex;
}
 
#messageInput {
    width: 100%;
    border-radius: 20px;
    padding: 12px 48px 12px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    resize: none;
    max-height: 100px;
    border: var(--INPUT_BORDER);
    background: var(--DISABLED_INPUT_BG);
    color: var(--DISABLED_INPUT_COLOR);
}
 
#messageInput:focus {
    border-color: var(--SECONDARY_COLOR);
}
 
#messageInput::placeholder {
    color: var(--TXT_COLOR_1);
}
 
.send-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--PRIMARY_BTN_BG);
    color: var(--PRIMARY_BTN_COLOR);
}
 
.send-btn:hover {
    transform: scale(1.05);
    background: var(--PRIMARY_BTN_HOVER_BG);
}
 
.send-btn:active {
    transform: scale(0.95);
}
 
.send-btn i {
    font-size: var(--SUBHEADER_FONT_SIZE);
    color: var(--PRIMARY_BTN_COLOR);
}
 
.suggested-actions {
    display: flex;
    gap: 10px;;
    padding: 20px 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid var(--CARD_2_BG);
}
 
.suggested-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: var(--SECONDARY_BTN_BORDER);
    background-color: var(--SECONDARY_BTN_BG);
    color: var(--SECONDARY_BTN_COLOR);
    box-shadow: var(--SECONDARY_BTN_SHADOW);
}
 
.suggested-btn i {
    font-size: 12px;
    flex-shrink: 0;
}
 
.suggested-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--SECONDARY_BTN_SHADOW);
    border: var(--SECONDARY_BTN_HOVER_BORDER);
    background: var(--SECONDARY_BTN_HOVER_BG);
    filter: var(--SECONDARY_BTN_HOVER_FILTER_BG);
    color: var(--SECONDARY_BTN_HOVER_COLOR);
}
 
.suggested-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.attach-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--TXT_COLOR_1);
    padding: 0;
}

.attach-btn:hover {
    opacity: 0.7;
}

.attach-btn i {
    font-size: 16px;
}

#attachmentPreviewSlot:empty {
    display: none;
}

.attachment-preview {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    padding: 6px 12px;
    width: 100%;
    background: #fff; 
    color: var(--TXT_COLOR_2);
}

.attachment-preview-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #E8F0FE;
    color: #1A73E8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.attachment-preview-name {
    flex: 1;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-remove-btn {
    width: 18px;
    height: 18px;
    margin-left: 32px;
    border: none;
    background: #b3b3b3;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    padding: 0;
}

.attachment-remove-btn:hover {
    background: #f1f3f4;
}

.message-attachment-file {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E6E6E6;
    border-radius: 24px;
    padding: 8px 14px;
    background: #ffffff;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 6px;
    max-width: 100%;
    cursor: pointer;
}

.message-attachment-file:hover {
    opacity: 0.85;
}

.message-attachment-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #0052e333;
    color: #1A73E8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-attachment-name {
    color: #1f1f1f;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-image-preview-content {
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.chat-image-preview-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6d6d6d;
}

.chat-image-preview-body img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.chat-image-preview-close {
    z-index: 10;
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #000;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
} 


.chat-image-preview-close:hover {
	color: var(--TXT_COLOR_2); !important;
    background-color: transparent !important;
}

.translate-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    color: var(--TXT_COLOR_5);
    transition: color 0.2s;
}

.translate-toggle:hover {
    color: var(--PRIMARY_COLOR);
}

.translate-toggle i.fa-language {
    font-size: 13px;
}

.translate-toggle .translate-chevron {
    font-size: 10px;
    transition: transform 0.2s;
}

.translated-text {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--TXT_COLOR_2);
}

.translated-text.active {
    display: block;
}

.translate-loading,
.translate-error {
    font-style: italic;
    opacity: 0.7;
}
 
@media (max-width: 768px) {
    .chat-container {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        max-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
 
    .greeting-modal {
        border-radius: 0;
    }
 
    .chat-window {
        border-radius: 0;
    }
 
    .chat-header {
        border-radius: 0;
        padding: 14px 16px;
    }
 
    .chat-input-area {
        border-radius: 0;
        padding: 15px;
    }
 
    .chat-messages {
        padding: 16px;
    }
 
    .message.user .message-content,
    .message.bot .message-content {
        max-width: 85%;
    }
 
    .suggested-btn {
        font-size: 11px;
        padding: 8px 10px;
        min-width: 70px;
    }
 
    .suggested-btn i {
        font-size: 11px;
    }
 
    .floating-chat-icon {
        width: 54px;
        height: 54px;
        bottom: 24px;
        right: 16px;
    }
 
    .floating-chat-icon i {
        font-size: 22px;
    }
}
 
@media (max-width: 480px) {
    .chat-container {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        max-height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
 
    .greeting-modal {
        border-radius: 0;
    }
 
    .chat-window {
        border-radius: 0;
    }
 
    .chat-header {
        border-radius: 0;
        padding: 12px 14px;
    }
 
    .chat-input-area {
        border-radius: 0;
        padding: 15px;
    }
 
    .chat-messages {
        padding: 14px;
        gap: 12px;
    }
 
    .message.user .message-content,
    .message.bot .message-content {
        max-width: 88%;
        padding: 10px 14px;
        font-size: 13px;
    }
 
    .floating-chat-icon {
        width: 50px;
        height: 50px;
        bottom: 24px;
        right: 12px;
    }
 
    .floating-chat-icon i {
        font-size: 20px;
    }
 
    .header-title {
        font-size: 14px;
    }
 
    .header-subtitle {
        font-size: 11px;
    }
 
    .suggested-actions {
        gap: 6px;
        padding: 20px;
    }
 
    .suggested-btn {
        font-size: 10px;
        padding: 8px 10px;
        min-width: 60px;
    }
 
    .suggested-btn i {
        font-size: 10px;
    }
 
    .chat-input-wrapper {
        gap: 8px;
    }
 
    #messageInput {
        padding: 10px 14px;
        font-size: 13px;
    }
 
    .send-btn {
        width: 36px;
        height: 36px;
    }
 
    .send-btn i {
        font-size: 14px;
    }
 
    .greeting-content {
        padding: 16px 18px 20px 18px;
        gap: 14px;
    }
 
    .greeting-input {
        padding: 12px 48px 12px 14px;
        font-size: 14px;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .chat-container {
        height: 500px;
        top: auto;
        bottom: 10px;
    }
}

@media (min-width: 1367px) {
    .chat-container {
       	height: 95vh;
        top: auto;
        bottom: 10px;
    }
}