/* Orbit Assist - Frontend Styles */

/* Floating Buttons Container */
.orbit-floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* WhatsApp Button */
.orbit-whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.orbit-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.orbit-whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Chatbot Toggle Button */
.orbit-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4169a8 0%, #5b7fc9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(65, 105, 168, 0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.orbit-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(65, 105, 168, 0.6);
}

.orbit-chatbot-toggle svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Notification Badge */
.orbit-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

/* Chatbot Window */
.orbit-chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    animation: slideUp 0.3s ease;
}

.orbit-chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chatbot Header */
.orbit-chatbot-header {
    background: linear-gradient(135deg, #4169a8 0%, #5b7fc9 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.orbit-chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.orbit-chatbot-avatar {
    width: 40px;
    height: 40px;
/*     background: white; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.orbit-chatbot-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
	color: #FFFFFF !important;
}

.orbit-chatbot-title p {
    margin: 2px 0 0 0;
    font-size: 12px;
/*     opacity: 0.9; */
	color: #FFFFFF !important;
}

.orbit-chatbot-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.orbit-chatbot-close:hover {
    opacity: 0.8;
}

.orbit-chatbot-close svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Welcome Message */
.orbit-welcome-message {
    background: linear-gradient(135deg, #f8a5c2 0%, #f5d3e0 100%);
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
}

.orbit-welcome-message h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.orbit-welcome-message p {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Quick Tips */
.orbit-quick-tips {
    margin: 15px 0 0 0;
}

.orbit-quick-tips h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.orbit-quick-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orbit-quick-btn {
    background: white;
    border: 1px solid #e74c8c;
    color: #e74c8c;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.orbit-quick-btn:hover {
    background: #e74c8c;
    color: white;
}

/* Messages Container */
.orbit-messages-container {
    flex: 1;
    overflow-y: scroll;
    padding: 20px;
    background: #f8f9fa;
}

.orbit-message {
    margin-bottom: 15px;
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.orbit-message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.orbit-message.bot .orbit-message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.orbit-message.user .orbit-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Thinking Indicator */
.orbit-thinking {
    display: flex;
    gap: 5px;
    padding: 15px;
}

.orbit-thinking-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: thinking 1.4s infinite;
}

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

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

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

/* Action Tabs */
.orbit-action-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: white;
}

.orbit-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s;
    position: relative;
}

.orbit-tab:hover {
    color: #4169a8;
}

.orbit-tab.active {
    color: #4169a8;
}

.orbit-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4169a8;
}

/* Input Area */
.orbit-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.orbit-input-wrapper {
    flex: 1;
    position: relative;
}

.orbit-message-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.orbit-message-input:focus {
    border-color: #4169a8;
}

.orbit-send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4169a8 0%, #5b7fc9 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.orbit-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.orbit-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.orbit-send-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Footer */
.orbit-chatbot-footer {
    padding: 10px 20px;
    background: white;
    text-align: center;
    font-size: 11px;
    color: #999;
    border-top: 1px solid #f0f0f0;
}

.orbit-chatbot-footer a {
    color: #4169a8;
    text-decoration: none;
    font-weight: 600;
}

.orbit-chatbot-footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .orbit-floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .orbit-chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 140px);
        bottom: 100px;
        right: 20px;
    }
    
    .orbit-whatsapp-btn,
    .orbit-chatbot-toggle {
        width: 55px;
        height: 55px;
    }
}

/* Scrollbar Styling */
.orbit-messages-container::-webkit-scrollbar {
    width: 6px;
}

.orbit-messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.orbit-messages-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.orbit-messages-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}