/* Floating Support Ticket Chat Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --primary-color: #4f46e5;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

.floating-chat-container {
    position: fixed;
    bottom: 0;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none;
}

.chat-window {
    width: 380px;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    transition: height 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 480px;
    font-family: 'Inter', 'Outfit', sans-serif;
}

.chat-window.minimized {
    height: 48px !important;
}

.chat-window-header {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    height: 48px;
}

.chat-window-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-window-actions i {
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    padding: 4px;
}

.chat-window-actions i:hover {
    opacity: 1;
}

.chat-window-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-window-footer {
    padding: 10px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: white;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-window-textarea {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 0.95rem;
    height: 38px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.3;
}

.chat-window-textarea:focus {
    border-color: var(--primary-color);
}

.chat-window-send {
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
    transition: transform 0.2s;
    outline: none;
}

.chat-window-send:hover {
    transform: scale(1.05);
}

.chat-bubble {
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reply-agent {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-bottom-left-radius: 2px !important;
}

.reply-client {
    background: rgba(99, 102, 241, 0.08) !important;
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    border-bottom-right-radius: 2px !important;
}
