﻿.AChatBot {
    width: 40px !important;
    height: 40px !important;
    position: fixed !important;
    left: 3px !important;
    bottom: 15px !important;
    cursor: pointer;
    background: transparent url(achatbot.png) center no-repeat padding-box;
    background-size: contain;
    z-index: 1500 !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: none;
}

.AChatBot:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.AChatBot[status="online"] {
    border: 2px solid #4CAF50;
}

.AChatBot[status="offline"] {
    border: 2px solid transparent;
}

.dx-popup-content:has(.AChatBotPopup) {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    overflow: hidden;
}

body .dx-overlay-wrapper .dx-overlay-content.dx-popup-normal.dx-resizable:has(.AChatBotPopup) {
    transform: none !important;
    left: 60px !important;
    bottom: 50px !important;
    top: auto !important;
    position: fixed !important;
}


.AChatBotPopup {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.AChatBotContainer {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.AChatBotHeader {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #1d3a58;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    min-height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.AChatBotHeaderIcon {
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid white;
    background-color: white;
    background-image: url(achatbot2.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

.AChatBotHeaderText {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    flex-grow: 1;
}

.AChatBotHeaderText h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.x-window-tl .x-window-header:has(+ .AChatBotPopup) {
    display: none !important;
}

.AChatBotMessageArea {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 15px;
    background-color: #f5f5f5;
}

.AChatBotMessageArea::-webkit-scrollbar {
    width: 6px;
}

.AChatBotMessageArea::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.AChatBotMessageArea::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.AChatBotMessageArea::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.AChatBotInputArea {
    width: 100%;
    display: flex;
    padding: 12px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
    gap: 10px;
    align-items: center;
    min-height: 70px;
}

.AChatBotInputField {
    flex: 1;
    min-height: 45px;
    max-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    resize: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.AChatBotInputField:focus {
    border-color: #1d3a58;
}

.AChatBotInputField::placeholder {
    color: #999;
}

.AChatBotSendButton {
    width: 45px;
    height: 45px;
    background: transparent url(achatbot-send-message.svg) center no-repeat;
    background-color: #1d3a58;
    background-size: 20px 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.AChatBotSendButton:hover {
    background-color: #2a4b6d;
    transform: scale(1.05);
}

.AChatBotSendButton:active {
    transform: scale(0.95);
}

.AChatBotMessage {
    max-width: 75%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
    animation: fadeIn 0.3s ease;
    line-height: 1.4;
    font-size: 14px;
}

.AChatBotUserMessage {
    background-color: #1d3a58;
    color: #FFFFFF;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.AChatBotBotMessage {
    background-color: #FFFFFF;
    color: #333333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.AChatBotMessageTime {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-align: right;
}

.AChatBotBotMessage .AChatBotMessageTime {
    color: #999;
}


.AChatBotTypingIndicator {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 12px;
    background-color: #FFFFFF;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    max-width: 60px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.AChatBotTypingIndicator .typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.AChatBotTypingIndicator .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.AChatBotTypingIndicator .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.AChatBotMessageArea > div:first-child {
    margin-top: 0;
}


@keyframes typing {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.AChatBotWelcomeBubble {
    position: absolute;
    bottom: 55px;
    left: 0;
    background-color: #1d3a58;
    color: white;
    padding: 12px 18px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.4;
    max-width: 250px;
    min-width: 180px;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    animation: bubbleFadeIn 0.4s ease forwards;
    z-index: 1501;
    white-space: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}

.AChatBotWelcomeBubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 0;
    border-color: #1d3a58 transparent transparent transparent;
}


.AChatBotWelcomeBubble:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: #2a4b6d;
}


.AChatBotWelcomeBubble.closing {
    animation: bubbleFadeOut 0.3s ease forwards;
}

@keyframes bubbleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bubbleFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
}

.AChatBot.has-bubble {
    animation: botPulse 1.5s ease-in-out infinite;
}

@keyframes botPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

.AChatBotWelcomeBubble {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

.AChatBotDisclaimer {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 11px;
    line-height: 1.4;
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}

.AChatBotDisclaimer:hover {
    opacity: 1;
}

.AChatBotContainer:has(.AChatBotDisclaimer) .AChatBotMessageArea {
    height: calc(100% - 60px - 50px - 70px); 
}

/* İnteraktif hoşgeldin mesajı stilleri */
.AChatBotWelcomeContainer {
    max-width: 85% !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
    padding: 16px !important;
}

.AChatBotWelcomeTitle {
    font-weight: 600;
    color: #1d3a58;
    margin-bottom: 12px;
    font-size: 15px;
}

.AChatBotExamplesList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.AChatBotExampleItem {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .AChatBotExampleItem:hover {
        background-color: #f0f7ff;
        border-color: #1d3a58;
        transform: translateX(2px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .AChatBotExampleItem:active {
        transform: translateX(0);
        box-shadow: none;
    }

.AChatBotExampleIcon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.AChatBotExampleContent {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.AChatBotExampleTitle {
    display: block;
    font-weight: 500;
    color: #1d3a58;
    font-size: 13px;
    margin-bottom: 2px;
}

.AChatBotExampleCommand {
    display: block;
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input highlight efekti */
.AChatBotInputHighlight {
    border-color: #1d3a58 !important;
    box-shadow: 0 0 0 2px rgba(29, 58, 88, 0.1) !important;
    background-color: #f0f7ff !important;
}

/* Kompakt versiyon stilleri */
.AChatBotCompactWelcome {
    max-width: 85% !important;
}

    .AChatBotCompactWelcome strong {
        color: #1d3a58;
        display: block;
        margin-bottom: 8px;
    }

.chatbot-example-link {
    color: #1d3a58;
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .chatbot-example-link:hover {
        color: #2a4b6d;
        text-decoration: underline;
        padding-left: 8px;
    }

/* Mobil uyumluluk */
@media (max-width: 480px) {
    .AChatBotWelcomeContainer {
        max-width: 90% !important;
        padding: 12px !important;
    }

    .AChatBotExampleItem {
        padding: 8px 10px;
    }

    .AChatBotExampleTitle {
        font-size: 12px;
    }

    .AChatBotExampleCommand {
        font-size: 11px;
    }
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
        bottom: calc(100% + 5px);
    }
}

.AChatBotExampleItem {
    animation: slideInLeft 0.3s ease forwards;
    opacity: 0;
}

.AChatBotExampleItem:nth-child(1) {
    animation-delay: 0.05s;
}

.AChatBotExampleItem:nth-child(2) {
    animation-delay: 0.1s;
}

.AChatBotExampleItem:nth-child(3) {
    animation-delay: 0.15s;
}

.AChatBotExampleItem:nth-child(4) {
    animation-delay: 0.2s;
}

.AChatBotExampleItem:nth-child(5) {
    animation-delay: 0.25s;
}

.AChatBotExampleItem:nth-child(6) {
    animation-delay: 0.3s;
}

.AChatBotConfirmationDialog {
    padding: 10px;
}

.AChatBotConfirmationText {
    margin-bottom: 15px;
    line-height: 1.4;
}

.AChatBotConfirmationButtons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.AChatBotButtonYes,
.AChatBotButtonNo {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 36px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.AChatBotButtonYes {
    background-color: #e3f2fd;
    color: #1976d2; 
    border: 1px solid #90caf9;
}

.AChatBotButtonYes:hover:not(.disabled) {
    background-color: #bbdefb; 
    color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(33, 150, 243, 0.2);
}

.AChatBotButtonNo {
    background-color: #f5f5f5; 
    color: #616161;
    border: 1px solid #e0e0e0;
}

.AChatBotButtonNo:hover:not(.disabled) {
    background-color: #eeeeee;
    color: #424242;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.AChatBotButtonYes.disabled,
.AChatBotButtonNo.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;

}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

