/* assets/css/whatsapp-chat.css */
:root {
    --wa-green: #25D366;
    --wa-dark-green: #128C7E;
    --wa-light-green: #DCF8C6;
    --wa-blue: #34B7F1;
    --wa-bg: #ECE5DD;
}

.wa-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Floating Button */
.wa-chat-trigger {
    width: 60px;
    height: 60px;
    background-color: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
}

.wa-chat-trigger:hover {
    transform: scale(1.1);
    background-color: var(--wa-dark-green);
}

.wa-chat-trigger.active {
    transform: rotate(90deg);
    background-color: var(--slate-600);
}

/* Chat Window */
.wa-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: waSlideUp 0.3s ease-out;
}

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

.wa-chat-window.active {
    display: flex;
}

/* Header */
.wa-chat-header {
    background-color: var(--wa-dark-green);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wa-chat-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border: 2px solid var(--wa-dark-green);
    border-radius: 50%;
}

.wa-chat-header-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.wa-chat-header-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Body */
.wa-chat-body {
    background-color: var(--wa-bg);
    padding: 20px;
    min-height: 150px;
    position: relative;
    overflow-y: auto;
}

/* Message Bubble */
.wa-msg {
    background: white;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
    max-width: 85%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.wa-msg-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 5px;
}

/* Footer / Input */
.wa-chat-footer {
    padding: 15px;
    background: white;
}

.wa-chat-input-container {
    display: flex;
    align-items: center;
    background: #F0F2F5;
    border-radius: 25px;
    padding: 8px 15px;
    gap: 10px;
    cursor: pointer;
}

.wa-chat-input-container:hover {
    background: #e4e6e9;
}

.wa-chat-input-container input {
    flex-grow: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.wa-chat-send {
    color: var(--wa-dark-green);
    font-size: 1.2rem;
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: 75px;
    bottom: 12px;
    background: #1e293b;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #1e293b;
}

.wa-chat-container:hover .wa-tooltip {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .wa-chat-container {
        bottom: 20px;
        right: 20px;
    }
    .wa-chat-window {
        width: calc(100vw - 40px);
        bottom: 70px;
    }
}
