.ai-nurse-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    height: calc(100vh - 80px);
}

.chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.ai-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #667eea;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ai-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.ai-info p {
    font-size: 0.85rem;
    color: #10b981;
}

.chat-actions {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.icon-btn.active {
    background: #ef4444;
    color: white;
    animation: pulse 1.5s infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.3s ease-out;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.message-content {
    max-width: 70%;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
    overflow-wrap: anywhere;
}

.ai-message .message-content {
    background: #f3f4f6;
    border-top-left-radius: 4px;
}

.user-message .message-content {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

.message-attachments {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.attachment-item {
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.quick-suggestions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
}

.suggestion-chip {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.suggestion-chip:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.chat-input-container {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: #f9fafb;
    border-radius: 24px;
    padding: 0.5rem;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    font-size: 1rem;
    resize: none;
    max-height: 100px;
}

.chat-input:focus {
    outline: none;
}

.attach-btn, .send-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.send-btn:hover {
    transform: scale(1.1);
}

.attachment-preview {
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.website-action {
    margin-top: 0.75rem;
}

.website-action button {
    border: none;
    border-radius: 18px;
    background: #0f766e;
    color: white;
    cursor: pointer;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
}

.website-action button:hover {
    background: #115e59;
}

@media (max-width: 768px) {
    .ai-nurse-container {
        height: calc(100vh - 64px);
        padding: 0.5rem;
    }

    .chat-header {
        align-items: flex-start;
        padding: 1rem;
        flex-wrap: wrap;
    }

    .chat-header > div:last-child {
        width: 100%;
        justify-content: space-between;
    }

    .message-content {
        max-width: calc(100vw - 92px);
    }

    .quick-suggestions,
    .chat-input-container {
        padding: 0.75rem;
    }
}
