/* AI Assistant Styles for LIGHTMGROUP */
/* Color Scheme: Primary: #1D4ED8, Accent: #F59E0B */

.lightm-ai-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* Assistant Button */
.lightm-assistant-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1D4ED8;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.lightm-assistant-btn:hover {
    background-color: #2563EB;
    transform: scale(1.05);
}

.lightm-assistant-btn i {
    font-size: 24px;
}

.lightm-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #F59E0B;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Chat Window */
.lightm-chat-window {
    width: 380px;
    height: 550px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #E5E7EB;
    font-family: 'Inter', sans-serif;
}

.lightm-chat-window.active {
    display: flex;
}

/* Chat Header */
.lightm-chat-header {
    background-color: #1D4ED8;
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lightm-chat-header h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.lightm-chat-header h3 i {
    color: #F59E0B;
}

.lightm-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightm-close-btn:hover {
    opacity: 1;
}

/* Chat Body */
.lightm-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #F9FAFB;
    scrollbar-width: thin;
    scrollbar-color: #1D4ED8 #E5E7EB;
}

.lightm-chat-body::-webkit-scrollbar {
    width: 6px;
}

.lightm-chat-body::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 3px;
}

.lightm-chat-body::-webkit-scrollbar-thumb {
    background-color: #1D4ED8;
    border-radius: 3px;
}

.lightm-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.lightm-message.bot {
    align-items: flex-start;
}

.lightm-message.user {
    align-items: flex-end;
}

.lightm-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.lightm-bot .lightm-message-content {
    background-color: white;
    color: #374151;
    border: 1px solid #E5E7EB;
    border-top-left-radius: 4px;
}

.lightm-user .lightm-message-content {
    background-color: #1D4ED8;
    color: white;
    border-top-right-radius: 4px;
}

.lightm-message-time {
    font-size: 11px;
    color: #6B7280;
    margin-top: 4px;
}

/* Quick Actions */
.lightm-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.lightm-quick-action-btn {
    background-color: white;
    color: #1D4ED8;
    border: 1px solid #E5E7EB;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.lightm-quick-action-btn:hover {
    background-color: #1D4ED8;
    color: white;
    border-color: #1D4ED8;
}

/* Chat Footer */
.lightm-chat-footer {
    padding: 20px;
    border-top: 1px solid #E5E7EB;
    background-color: white;
}

.lightm-input-group {
    display: flex;
    gap: 10px;
}

.lightm-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.lightm-chat-input:focus {
    border-color: #1D4ED8;
}

.lightm-send-btn {
    background-color: #1D4ED8;
    color: white;
    border: none;
    border-radius: 8px;
    width: 46px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightm-send-btn:hover {
    background-color: #2563EB;
}

.lightm-contact-info {
    margin-top: 15px;
    font-size: 13px;
    color: #6B7280;
    text-align: center;
    line-height: 1.5;
}

.lightm-contact-info a {
    color: #1D4ED8;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.lightm-contact-info a:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* Response Options */
.lightm-response-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.lightm-response-option {
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.lightm-response-option:hover {
    background-color: #F9FAFB;
    border-color: #1D4ED8;
}

.lightm-response-option i {
    margin-right: 8px;
    color: #1D4ED8;
}

/* Typing Indicator */
.lightm-typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightm-typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #6B7280;
    border-radius: 50%;
    display: inline-block;
    animation: lightm-typing 1.5s infinite ease-in-out;
}

.lightm-typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes lightm-typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Welcome Message */
.lightm-welcome-message {
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.lightm-welcome-message strong {
    color: #1D4ED8;
    font-family: 'Poppins', sans-serif;
}

/* Responsive */
@media (max-width: 480px) {
    .lightm-ai-assistant-container {
        bottom: 20px;
        right: 20px;
    }
    
    .lightm-chat-window {
        width: 320px;
        height: 500px;
        right: 0;
    }
    
    .lightm-assistant-btn {
        width: 56px;
        height: 56px;
    }
}

/* For very small screens */
@media (max-width: 360px) {
    .lightm-chat-window {
        width: 300px;
        height: 480px;
    }
}