/* Chatbot Modal Styles */
/* Chatbot Overlay */
.chatbot-overlay {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chatbot-overlay.active {
    display: block;
    opacity: 1;
}

.chatbot-container {
    width: 420px;
    height: 650px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 10px 40px rgba(230, 57, 70, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(255, 107, 122, 0.2) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.chatbot-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(230, 57, 70, 0.5), 
        rgba(255, 107, 122, 0.5), 
        transparent);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #E63946 0%, #ff6b7a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    position: relative;
    color: white;
    font-size: 20px;
}

.chatbot-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

.chatbot-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
}

.chatbot-title h3 .accent {
    color: #E63946;
}

.chatbot-status {
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

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

.chatbot-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Chatbot Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages */
.chatbot-message {
    margin-bottom: 20px;
    animation: fadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

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

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

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

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #E63946 0%, #ff6b7a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
    color: white;
    font-size: 18px;
}

.chatbot-message.user .message-avatar {
    background: linear-gradient(135deg, #4A90E2 0%, #63a4ff 100%);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

.chatbot-message.bot .message-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    padding: 14px 18px;
    border-radius: 18px;
    border-top-left-radius: 4px;
    max-width: 70%;
    backdrop-filter: blur(10px);
    line-height: 1.6;
    font-size: 14px;
}

.chatbot-message.user .message-content {
    background: linear-gradient(135deg, #E63946 0%, #ff6b7a 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 18px;
    border-top-right-radius: 4px;
    max-width: 70%;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    line-height: 1.6;
    font-size: 14px;
}

/* Typing Indicator */
.chatbot-typing {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 25px;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #E63946, #ff6b7a);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-12px) scale(1.2);
        opacity: 1;
    }
}

/* Chatbot Input Container */
.chatbot-input-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
}

.chatbot-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    color: white;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.chatbot-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #E63946 0%, #ff6b7a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    font-size: 18px;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-overlay {
        right: 20px;
        bottom: 80px;
    }

    .chatbot-container {
        width: 380px;
        height: 600px;
    }
}

@media (max-width: 500px) {
    .chatbot-overlay {
        right: 15px;
        bottom: 75px;
    }

    .chatbot-container {
        width: calc(100vw - 30px);
        height: 500px;
        max-height: calc(100vh - 150px);
    }
}
