/* TNC Chatbot Widget - Public & Admin Styles */
.tnc-chatbot-fab {
    position: fixed;
    bottom: 24px; /* Scroll to top butonunun altında olması için */
    right: 20px;
    z-index: 9999;
}

.tnc-chatbot-fab__button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #bfd4ff;
    color: #bfd4ff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(191, 212, 255, 0.5), inset 0 0 10px rgba(191, 212, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnc-chatbot-fab__button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(191, 212, 255, 0.8), inset 0 0 15px rgba(191, 212, 255, 0.2);
    border-color: #bfd4ff;
}

.tnc-chatbot-widget {
    position: fixed;
    bottom: 100px; /* FAB'ın üstünde (FAB 24px'te, widget onun üstünde) */
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: #000;
    border: 2px solid #bfd4ff;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(191, 212, 255, 0.3), inset 0 0 20px rgba(191, 212, 255, 0.05);
    display: none;
    flex-direction: column;
    z-index: 10000;
}

.tnc-chatbot-widget.active {
    display: flex;
}

.tnc-chatbot-widget__header {
    padding: 16px;
    background: #000;
    border-bottom: 2px solid #bfd4ff;
    color: #bfd4ff;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 0 10px rgba(191, 212, 255, 0.5);
}

.tnc-chatbot-widget__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.tnc-chatbot-widget__close {
    background: transparent;
    border: 1px solid #bfd4ff;
    color: #bfd4ff;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tnc-chatbot-widget__close:hover {
    background: rgba(191, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(191, 212, 255, 0.5);
}

.tnc-chatbot-widget__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #000;
    color: #00ff41; /* Güvenli Yeşil - prototip görünümüne uygun */
}

.tnc-chatbot-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.tnc-chatbot-message--user {
    align-items: flex-end;
}

.tnc-chatbot-message--assistant {
    align-items: flex-start;
}

.tnc-chatbot-message__bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
}

.tnc-chatbot-message--user .tnc-chatbot-message__bubble {
    background: rgba(191, 212, 255, 0.1);
    color: #00ff41; /* Güvenli Yeşil */
    border: 1px solid #bfd4ff;
    box-shadow: 0 0 10px rgba(191, 212, 255, 0.3);
}

.tnc-chatbot-message--assistant .tnc-chatbot-message__bubble {
    background: rgba(0, 255, 65, 0.05); /* Yeşil glow */
    color: #00ff41; /* Güvenli Yeşil - prototip görünümüne uygun */
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.tnc-chatbot-message__sources {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(0, 255, 0, 0.7);
}

.tnc-chatbot-message__sources a {
    color: #00ff00;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.tnc-chatbot-message__sources a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.tnc-chatbot-widget__input-area {
    padding: 16px;
    background: #000;
    border-top: 2px solid #bfd4ff;
    display: flex;
    gap: 8px;
}

.tnc-chatbot-widget__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #bfd4ff;
    border-radius: 8px;
    font-size: 14px;
    background: #000;
    color: #bfd4ff;
}

.tnc-chatbot-widget__input::placeholder {
    color: rgba(191, 212, 255, 0.5);
}

.tnc-chatbot-widget__input:focus {
    outline: none;
    border-color: #bfd4ff;
    box-shadow: 0 0 10px rgba(191, 212, 255, 0.5);
}

.tnc-chatbot-widget__send {
    padding: 10px 20px;
    background: #000;
    color: #bfd4ff;
    border: 2px solid #bfd4ff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tnc-chatbot-widget__send:hover {
    background: rgba(191, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(191, 212, 255, 0.5);
}

.tnc-chatbot-widget__loading {
    text-align: center;
    padding: 16px;
    color: #00ff00;
}

.tnc-chatbot-feedback {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
}

.tnc-chatbot-feedback button {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tnc-chatbot-fab {
        bottom: 80px; /* Mobilde scroll to top'un üstünde */
    }
    
    .tnc-chatbot-widget {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: 10px;
        bottom: 150px; /* FAB'ın üstünde */
    }
}

