@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&display=swap');

:root {
    --wa-primary: #00a884;
    --wa-primary-dark: #008069;
    --wa-teal: #128c7e;
    --wa-light-green: #25d366;
    --wa-bg-chat: #efeae2;
    --wa-bubble-out: #d9fdd3;
    --wa-bubble-in: #ffffff;
    --wa-dark-bg: #111b21;
    --wa-dark-surface: #202c33;
    --wa-dark-border: #2a3942;
    --wa-dark-text: #e9edef;
    --wa-dark-subtext: #8696a0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Malayalam', sans-serif;
    background-color: #f0f2f5;
    color: #111b21;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8696a0;
}

/* WhatsApp chat background pattern */
.wa-chat-bg {
    background-color: #efeae2;
    background-image: radial-gradient(#d3cbbe 0.75px, transparent 0.75px);
    background-size: 15px 15px;
}

/* Audio Recording Pulse Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.recording-pulse {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Simulated Audio Waveform */
.waveform-bar {
    width: 3px;
    background-color: #54656f;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.waveform-animating .waveform-bar {
    animation: wave-bounce 1.2s ease-in-out infinite alternate;
}

@keyframes wave-bounce {
    0% { height: 6px; }
    50% { height: 24px; }
    100% { height: 12px; }
}

.waveform-animating .waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-animating .waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-animating .waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-animating .waveform-bar:nth-child(5) { animation-delay: 0.15s; }
.waveform-animating .waveform-bar:nth-child(6) { animation-delay: 0.25s; }
.waveform-animating .waveform-bar:nth-child(7) { animation-delay: 0.05s; }

/* Phone Mockup Frame */
.phone-mockup {
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 10px #1e293b;
}

/* WhatsApp Message Bubble Tail */
.chat-bubble-out::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #d9fdd3;
    border-right: 10px solid transparent;
}
