/* VYN SEC BOT - ISOLATED STYLES */
/* This won't interfere with your main website */

/* Floating Button */
#vynsec-chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff9d, #00b8ff);
    border: none;
    border-radius: 50%;
    color: #0b1220;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.4);
    transition: all 0.3s ease;
}

#vynsec-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.6);
}

/* Chat Widget */
#vynsec-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: #0f172a;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 157, 0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#vynsec-chat-widget.hidden {
    display: none !important;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #020617 0%, #0b1220 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 157, 0.2);
}

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

.chat-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00ff9d, #00b8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1220;
    font-size: 16px;
}

.chat-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.status {
    font-size: 11px;
    color: #00ff9d;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #00ff9d;
    border-radius: 50%;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* Chat Box */
.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #0b1220;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Messages */
.message {
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

.message.bot {
    align-self: flex-start;
}

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

.message-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.bot-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.message-text {
    background: #1e293b;
    padding: 12px 16px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    color: #f1f5f9;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.message.user .message-text {
    background: linear-gradient(135deg, #00ff9d, #00b8ff);
    color: #0b1220;
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.message-sender {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}

.message.user .message-sender {
    color: rgba(11, 18, 32, 0.7);
}

.message-time {
    font-size: 10px;
    color: #64748b;
    margin-top: 4px;
    margin-left: 38px;
    font-family: 'Inter', sans-serif;
}

/* Quick Replies */
.quick-replies {
    padding: 12px 20px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply-btn {
    padding: 8px 14px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: #00ff9d;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.quick-reply-btn:hover {
    background: rgba(0, 255, 157, 0.2);
    transform: translateY(-1px);
}

/* Chat Input */
.chat-input-container {
    display: flex;
    padding: 12px 20px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #00ff9d;
}

.chat-input-container input::placeholder {
    color: #64748b;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00ff9d, #00b8ff);
    color: #0b1220;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.send-btn:hover {
    transform: translateY(-2px);
}

/* Chat Footer */
.chat-footer {
    padding: 10px 20px;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-text {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #1e293b;
    border-radius: 16px;
    border-top-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.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(-4px); }
}

/* Progress Bar */
.progress-container {
    padding: 8px 20px;
    background: #0f172a;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.progress-bar {
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff9d, #00b8ff);
    transition: width 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    #vynsec-chat-widget {
        width: calc(100vw - 40px);
        height: 70vh;
        right: 20px;
        left: 20px;
        bottom: 90px;
    }
    
    #vynsec-chat-toggle {
        bottom: 20px;
        right: 20px;
    }
}
