/* ═══════ CHAT SIMULATOR LIGHT THEME ═══════ */

.chat-simulator {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.15);
    max-width: 380px;
    margin: 0 auto;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

/* ─── Header ─── */
.chat-sim-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 212, 170, 0.08);
    border-bottom: 1px solid rgba(0, 212, 170, 0.1);
}

.chat-sim-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--teal, #00d4aa), #00997a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    overflow: hidden;
}

.chat-sim-info {
    display: flex;
    flex-direction: column;
}

.chat-sim-name {
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
}

.chat-sim-status {
    color: var(--teal, #00d4aa);
    font-weight: 600;
    font-size: 12px;
}

/* ─── Body ─── */
.chat-sim-body {
    padding: 20px 16px;
    min-height: 320px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
    background: #fafcfa;
}

.chat-sim-body::-webkit-scrollbar {
    display: none;
}

/* ─── Messages ─── */
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    animation: chatFadeIn 0.4s ease;
    opacity: 0;
    animation-fill-mode: forwards;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

@keyframes chatFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.bot {
    background: #e6f9f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(0, 212, 170, 0.15);
}

.chat-msg.user {
    background: #ffffff;
    color: #1f2937;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    border: 1px solid rgba(0,0,0,0.06);
}

/* ─── Typing indicator ─── */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
    animation: chatFadeIn 0.3s ease forwards;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    background: var(--teal, #00d4aa);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

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

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

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ─── Input ─── */
.chat-sim-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(0, 212, 170, 0.1);
    background: #ffffff;
}

.chat-sim-input span {
    color: #94a3b8;
    font-size: 13px;
}

.chat-sim-send {
    width: 32px;
    height: 32px;
    background: var(--teal, #00d4aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 212, 170, 0.3);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .chat-simulator {
        max-width: 100%;
    }

    .chat-sim-body {
        min-height: 260px;
        max-height: 260px;
    }
}
