﻿#chatHistory::-webkit-scrollbar {
    width: 6px;
    height: 10px;
    border-radius: 0px
}

#chatHistory::-webkit-scrollbar-track {
    background: rgba(252,0,18,.1);
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    border-radius: 0px
}

#chatHistory::-webkit-scrollbar-thumb {
    background-color: var(--theme-color);
    background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 20%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
    border-radius: 0px
}

    #chatHistory::-webkit-scrollbar-thumb:hover {
        background: #5824d6;
    }

.chatbot-form {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #6D30FB40;
    background: #0f0f0f !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.form-title {
    background: #161616;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #6D30FB30;
}

#credit-count {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

    #credit-count i {
        color: #6D30FB;
        margin-right: 8px;
    }

#chatHistory {
    height: 500px;
    background: #0b0b0b !important;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: none !important;
}

.chat-user {
    background: #6D30FB;
    color: #fff;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 18px 18px 2px 18px;
    text-align: left;
    align-self: flex-end;
    max-width: 80%;
    box-shadow: 0 4px 15px rgba(109, 48, 251, 0.3);
    word-wrap: break-word;
}

.chat-ai {
    background: #1a1a1a;
    border: 1px solid #6D30FB40;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 18px 18px 18px 2px;
    color: #e0e0e0;
    align-self: flex-start;
    max-width: 80%;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    word-wrap: break-word;
}

.typing-dots {
    color: #6D30FB;
    font-size: 22px;
    font-weight: bold;
}

    .typing-dots span {
        animation: typing 1.4s infinite;
        display: inline-block;
    }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

#chat-btn {
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

    #chat-btn:hover:not(:disabled) {
        color: white;
        background: #5824d6;
        box-shadow: 0 0 20px rgba(109, 48, 251, 0.5);
        transform: translateY(-2px);
    }

    #chat-btn:disabled {
        background: #222;
        color: white;
        cursor: not-allowed;
    }


#message {
    background: #161616 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 15px;
    resize: none;
}

    #message:focus {
        border-color: #6D30FB !important;
        box-shadow: 0 0 10px rgba(109, 48, 251, 0.2) !important;
        outline: none;
    }


/* AI Modal Overlay */
.ai-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

/* Modal Box */
.ai-modal-content {
    background: #111;
    width: 90%;
    max-width: 500px;
    margin: 10% auto;
    border-radius: 20px;
    border: 1px solid #6D30FB40;
    box-shadow: 0 0 40px rgba(109, 48, 251, 0.2);
    overflow: hidden;
    animation: aiModalSlide 0.3s ease-out;
}

@keyframes aiModalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-modal-header {
    padding: 20px 25px;
    background: #161616;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #6D30FB20;
}

.ai-modal-title {
    margin: 0;
    color: #6D30FB;
    font-size: 1.2rem;
    font-weight: 600;
}

.ai-modal-close {
    color: #555;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

    .ai-modal-close:hover {
        color: #fff;
    }

.ai-modal-body {
    padding: 30px 25px;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
}




body.modal-open {
    overflow: hidden;
}


/* İkincil Buton (Vazgeç) - Daha Zarif ve Küçük */
.ai-btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #333;
    padding: 7px 18px; /* Padding daraltıldı */
    border-radius: 8px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 13px; /* Yazı boyutu küçültüldü */
    font-weight: 500;
    transition: all 0.3s ease;
}

    .ai-btn-secondary:hover {
        color: #fff;
        border-color: #555;
        background: rgba(255, 255, 255, 0.05);
    }

/* Birincil Buton (Onayla) - Daha Belirgin */
.ai-btn-primary {
    background: #6D30FB;
    color: white;
    border: none;
    padding: 8px 22px; /* Orantılı padding */
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(109, 48, 251, 0.2);
}

    .ai-btn-primary:hover {
        background: #5824d6;
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(109, 48, 251, 0.3);
    }

/* Footer Padding Ayarı (Butonların modal içindeki konumu için) */
.ai-modal-footer {
    padding: 15px 25px; /* Alt ve üst boşluk biraz azaltıldı */
    background: #161616;
    text-align: right;
    border-top: 1px solid #6D30FB10;
}