.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.05);
}

.typing-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #888;
    animation: typing-bounce 1s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
}

.chat-header {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-subtitle {
    font-size: 0.8rem;
    color: white;
}

.chat-messages {
    flex: 1;
    color: black;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px;
    scroll-behavior: smooth;
}

.chat-message-row {
    display: flex;
    margin-bottom: 6px;
}

.chat-message-row.from-coach {
    justify-content: flex-start;
}

.chat-message-row.from-user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message-row.from-coach .chat-bubble {
    background-color: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-message-row.from-user .chat-bubble {
    background-color: #dcf8c6;
    color: #222;
    border-bottom-right-radius: 4px;
}

.bubble-coach {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    background-color: #E8F5E9;
    color: #000;
}

.bubble-user {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    background-color: #FFF3E0;
    color: #000;
}

.chat-replies {
    padding: 8px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* earth game control */
.earth-game-container {
    display: flex;
    align-items: center;
    background-color: #e0f2f1;
    border-radius: 999px;
    padding: 8px 8px 3px 8px;
}

.earth-side.coach-side,
.earth-side.user-side {
    height: 60px;
    flex: 0 0 auto;
}

.earth-track {
    flex: 1;
    height: 60px;
    padding-top: 5px;
    margin-left: 10px;
    margin-right: 58px;
}

.earth {
    position: relative;
    width: 100%;
    height: 100%;
}

.earth-token {
    top: 5px;
    left: 50%;
    transition: transform 0.6s ease-in-out;
    cursor: pointer;
}

.earth-left {
    transform: translateX(0%);
}

.earth-center {
    transform: translateX(50%);
}

.earth-right {
    transform: translateX(100%);
}

.earth-icon {
    animation: earth-pulse 1.5s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes earth-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 102, 255, 0.0));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.3));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 102, 255, 0.0));
    }
}