 /* Chat Bubble */
 #eac-ai-chat-close {
    cursor: pointer;
    padding: 0px 8px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

#eac-ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

#eac-ai-chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #2271b1;
    color: #fff;
    padding: 14px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.eac-ai-chat-text {
    font-size: 14px;
    font-weight: 600;
    padding: 0 6px;
    white-space: nowrap;
}


 /* Chat Popup */
 #eac-ai-chat-popup {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 350px;
    height: 420px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,.3);
    z-index: 99999;
    /* 🔥 IMPORTANT */
    display: flex;
    flex-direction: column;
}

 /* Header */
 .eac-ai-chat-header {
    background: #2271b1;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
 }

 .eac-ai-input {
    position: relative;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

/* Textarea */
.eac-ai-input textarea {
    width: 100%;
    height: 50px;
    resize: none;
    padding: 12px 42px 8px 10px; /* 🔥 space for send icon */
    font-size: 13px;
    box-sizing: border-box;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
}

/* Send icon button INSIDE textarea */
.eac-ai-input span {
    position: absolute;
    right: 18px;
    bottom: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #2271b1;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover */
.eac-ai-input span:hover {
    background: #135e96;
}

/* Remove old full-width button look */
.eac-ai-input span {
    margin: 0;
}



 #eac-ai-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Messages */
 #eac-ai-messages {
    flex: 1; /* 🔥 takes all remaining height */
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

.eac-user-msg {
    align-self: flex-end;
    background: #e8f1ff;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 13px;
}

.eac-ai-msg {
    align-self: flex-start;
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 13px;
}

/* Tag container */
#eac-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 5px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    max-height: 100px;
    overflow: auto;
}

/* Individual tag */
.eac-ai-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    font-size: 10px;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid #dbeafe;
}

/* Hover */
.eac-ai-tag:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Active click */
.eac-ai-tag:active {
    transform: scale(0.96);
}

#eac-ai-tags:empty {
    border-top: none;
}


/* ===============================
   Compact Calendar for AI Chat
   =============================== */

#eac-ai-calendar {
    padding: 6px;
    max-width: 260px;
    margin: 6px auto;
}

/* Scope ONLY inside chat popup */
#eac-ai-chat-popup .ui-datepicker {
    width: 240px !important;
    font-size: 12px;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header */
#eac-ai-chat-popup .ui-datepicker-header {
    padding: 4px 0;
    font-size: 12px;
}

/* Month title */
#eac-ai-chat-popup .ui-datepicker-title {
    font-weight: 600;
    font-size: 12px;
}

/* Navigation arrows */
#eac-ai-chat-popup .ui-datepicker-prev,
#eac-ai-chat-popup .ui-datepicker-next {
    top: 6px;
    width: 20px;
    height: 20px;
}

/* Calendar table */
#eac-ai-chat-popup .ui-datepicker table {
    width: 100%;
    margin: 4px 0 0;
}

/* Day cells */
#eac-ai-chat-popup .ui-datepicker td a {
    padding: 4px;
    font-size: 11px;
    border-radius: 6px;
    text-align: center;
}

/* Hover & selected */
#eac-ai-chat-popup .ui-datepicker td a:hover {
    background: #007cba;
    color: #fff;
}

#eac-ai-chat-popup .ui-datepicker .ui-state-active {
    background: #007cba !important;
    color: #fff !important;
}

/* Weekday header */
#eac-ai-chat-popup .ui-datepicker th {
    font-size: 10px;
    font-weight: 500;
    padding: 4px 0;
}

/* Remove extra spacing */
#eac-ai-chat-popup .ui-datepicker-calendar {
    margin: 0;
}

#eac-ai-typing {
    margin: 8px 0 0 10px;
    padding: 4px 12px;
    background: #f1f1f1;
    border-radius: 12px;
    width: fit-content;
    font-size: 14px;
}

#eac-ai-typing::before {
    content: "AI is typing";
    margin-right: 8px;
    color: #555;
}

#eac-ai-typing .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: #666;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

#eac-ai-typing .dot:nth-child(1) { animation-delay: 0s; }
#eac-ai-typing .dot:nth-child(2) { animation-delay: 0.2s; }
#eac-ai-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}






