/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Arial', sans-serif;
}

/* Chatbot Header */
.chatbot-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 10px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

/* Avatar Circle */
.avatar-circle {
    position: relative;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Avatar Face */
.avatar-face {
    position: relative;
    width: 40px;
    height: 40px;
}

/* Eyes */
.eyes {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.eye {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    margin: 0 2px;
}

/* Mouth */
.mouth {
    width: 12px;
    height: 6px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin: 8px auto 0;
}

/* Blush */
.blush {
    position: absolute;
    width: 8px;
    height: 4px;
    background: #ffb3d9;
    border-radius: 50%;
    top: 12px;
}

.blush.left {
    left: 2px;
}

.blush.right {
    right: 2px;
}

/* Graduation Cap */
.graduation-cap {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.cap {
    width: 30px;
    height: 15px;
    background: #4a90e2;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.cap::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #4a90e2;
}

.tassel {
    position: absolute;
    top: -5px;
    right: -3px;
    width: 6px;
    height: 8px;
    background: #e74c3c;
    border-radius: 3px;
}

/* Vest */
.vest {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffa500;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: bold;
    color: #333;
}

/* Speech Bubble */
.speech-bubble {
    background: #ffffff;
    border-radius: 15px;
    padding: 8px 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    max-width: 200px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid #ffffff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.greeting {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 12px;
    margin-bottom: 2px;
}

.name {
    display: block;
    color: #4a90e2;
    font-size: 11px;
}

/* Toggle Button */
.chatbot-toggle {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.toggle-icon {
    font-size: 18px;
}

/* Chatbot Body */
.chatbot-body {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: #f0f2f5;
    color: #333;
}

.user-message .message-content {
    background: #4a90e2;
    color: #ffffff;
}

/* Search Results */
.search-result {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.search-result h4 {
    margin: 0 0 5px 0;
    color: #4a90e2;
    font-size: 14px;
}

.search-result p {
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.search-result .result-link {
    color: #28a745;
    font-size: 11px;
    text-decoration: none;
    font-weight: bold;
}

.search-result .result-link:hover {
    text-decoration: underline;
}

/* Chat Input */
.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #4a90e2;
}

.chat-input button {
    background: #4a90e2 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 12px !important;
    margin-left: 10px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    min-width: 50px !important;
    max-width: 80px !important;
    height: 35px !important;
    line-height: 1 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    word-wrap: normal !important;
    overflow: hidden !important;
}

.chat-input button:hover {
    background: #357abd !important;
    transform: scale(1.05) !important;
}

/* Loading Animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #4a90e2;
    border-radius: 50%;
    animation: loading 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 80px !important;
        right: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
    }
    
    .chatbot-body {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .speech-bubble {
        max-width: 150px !important;
    }
    
    .chatbot-header {
        padding: 8px 12px !important;
        border-radius: 20px !important;
    }
    
    .avatar-circle {
        width: 50px !important;
        height: 50px !important;
        margin-right: 10px !important;
    }
    
    .chat-input button {
        padding: 6px 10px !important;
        font-size: 10px !important;
        min-width: 45px !important;
        max-width: 60px !important;
    }
}

/* Tablet için ek düzenleme */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 100px !important;
    }
    
    .chatbot-body {
        max-width: 280px !important;
    }
}

/* Smooth Animations */
.chatbot-body {
    transition: all 0.3s ease;
}

.message {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 