/* Chatbot Widget Styles */
.edmark-chatbot-widget {
    position: fixed;
    z-index: 99999;
    font-family: inherit;
}

.edmark-chatbot-widget.position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.edmark-chatbot-widget.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0066cc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chatbot-button svg {
    width: 28px;
    height: 28px;
}

.chatbot-window {
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background-color: #0066cc;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.chatbot-header-avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.chatbot-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    flex-shrink: 0;
}

.chatbot-header-avatar:not(:first-child) {
    margin-left: -8px;
}

.chatbot-back {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.chatbot-back svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.chatbot-back.show {
    display: flex !important;
}

.chatbot-back:hover {
    opacity: 0.8;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

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

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.chatbot-messages:has(.chatbot-landing-view) {
    padding: 0;
}

.chatbot-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);
    }
}

.chatbot-message.bot-message {
    justify-content: flex-start;
}

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

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.5;
}

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

.user-message .message-content {
    background: #0066cc;
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.chatbot-option {
    background: white;
    border: 2px solid #0066cc;
    color: #0066cc;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.chatbot-option:hover {
    background: #0066cc;
    color: white;
    transform: translateX(4px);
}

.chatbot-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.chatbot-link {
    background: white;
    border: 2px solid #0066cc;
    color: #0066cc;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    display: block;
}

.chatbot-link:hover {
    background: #0066cc;
    color: white;
    transform: translateX(4px);
}

.chatbot-otp-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.chatbot-otp-input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
}

.chatbot-otp-input:focus {
    outline: none;
    border-color: #0066cc;
}

.chatbot-otp-verify,
.chatbot-otp-resend {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-otp-verify {
    background: #0066cc;
    color: white;
}

.chatbot-otp-verify:hover {
    background: #0052a3;
}

.chatbot-otp-resend {
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.chatbot-otp-resend:hover {
    background: #f0f0f0;
}

/* Landing View Styles */
.chatbot-landing-view {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.landing-greeting {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
    padding: 0 20px;
}

.landing-links-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 8px 0;
    color: #333;
    padding: 0 20px;
}

.landing-quick-links-container {
    max-height: 280px;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-quick-links-container::-webkit-scrollbar {
    width: 6px;
}

.landing-quick-links-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.landing-quick-links-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.landing-quick-links-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.landing-send-message {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.landing-send-message:hover {
    border-color: #0066cc;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.send-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.send-message-content strong {
    font-size: 15px;
    color: #333;
}

.send-message-subtitle {
    font-size: 13px;
    color: #666;
}

.send-message-arrow {
    transform: rotate(-90deg);
    color: #999;
}

.landing-quick-link {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.landing-quick-link:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.quick-link-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.quick-link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.quick-link-content strong {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.quick-link-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.chatbot-input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: #0066cc;
}

.chatbot-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.chatbot-send {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chatbot-send:hover:not(:disabled) {
    background-color: #0052a3;
    transform: scale(1.05);
}

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

/* Scrollbar Styles */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-width: 380px;
    }
    
    .edmark-chatbot-widget.position-bottom-right {
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
    }
    
    .edmark-chatbot-widget.position-bottom-left {
        bottom: 10px !important;
        left: 10px !important;
        right: auto !important;
    }
    
    .chatbot-button {
        position: fixed;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: none;
    }
    
    .edmark-chatbot-widget.position-bottom-right,
    .edmark-chatbot-widget.position-bottom-left {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
    }
    
    .chatbot-button {
        position: fixed;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        z-index: 99999;
    }
    
    .chatbot-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}
