* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#pulmorin-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #059669;
    border: 2px solid #059669;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#pulmorin-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
    border-width: 5px;
}

#pulmorin-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pulmorin-chat {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    animation: slideUp 0.3s ease;
}
#pulmorin-chat.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#pulmorin-header {
    background: #059669;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#pulmorin-header h3 {
    font-size: 18px;
    font-weight: 600;
}

#pulmorin-header small {
    font-size: 12px;
    opacity: 0.9;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pulmorin-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 16px;
    display: flex;
    animation: fadeIn 0.3s ease;
}

.message:first-child {
    margin-top: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.bot .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message.user .message-content {
    background: #059669;
    color: white;
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: none;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.typing-indicator.active {
    display: block;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

#pulmorin-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #e1e4e8;
    display: flex;
    gap: 8px;
}

#pulmorin-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e4e8;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

#pulmorin-input:focus {
    border-color: #059669;
}

#send-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #059669;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#send-button:hover {
    transform: scale(1.05);
    background: #047857;
}

#send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#send-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}