/* HomeCare Chat Widget - Complete Updated Version */
/* File: homecare-chat-large2.css */
/* Fixed: Links, Avatar visibility, Added voice chat support */

:root {
    /* Your specified colors */
    --hc-primary: #0E1B4D;           /* Navy blue from your site */
    --hc-primary-light: #13C5DD;     /* Primary light color */
    --hc-primary-subtle: #e1f9fc;    /* Primary subtle */
    --hc-warning: #FFAD0F;           /* Warning color */
    --hc-success: #027A48;           /* Success color */
    --hc-error: #ef4444;             /* Red error */
    --hc-text: #1f2937;              /* Dark gray text */
    --hc-text-light: #475467;        /* Secondary text color */
    --hc-white: #ffffff;             /* Pure white */
    --hc-gray-50: #f9fafb;           /* Very light gray */
    --hc-gray-100: #f3f4f6;          /* Light gray background */
    --hc-primary-dark: #00001f;      /* Primary dark */
    --hc-secondary: #475467;         /* Secondary color */
}

/* Fix text blur and improve rendering */
.homecare-chat-widget * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === MAIN WIDGET CONTAINER === */
.homecare-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--hc-white);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(14, 27, 77, 0.3);
    z-index: 9999;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 2px solid var(--hc-primary-subtle);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    
    /* Large size */
    width: 500px;
    height: 750px;
}

/* Extra large desktop - even bigger */
@media (min-width: 1440px) {
    .homecare-chat-widget {
        width: 550px;
        height: 800px;
    }
}

/* Large desktop alternative positioning */
@media (min-width: 1200px) {
    .homecare-chat-widget {
        bottom: 30px;
        right: 30px;
    }
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .homecare-chat-widget {
        width: 480px !important;
        height: 700px !important;
    }
}

@media (max-width: 768px) {
    .hc-welcome-message p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hc-welcome-message p {
        font-size: 12px;
    }
}

