/* TWEAKS & REFINEMENT FOR LIVE MOCKUP */
.hero-mockup {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.mockup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: #202c33;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.user-info h4 {
    font-size: 0.95rem;
    margin: 0;
}

.user-info p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-muted);
}

.header-icons {
    display: flex;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    align-items: center;
}

.mockup-body {
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    scroll-behavior: smooth;
    background-color: #0b141a; /* WhatsApp default chat bg theme */
}

/* Menyembunyikan scrollbar bawaan agar tetap bersih */
.mockup-body::-webkit-scrollbar {
    width: 4px;
}
.mockup-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* STATUS ANIMATION */
#bot-status {
    transition: var(--transition);
}
#bot-status.status-typing {
    color: #25D366;
    font-weight: 500;
}

/* MESSAGE BASE ANIMATION */
.message {
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 0.88rem;
    opacity: 0;
    transform: translateY(12px);
    animation: messageAppear 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    position: relative;
    line-height: 1.4;
}

/* PERBAIKAN: Diferensiasi Bubble Side & Color */
.message.incoming {
    align-self: flex-start;
    background-color: #202c33;
    color: var(--text-main);
    border-top-left-radius: 0;
}

.message.outgoing {
    align-self: flex-end;
    background-color: #005c4b; /* WhatsApp Green Outgoing bubble */
    color: #e9edef;
    border-top-right-radius: 0;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TIMESTAMPS INSIDE BUBBLE */
.message::after {
    content: attr(data-time);
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: 4px;
}

/* RESPONSIVE MEDIA STYLES WITHIN CHAT */
.media-container {
    margin-top: 6px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255,255,255,0.05);
}

.media-container.sticker-img {
    width: 120px;
    height: 120px;
    background: transparent;
    border: none;
}

.media-container.sticker-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: floatSticker 3s ease-in-out infinite;
}

.media-container.video-preview {
    width: 180px;
    height: 240px;
    background: #000;
    position: relative;
    align-items: center;
    justify-content: center;
}

.media-container.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.media-container.video-preview .play-btn {
    position: absolute;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* WHATSAPP TYPING BUBBLE INDICATOR */
.typing-indicator-container {
    padding: 0 20px 15px;
    background-color: #0b141a;
    display: none;
}

.typing-indicator-container.show {
    display: block;
}

.typing-indicator {
    background-color: #202c33;
    padding: 10px 16px;
    border-radius: 8px;
    border-top-left-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    height: 6px;
    width: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

@keyframes floatSticker {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
