/* /hugo-chat.css */
.hugo-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.hugo-chat-toggle {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #0073aa, #005177);
    border: none; cursor: pointer; color: white; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hugo-chat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.hugo-chat-window {
    position: absolute; bottom: 80px; right: 0;
    width: 350px; max-width: calc(100vw - 40px);
    height: 500px; max-height: calc(100vh - 100px);
    background: white; border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hugo-chat-window.open { opacity: 1; visibility: visible; transform: translateY(0); }

.hugo-chat-header {
    background: #f0f0f0; padding: 15px 20px; border-bottom: 1px solid #e0e0e0;
    display: flex; justify-content: space-between; align-items: center; border-radius: 15px 15px 0 0;
}
.hugo-chat-title { font-weight: 600; font-size: 16px; color: #333; }
.hugo-chat-close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #888; padding: 0; line-height: 1; }

.hugo-chat-messages { flex-grow: 1; padding: 20px; overflow-y: auto; }
.hugo-chat-message { margin-bottom: 15px; display: flex; flex-direction: column; max-width: 85%; }
.hugo-chat-message .content { padding: 10px 15px; border-radius: 18px; line-height: 1.4; word-break: break-word; }
.hugo-chat-message .meta { font-size: 11px; color: #999; margin-top: 4px; padding: 0 8px; }

.hugo-chat-message.user { align-self: flex-end; align-items: flex-end; }
.hugo-chat-message.user .content { background: #0073aa; color: white; border-bottom-right-radius: 4px; }
.hugo-chat-message.admin { align-self: flex-start; align-items: flex-start; }
.hugo-chat-message.admin .content { background: #e5e5e5; color: #333; border-bottom-left-radius: 4px; }

.hugo-chat-footer { padding: 10px; border-top: 1px solid #e0e0e0; background: #f9f9f9; border-radius: 0 0 15px 15px;}
.hugo-chat-input-wrapper { display: flex; align-items: center; background: white; border: 1px solid #ddd; border-radius: 20px; padding: 5px; }
#hugo-chat-input { flex-grow: 1; border: none; outline: none; resize: none; background: transparent; padding: 8px; font-size: 14px; max-height: 80px; }
#hugo-chat-send-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: #0073aa; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding:0; }
#hugo-chat-send-btn:disabled { background: #ccc; cursor: not-allowed; }

.hugo-chat-admin-btn {
    width: 100%; border: 1px solid #c00; background: #fbeaea; color: #c00;
    padding: 8px; border-radius: 5px; cursor: pointer; font-size: 13px;
    margin-bottom: 10px; text-align: center;
}
.hugo-chat-welcome { text-align: center; padding: 40px 20px; color: #777; }
.hugo-chat-welcome .icon { font-size: 40px; margin-bottom: 10px; }
.hugo-chat-welcome .title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 5px; }

/* --- NEW STYLES FOR EMBEDDED SHORTCODE --- */
.hugo-chat-container.hugo-chat-embedded {
    position: relative; /* Overrides 'fixed' */
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 700px; /* A bit wider for page content */
    margin: 30px auto; /* Center it on the page */
    border: 1px solid #e0e0e0;
    border-radius: 15px;
}
.hugo-chat-container.hugo-chat-embedded .hugo-chat-window {
    position: static; /* No absolute positioning needed */
    width: 100%;
    height: 600px; /* Taller for better page integration */
    box-shadow: none; /* Remove the floating shadow */
    max-height: 80vh;
}

