/* Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.chatbot-widget.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #35b2e6 0%, #2196f3 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(53, 178, 230, 0.3);
    cursor: pointer;
}

.chatbot-widget.minimized:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(53, 178, 230, 0.4);
}

.chatbot-widget.circle-mode {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #35b2e6 0%, #2196f3 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(53, 178, 230, 0.3);
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.chatbot-widget.circle-mode:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(53, 178, 230, 0.4);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #35b2e6 0%, #2196f3 100%);
    color: white;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.chatbot-widget.circle-mode .chatbot-header {
    padding: 0;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.chatbot-widget.minimized .chatbot-header {
    padding: 0;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-widget.circle-mode .chatbot-header-info,
.chatbot-widget.minimized .chatbot-header-info {
    display: none;
}

.chatbot-widget.circle-mode .chatbot-toggle,
.chatbot-widget.minimized .chatbot-toggle {
    display: none;
}

.chatbot-widget.circle-mode .chatbot-avatar,
.chatbot-widget.minimized .chatbot-avatar {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chatbot-widget.circle-mode .chatbot-header::before,
.chatbot-widget.minimized .chatbot-header::before {
    content: "💬";
    font-size: 28px;
    animation: pulse-icon 2s infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.chatbot-header-text {
    display: flex;
    flex-direction: column;
}

.chatbot-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.chatbot-company {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.2;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-messages.hidden {
    display: none;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f4903a 0%, #ff6b35 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.welcome-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.welcome-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.welcome-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.message {
    display: flex;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

.message.user {
    flex-direction: row-reverse;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.message-avatar.bot {
    background: linear-gradient(135deg, #35b2e6 0%, #2196f3 100%);
    color: white;
}

.message-avatar.user {
    background: linear-gradient(135deg, #f4903a 0%, #ff6b35 100%);
    color: white;
}

.message-content {
    max-width: 75%;
    padding: 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-content.bot {
    background: rgba(255, 255, 255, 0.3);
    color: #374151;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.message-content.user {
    background: linear-gradient(135deg, #f4903a 0%, #ff6b35 100%);
    color: white;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.typing-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.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);
    }
}

.chatbot-input-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0 0 22px 22px;
}

.chatbot-input-container.hidden {
    display: none;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chatbot-input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    max-height: 80px;
    min-height: 44px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    color: #374151;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chatbot-input:focus {
    border-color: #35b2e6;
    box-shadow: 0 0 0 3px rgba(53, 178, 230, 0.1);
}

.chatbot-input::placeholder {
    color: #6b7280;
}

.chatbot-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-send {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f4903a 0%, #ff6b35 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chatbot-send:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b35 0%, #f4903a 100%);
    transform: scale(1.05);
}

.chatbot-send:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.chatbot-send svg {
    width: 18px;
    height: 18px;
}

.chatbot-hint {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chatbot-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        height: 500px;
    }
    
    .chatbot-widget.minimized {
        width: 380px;
        left: auto;
    }
}

/* Icons using CSS */
.icon-plus::before {
    content: "+";
    font-size: 18px;
    font-weight: bold;
}

.icon-minus::before {
    content: "−";
    font-size: 18px;
    font-weight: bold;
}

.icon-send::before {
    content: "→";
    font-size: 18px;
    font-weight: bold;
}

.icon-message::before {
    content: "💬";
    font-size: 24px;
}