/* CSS Variables */
:root {
    --wa-green: #25D366;
    --wa-dark-green: #128C7E;
    --wa-white: #ffffff;
    --wa-gray-icon: #54656f;
    --wa-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --wa-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Prevent horizontal scroll from particles */
html,
body {
    overflow-x: hidden;
}

/* Floating Container - Fixed at bottom */
.wa-floating-bar-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 600px;
    /* Max width on desktop */
    z-index: 9999;
    font-family: var(--wa-font);
}

/* The Bar Itself - Pill Shape */
.wa-bar-content {
    background-color: var(--wa-white);
    border-radius: 30px;
    /* Pill shape */
    padding: 8px 12px;
    box-shadow: var(--wa-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-bar-content:focus-within {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Input Field */
.wa-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #3b4a54;
    padding: 8px 0;
    background: transparent;
    font-family: inherit;
}

.wa-input-field::placeholder {
    color: #8696a0;
}

/* Icon Buttons */
.wa-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wa-gray-icon);
    transition: background-color 0.2s, color 0.2s;
}

.wa-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Specific Style for Send Button */
.wa-icon-btn.send {
    color: var(--wa-gray-icon);
    /* Default gray */
    margin-left: 2px;
}

.wa-icon-btn.send:hover {
    color: var(--wa-green);
}

.wa-icon-btn.send:disabled,
.wa-icon-btn.send.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Decorative icons shouldn't perform actions visually if they are just placeholders, 
   but for now we simulate them being clickable */
.wa-icon-btn.decorative {
    cursor: default;
    /* Remove pointer if it doesn't do anything */
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .wa-floating-bar-container {
        /* 85px base + safe area for browser UI and notch */
        bottom: calc(85px + env(safe-area-inset-bottom, 0px));
        width: 88%;
        left: 50%;
        transform: translateX(-50%);
    }

    .wa-bar-content {
        padding: 10px 16px;
    }

    /* Prevent iOS auto-zoom on input focus */
    .wa-input-field {
        font-size: 16px;
    }
}