 .chat-container {
            width: 400px;
            margin: auto;
            border: 1px solid #ccc;
            padding: 10px;
            background: #f9f9f9;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        }

        .chat-box {
            height: 300px;
            overflow-y: auto;
            border-bottom: 1px solid #ccc;
            padding-bottom: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .chat-box div {
            max-width: 75%;
            padding: 8px 12px;
            border-radius: 12px;
            word-wrap: break-word;
        }

        .chat-box div:nth-child(odd) {
            align-self: flex-start;
            background: #e0e0e0;
            color: #333;
        }

        .chat-box div:nth-child(even) {
            align-self: flex-end;
            background: #0078ff;
            color: #fff;
        }

        .chat-input {
            width: calc(100% - 10px);
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 6px;
            outline: none;
        }

        .chat-controls {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            align-items: center;
        }

        .icon-button {
            cursor: pointer;
            font-size: 18px;
            border: none;
            background: none;
            margin: 0 5px;
            padding: 6px;
            transition: transform 0.2s;
        }

        .icon-button:hover {
            transform: scale(1.1);
        }

        #sendMessageBtn {
            background: #0078ff;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.3s;
        }

        #sendMessageBtn:hover {
            background: #005fcc;
        }
        .copy-btn {
    background: #0078ff;
    color: white;
    border: none;
    padding: 4px 8px;  /* Reduced padding for a smaller button */
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;  /* Reduced font size */
    margin-top: 5px;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #005fcc;
}
/* Loader animation */
/* Loader animation - Echo effect */
.loader {
    display: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin: auto;
}

.loader div {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #f3a51a;
    opacity: 1;
    animation: echo 1.5s infinite ease-out;
}

.loader div:nth-child(2) {
    animation-delay: 0.5s;
}

.loader div:nth-child(3) {
    animation-delay: 1s;
}

@keyframes echo {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Listening text */
#listeningText {
    font-size: 12px;
    color: gray;
    text-align: center;
    display: none;
}