/* Chat Bot Styles */
.chat-bot-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
}

.chat-bot-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.chat-bot-button.unread {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.chat-modal {
    position: fixed;
    bottom: 45px;
    right: 10px;
    width: 175px;
    height: 250px;
    background: white;
    border-radius: 7.5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
}

.chat-modal.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 7.5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-size: 9px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 10px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 7.5px;
    display: flex;
    align-items: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.admin {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 5px 7.5px;
    border-radius: 9px;
    word-wrap: break-word;
}

.chat-message.user .message-bubble {
    background: #007bff;
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-message.admin .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 5.5px;
    opacity: 0.7;
    margin-top: 2.5px;
}

.chat-message.user .message-time {
    text-align: right;
}

.chat-input-container {
    padding: 7.5px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12.5px;
    padding: 5px 7.5px;
    outline: none;
    font-size: 7px;
}

.chat-input:focus {
    border-color: #667eea;
}

.chat-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-send:hover {
    transform: scale(1.1);
}

.chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-welcome {
    text-align: center;
    padding: 10px;
    color: #6c757d;
}

.chat-welcome h6 {
    margin-bottom: 10px;
    color: #495057;
}

.chat-welcome p {
    font-size: 14px;
    margin-bottom: 15px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.quick-reply {
    background: #e9ecef;
    border: none;
    border-radius: 7.5px;
    padding: 4px 7.5px;
    font-size: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-reply:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.typing-indicator {
    display: none;
    padding: 5px 7.5px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 9px;
    border-bottom-left-radius: 2.5px;
    max-width: 80%;
    margin-bottom: 7.5px;
}

.typing-indicator.active {
    display: block;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-modal {
        width: calc(100vw - 20px);
        height: calc(100vh - 60px);
        right: 10px;
        bottom: 45px;
    }
    
    .chat-bot-container {
        bottom: 5px;
        right: 5px;
    }
}
