/* Floating Chat Widget Styles */
.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    height: 550px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-200);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpFade 0.3s ease;
}

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

.chat-widget-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.12));
    border-bottom: 1px solid var(--ink-200);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-title {
    font-weight: 700;
    color: var(--ink-800);
    font-size: 16px;
}

.chat-widget-close {
    background: none;
    border: none;
    color: var(--ink-600);
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-widget-close:hover {
    background: var(--ink-200);
    color: var(--ink-800);
}

.chat-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-container .form-input {
    flex: 1;
    margin: 0;
}

.chat-input-container .btn {
    margin: 0;
}

@media (max-width: 768px) {
    .chat-widget {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
        height: 500px;
    }
    
    .chat-button {
        right: 16px;
        bottom: 16px;
    }
}