/* === KNOWLEDGE BASE BADGE === */
.hc-kb-badge {
    background: var(--hc-success);
    color: var(--hc-white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .hc-kb-badge {
        font-size: 10px;
        padding: 2px 6px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .hc-kb-badge {
        font-size: 9px;
        padding: 1px 4px;
        margin-left: 6px;
    }
}

/* === FORCE PROPER TEXT COLORS === */
.hc-chat-messages * {
    color: inherit !important;
}

.hc-message-incoming .hc-bubble * {
    color: var(--hc-text) !important;
}

.hc-message-outgoing .hc-bubble * {
    color: var(--hc-white) !important;
}

.hc-chat-header * {
    color: var(--hc-white) !important;
}

.hc-chat-input {
    color: var(--hc-text) !important;
    background: var(--hc-white) !important;
}

/* === ACCESSIBILITY === */
.hc-chat-input:focus,
.hc-chat-send-btn:focus,
.hc-voice-btn:focus,
.hc-category-tag:focus,
.hc-category-toggle-btn:focus,
.hc-chat-close:focus,
.chat-button:focus {
    outline: 3px solid var(--hc-primary-light);
    outline-offset: 2px;
}

/* === FIX HOVER BLUR === */
.hc-message:hover {
    transform: none;
}

.hc-category-tag:hover {
    transform: none;
}

.hc-chat-send-btn:hover {
    transform: none;
}

.hc-category-toggle-btn:hover {
    transform: none;
}

.chat-button:hover {
    transform: none;
}

/* === WEBKIT OPTIMIZATIONS === */
@supports (-webkit-touch-callout: none) {
    .hc-chat-input {
        -webkit-appearance: none;
        border-radius: 25px;
    }
    
    .hc-category-toggle-btn,
    .hc-chat-send-btn,
    .hc-voice-btn,
    .hc-chat-close,
    .chat-button {
        -webkit-tap-highlight-color: transparent;
    }
    
    .hc-chat-messages {
        -webkit-overflow-scrolling: touch;
    }
}

/* === HIGH DPI OPTIMIZATION === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .homecare-chat-widget {
        border-width: 1px;
    }
    
    .hc-chat-header::before {
        background-size: 10px 10px;
    }
}

/* === PRINT STYLES === */
@media print {
    .homecare-chat-widget {
        display: none !important;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-width: 768px) and (orientation: landscape) {
    .homecare-chat-widget {
        height: 95vh !important;
        max-height: 95vh !important;
    }
    
    .hc-chat-header {
        padding: 12px 16px;
    }
    
    .hc-chat-messages {
        padding: 16px;
    }
    
    .hc-chat-input-area {
        padding: 12px 16px;
    }
}

/* === EXTRA SMALL DEVICES === */
@media (max-width: 320px) {
    .homecare-chat-widget {
        width: calc(100vw - 8px) !important;
        right: 4px;
        bottom: 4px;
    }
    
    .hc-chat-header {
        padding: 10px 12px;
    }
    
    .hc-chat-header-info h4 {
        font-size: 12px;
    }
    
    .hc-chat-header-info p {
        font-size: 10px;
    }
    
    .hc-chat-messages {
        padding: 12px;
    }
    
    .hc-bubble {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .hc-categories {
        grid-template-columns: 1fr 1fr;
    }
    
    .hc-category-tag {
        font-size: 9px;
        padding: 4px 6px;
    }
    
    .hc-voice-btn,
    .hc-chat-send-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* === ANIMATION PERFORMANCE === */
.homecare-chat-widget,
.hc-message,
.hc-typing-dot,
.hc-notification-badge,
.ep-floating-button__bot-dot {
    will-change: transform;
}

.hc-chat-messages {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
    .hc-message,
    .chat-button,
    .hc-category-tag,
    .hc-chat-send-btn,
    .hc-voice-btn,
    .hc-category-toggle-btn {
        animation: none;
        transition: none;
    }
    
    .hc-typing-dot,
    .ep-floating-button__bot-dot {
        animation: none;
    }
    
    .hc-notification-badge {
        animation: none;
    }
    
    .hc-voice-btn.recording {
        animation: none;
        background: var(--hc-error);
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .homecare-chat-widget {
        border: 3px solid var(--hc-primary);
    }
    
    .hc-bubble {
        border-width: 2px;
    }
    
    .hc-category-tag,
    .hc-chat-send-btn,
    .hc-voice-btn,
    .chat-button {
        border: 2px solid currentColor;
    }
}px) {
    .homecare-chat-widget {
        width: calc(100vw - 16px) !important;
        height: 85vh !important;
        right: 8px;
        bottom: 8px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .homecare-chat-widget {
        width: calc(100vw - 12px) !important;
        height: 90vh !important;
        right: 6px;
        bottom: 6px;
        border-radius: 12px;
    }
}

/* === MINIMIZED STATE === */
.homecare-chat-widget.minimized {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    border: 3px solid var(--hc-primary-light);
    box-shadow: 0 8px 25px rgba(14, 27, 77, 0.4);
}

@media (max-width: 768px) {
    .homecare-chat-widget.minimized {
        width: 65px !important;
        height: 65px !important;
    }
}

.homecare-chat-widget.minimized .hc-chat-content {
    display: none !important;
}

/* === CHAT BUTTON WITH ANIMATED DOTS === */
.chat-button {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-primary-dark) 100%);
    border-radius: 50%;
    border: 2px solid var(--hc-primary-light);
    color: var(--hc-white);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
}

.homecare-chat-widget.minimized .chat-button {
    display: flex !important;
}

.chat-button:hover {
    box-shadow: 0 6px 12px rgba(14, 27, 77, 0.3);
}

/* Animated dots */
.chat-button .ep-floating-button__bot-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.chat-button .ep-floating-button__bot-dot {
    width: 6px;
    height: 6px;
    background: var(--hc-white);
    border-radius: 50%;
    margin: 0 2px;
    animation: dotPulse 1.5s infinite;
}

.chat-button .ep-floating-button__bot-dot:nth-child(2) { 
    animation-delay: 0.5s; 
}

.chat-button .ep-floating-button__bot-dot:nth-child(3) { 
    animation-delay: 1s; 
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.6; 
    }
    50% { 
        transform: scale(1.4); 
        opacity: 1; 
    }
}

.hc-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--hc-warning);
    color: var(--hc-white);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hc-white);
}

/* === CHAT CONTENT === */
.hc-chat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--hc-white);
}

/* === HEADER === */
.hc-chat-header {
    background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-primary-dark) 100%);
    color: var(--hc-white);
    padding: 20px 24px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hc-chat-header {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .hc-chat-header {
        padding: 14px 18px;
    }
}

.hc-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hc-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hc-grid)"/></svg>');
    z-index: 1;
}

.hc-chat-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hc-chat-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .hc-chat-logo img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .hc-chat-logo img {
        height: 28px;
    }
}

.hc-chat-logo i {
    font-size: 28px;
    color: var(--hc-white);
}

