/* Chatbot Toggle Button - Yeni Tasarım */
.chatbot-toggle {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    width: 70px;
    height: 70px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    z-index: 99999 !important;
    transition: all 0.3s ease;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.chatbot-toggle:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 74, 142, 0.3));
}

.chatbot-toggle:active {
    transform: translateY(-3px) scale(1.02);
}

.chatbot-icon {
    width: 70px;
    height: 70px;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.chatbot-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #FF4757;
    color: white;
    font-size: 13px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid white;
    z-index: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.5);
    animation: badge-bounce 1.5s infinite ease-in-out;
}

@keyframes badge-bounce {
    0%, 100% { 
        transform: scale(1) translateY(0);
    }
    25% { 
        transform: scale(1.1) translateY(-2px);
    }
    50% { 
        transform: scale(1) translateY(0);
    }
}

/* Pulse ring animation removed - no longer needed */

/* Chatbot Window */
.chatbot-window {
    position: fixed !important;
    bottom: 110px !important;
    right: 30px !important;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 99998 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #004A8E 0%, #1BC7CC 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chatbot-title {
    margin: 0 0 3px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.chatbot-status {
    font-size: 13px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chatbot-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 75%;
}

.message-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, #004A8E 0%, #1BC7CC 100%);
    color: white;
}

.user-message .message-content p {
    color: white;
}

/* Quick Actions */
.chatbot-quick-actions {
    margin-top: 15px;
}

.quick-actions-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.quick-action-btn:hover {
    border-color: #1BC7CC;
    background: #f0feff;
    transform: translateX(5px);
}

.quick-action-btn i {
    color: #1BC7CC;
    font-size: 18px;
}

/* Input Area */
.chatbot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.chatbot-input:focus {
    border-color: #1BC7CC;
}

.chatbot-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #004A8E 0%, #1BC7CC 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-window {
        bottom: 100px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
        height: calc(100vh - 130px);
    }

    .chatbot-toggle {
        bottom: 20px !important;
        right: 20px !important;
        width: 65px;
        height: 65px;
    }

    .chatbot-icon {
        width: 38px;
        height: 38px;
    }

    .chatbot-badge {
        width: 26px;
        height: 26px;
        font-size: 12px;
        top: -6px !important;
        right: -6px !important;
    }
}

/* Scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #1BC7CC;
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #004A8E;
}


