body {
            margin: 0;
            padding: 0;
            background: radial-gradient(circle at center, #0a0f24, #02050e);
            font-family: "Poppins", sans-serif;
            height: 100vh;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container {
            width: 90%;
            max-width: 750px;
            height: 90%;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            backdrop-filter: blur(18px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 25px rgba(0, 217, 255, 0.3);
            display: flex;
            flex-direction: column;
            padding: 20px;
        }

        .header {
            text-align: center;
            color: #00eaff;
            font-size: 32px;
            margin-bottom: 12px;
            text-shadow: 0 0 25px #00eaff;
        }

        .chat-box {
            flex: 1;
            overflow-y: auto;
            padding-right: 10px;
            padding-left: 10px;
        }

        .chat {
            margin: 12px 0;
            display: flex;
            align-items: flex-start;
        }

        .you {
            justify-content: flex-end;
        }

        .bubble {
            max-width: 75%;
            padding: 12px 18px;
            border-radius: 14px;
            font-size: 16px;
            line-height: 1.4;
        }

        .your-msg {
            background: #00eaff;
            color: black;
            border-bottom-right-radius: 0;
        }

        .jarvis-msg {
            background: rgba(255, 255, 255, 0.09);
            color: white;
            border-bottom-left-radius: 0;
            border: 1px solid rgba(0, 255, 255, 0.2);
        }

        /* Typing Animation */
        .typing {
            width: 60px;
            height: 20px;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        .typing span {
            width: 8px;
            height: 8px;
            background: #00eaff;
            border-radius: 50%;
            animation: bounce 1s infinite;
        }

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

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

        /* Input Area */
        .input-area {
            display: flex;
            gap: 10px;
            padding: 10px 0;
        }

        .input-field {
            flex: 1;
            padding: 14px 20px;
            font-size: 16px;
            border-radius: 30px;
            border: none;
            outline: none;
            background: rgba(255,255,255,0.08);
            color: white;
            border: 1px solid rgba(0, 217, 255, 0.25);
        }

        /* Mic Animation */
        .mic-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #00eaff;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 0 25px #00eaff;
            transition: 0.2s;
            position: relative;
        }

        .mic-btn img {
            width: 36px;
        }

        .mic-btn.listening {
            animation: pulse 1.2s infinite;
        }

        /* === TTS Button Container === */
.tts-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

/* === Main Button Style === */
.jarvis-btn {
    padding: 12px 28px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    color: white;
    background: rgba(0, 217, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: 0.25s ease;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.35);
}

/* === Speak Button Colors === */
.speak-btn {
    background: linear-gradient(135deg, #00eaff55, #0055ff55);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.5);
}

/* === Stop Button Colors === */
.stop-btn {
    background: linear-gradient(135deg, #ff004055, #ff550055);
    box-shadow: 0 0 18px rgba(255, 0, 80, 0.5);
}

/* === Hover Effect === */
.jarvis-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.8);
}

/* === Press / Active Effect === */
.jarvis-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

        @keyframes pulse {
            0% { box-shadow: 0 0 20px #00eaff; }
            50% { box-shadow: 0 0 50px #00eaff; }
            100% { box-shadow: 0 0 20px #00eaff; }
        }

/* Welcome Message Styling */
.welcome-banner {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 217, 255, 0.15);
    padding: 12px 25px;
    border-radius: 30px;
    color: #00eaff;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(8px);
    text-shadow: 0 0 10px #00eaff;
    opacity: 0;
    animation: fadeSlide 0.9s forwards;
}

/* Show animation */
@keyframes fadeSlide {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Hide animation */
.fade-out {
    animation: fadeOut 0.8s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