@media (max-width: 768px) {
    .hc-chat-logo i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hc-chat-logo i {
        font-size: 20px;
    }
}

.hc-chat-header-info {
    text-align: center;
    flex: 1;
    margin: 0 12px;
    min-width: 0;
}

@media (max-width: 768px) {
    .hc-chat-header-info {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hc-chat-header-info {
        margin: 0 8px;
    }
}

.hc-chat-header-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--hc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .hc-chat-header-info h4 {
        font-size: 16px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hc-chat-header-info h4 {
        font-size: 14px;
        gap: 4px;
    }
}

.hc-chat-header-info p {
    font-size: 13px;
    margin: 6px 0 0 0;
    opacity: 0.9;
    color: var(--hc-white);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .hc-chat-header-info p {
        font-size: 12px;
        margin: 4px 0 0 0;
    }
}

@media (max-width: 480px) {
    .hc-chat-header-info p {
        font-size: 11px;
        margin: 2px 0 0 0;
    }
}

.hc-chat-header-info p strong {
    color: var(--hc-white);
}

.hc-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--hc-white);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

@media (max-width: 768px) {
    .hc-chat-close {
        font-size: 18px;
        padding: 8px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hc-chat-close {
        font-size: 16px;
        padding: 6px;
        width: 32px;
        height: 32px;
    }
}

.hc-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* === CHAT BODY === */
.hc-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--hc-white);
    overflow: hidden;
}

/* === MESSAGES AREA === */
.hc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--hc-white);
}

@media (max-width: 768px) {
    .hc-chat-messages {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hc-chat-messages {
        padding: 16px;
    }
}

.hc-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.hc-chat-messages::-webkit-scrollbar-track {
    background: var(--hc-gray-100);
    border-radius: 4px;
}

.hc-chat-messages::-webkit-scrollbar-thumb {
    background: var(--hc-primary-light);
    border-radius: 4px;
}

/* === MESSAGES === */
.hc-message {
    display: flex;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .hc-message {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .hc-message {
        margin-bottom: 14px;
    }
}

.hc-message-incoming {
    justify-content: flex-start;
}

.hc-message-outgoing {
    justify-content: flex-end;
}

/* Fixed avatar colors and visibility */
.hc-message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 12px;
    border: 2px solid var(--hc-white);
}

@media (max-width: 768px) {
    .hc-message-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .hc-message-avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
        margin-right: 8px;
    }
}

/* Force white text in all avatar elements */
.hc-message-avatar * {
    color: var(--hc-white) !important;
    text-shadow: none !important;
}

.hc-message-avatar.bot,
.hc-message-avatar.user {
    background: var(--hc-primary) !important;
    color: var(--hc-white) !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hc-message-avatar.bot {
    background: var(--hc-primary);
    color: var(--hc-white) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    border: 2px solid var(--hc-white);
    font-size: 14px !important;
}

.hc-message-avatar.user {
    background: var(--hc-primary);
    color: var(--hc-white) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    border: 2px solid var(--hc-white);
    margin-right: 0;
    margin-left: 12px;
}

@media (max-width: 768px) {
    .hc-message-avatar.user {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .hc-message-avatar.user {
        margin-left: 8px;
    }
}

.hc-message-avatar i {
    font-size: 16px !important;
    color: var(--hc-white) !important;
}

.hc-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hc-bubble {
        font-size: 14px;
        padding: 12px 16px;
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .hc-bubble {
        font-size: 13px;
        padding: 10px 14px;
        max-width: 85%;
    }
}

.hc-message-incoming .hc-bubble {
    background: var(--hc-white);
    color: var(--hc-text);
    border: 2px solid var(--hc-primary-subtle);
    border-bottom-left-radius: 8px;
    box-shadow: 0 3px 12px rgba(14, 27, 77, 0.1);
}

.hc-message-outgoing .hc-bubble {
    background: var(--hc-primary);
    color: var(--hc-white);
    border-bottom-right-radius: 8px;
    box-shadow: 0 3px 12px rgba(14, 27, 77, 0.2);
}

/* Fix for malformed links */
.hc-bubble a[href$=")./"],
.hc-bubble a[href$=")/"],
.hc-bubble a[href$=")."] {
    display: none !important;
}

.hc-bubble a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.hc-bubble strong {
    font-weight: 700;
}

.hc-bubble ul {
    margin: 10px 0;
    padding-left: 18px;
}

.hc-bubble p {
    margin: 0 0 10px 0;
}

.hc-bubble p:last-child {
    margin-bottom: 0;
}

/* === TYPING INDICATOR === */
.hc-typing-indicator {
    display: flex;
    gap: 8px;
    padding: 14px 0;
    align-items: center;
}

.hc-typing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hc-primary-light);
    animation: hc-typing 1.4s infinite ease-in-out;
}

