/* Floating Chat Button - Improved visibility & modern look */
#chat-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.28s ease;
    border: none;
}

#chat-floating-button:hover {
    transform: scale(1.14);
    background: #0062cc;
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

#chat-floating-button i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Unread Badge - red + pulse effect */
#chat-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;          /* bright red */
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 13px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    min-width: 28px;
    padding: 0 3px;
    transition: all 0.2s ease;
}

@keyframes pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70%  { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(220, 53, 69, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

#chat-badge.show {
    display: flex !important;
    animation: pulse 2.2s infinite ease-in-out;
}

/* ────────────────────────────────────────────────────────────── */
/* Rest of your original styles (unchanged)                           */
/* ────────────────────────────────────────────────────────────── */

.chat-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-close {
    font-size: 24px;
    cursor: pointer;
}

.chat-tabs {
    display: flex;
    background: #f8f9fa;
    flex-shrink: 0;
}

.tab-button {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
}

.tab-button.active {
    background: white;
    border-bottom: 3px solid #007bff;
}

.chat-tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.chat-tab-content.active {
    display: flex;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.message {
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.bot {
    background: #e3f2fd;
    align-self: flex-start;
}

.message.user {
    background: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.message.info {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    width: 100%;
    border-radius: 12px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.chat-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.chat-input-area button {
    margin-left: 10px;
    padding: 0 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}