/* CEO Chatbot Widget Styles */
.ceo-chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Rajdhani', sans-serif;
}

/* Chat Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 5%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 0;
    overflow: hidden;
}

.ceo-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5%;
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover .ceo-profile-image {
    transform: scale(1.05);
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.chat-toggle-btn svg {
    width: 24px;
    height: 24px;
}

/* Chat Container */
.chatbot-container {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 1px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.chatbot-header {
    background: linear-gradient(135deg, #330867, #30CFD0);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

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

.header-content img.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.header-text p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.minimize-btn:hover {
    opacity: 1;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9ff;
    scroll-behavior: smooth;
}

.message {
    margin-bottom: 16px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

.ceo-message {
    align-self: flex-start;
    margin-right: auto;
}

.user-message {
    align-self: flex-end;
    margin-left: auto;
}

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

.ceo-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px 0 12px 12px;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    padding: 10px 16px;
    margin-bottom: 16px;
    align-self: flex-start;
    background: white;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #667eea;
    margin: 0 2px;
    opacity: 0.4;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.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); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Quick Options */
.quick-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.quick-option {
    background: #f0f2ff;
    border: 1px solid #e0e4ff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #4a5bd9;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-option:hover {
    background: #e0e4ff;
    transform: translateX(2px);
}

/* Chat Input */
.chat-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid #eaeef7;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-input {
    flex: 1;
    min-height: 24px;
    max-height: 120px;
    padding: 12px 48px 12px 16px;
    border: 2px solid #e0e4ff;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    transition: all 0.2s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-group {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 4px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2ff;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-label:hover {
    background: #e0e4ff;
}

.file-input {
    display: none;
}

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

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.send-btn svg {
    width: 16px;
    height: 16px;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 480px) {
    .ceo-chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-container {
        width: calc(100vw - 30px);
        height: 80vh;
        max-height: 600px;
        bottom: 70px;
        right: 0;
    }
    
    .chat-toggle-btn {
        bottom: 15px;
        right: 15px;
    }
}