.hc-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.hc-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes hc-typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* === INPUT AREA === */
.hc-chat-input-area {
    flex-shrink: 0;
    padding: 20px 24px;
    background: var(--hc-white);
    border-top: 2px solid var(--hc-primary-subtle);
}

@media (max-width: 768px) {
    .hc-chat-input-area {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .hc-chat-input-area {
        padding: 14px 16px;
    }
}

/* === CATEGORIES === */
.hc-category-toggle-wrapper {
    margin-bottom: 14px;
}

.hc-category-toggle-btn {
    background: var(--hc-primary-subtle);
    border: 2px solid var(--hc-primary-light);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: var(--hc-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hc-category-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hc-category-toggle-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}

.hc-category-toggle-btn:hover {
    background: var(--hc-primary-light);
    color: var(--hc-white);
}

.hc-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .hc-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hc-categories {
        gap: 4px;
    }
}

.hc-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hc-primary);
    color: var(--hc-white);
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hc-category-tag {
        padding: 6px 8px;
        font-size: 11px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .hc-category-tag {
        padding: 5px 6px;
        font-size: 10px;
        gap: 3px;
    }
}

.hc-category-tag:hover {
    background: var(--hc-primary-light);
    color: var(--hc-white);
    box-shadow: 0 4px 8px rgba(19, 197, 221, 0.3);
}

.hc-category-tag i {
    font-size: 13px;
    color: inherit;
}

@media (max-width: 768px) {
    .hc-category-tag i {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hc-category-tag i {
        font-size: 10px;
    }
}

/* === CHAT INPUT WITH VOICE SUPPORT === */
.hc-chat-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .hc-chat-input-container {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hc-chat-input-container {
        gap: 6px;
    }
}

.hc-chat-input {
    flex: 1;
    border: 2px solid var(--hc-primary-subtle);
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    resize: none !important;
    overflow: hidden;
    min-height: 22px;
    max-height: 120px;
    line-height: 1.4;
    background: var(--hc-white);
    color: var(--hc-text);
}

@media (max-width: 768px) {
    .hc-chat-input {
        padding: 12px 18px;
        font-size: 14px;
        max-height: 100px;
    }
}

@media (max-width: 480px) {
    .hc-chat-input {
        padding: 10px 16px;
        font-size: 13px;
        max-height: 80px;
    }
}

.hc-chat-input::placeholder {
    color: var(--hc-text-light);
}

.hc-chat-input:focus {
    border-color: var(--hc-primary-light);
    box-shadow: 0 0 0 4px rgba(19, 197, 221, 0.1);
}

/* === VOICE CHAT BUTTON === */
.hc-voice-btn {
    background: var(--hc-success);
    color: var(--hc-white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(2, 122, 72, 0.3);
    font-size: 16px;
}

@media (max-width: 768px) {
    .hc-voice-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hc-voice-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.hc-voice-btn:hover {
    background: #059669;
    box-shadow: 0 8px 20px rgba(2, 122, 72, 0.4);
}

.hc-voice-btn.recording {
    background: var(--hc-error);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hc-chat-send-btn {
    background: var(--hc-primary);
    color: var(--hc-white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(14, 27, 77, 0.3);
    font-size: 16px;
}

@media (max-width: 768px) {
    .hc-chat-send-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hc-chat-send-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.hc-chat-send-btn:hover {
    box-shadow: 0 8px 20px rgba(14, 27, 77, 0.4);
}

.hc-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === WELCOME MESSAGE === */
.hc-welcome-message {
    background: linear-gradient(135deg, var(--hc-primary-subtle) 0%, var(--hc-white) 100%);
    border: 2px solid var(--hc-primary-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .hc-welcome-message {
        padding: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hc-welcome-message {
        padding: 14px;
        margin-bottom: 16px;
    }
}

.hc-welcome-message h5 {
    color: var(--hc-primary) !important;
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 768px) {
    .hc-welcome-message h5 {
        font-size: 15px;
        margin: 0 0 8px 0;
    }
}

@media (max-width: 480px) {
    .hc-welcome-message h5 {
        font-size: 14px;
        margin: 0 0 6px 0;
    }
}

.hc-welcome-message p {
    color: var(--hc-text-light) !important;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

