.custom-gui {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    z-index: 2;
}

.custom-gui button {
    margin: 5px;
    color: black;
    pointer-events: all;
}

.custom-gui .control {
    background: #eeeeee4f;
    border-radius: 20px;
    border: 1px solid black;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat input styles */
.chat-input-container {
    pointer-events: all;
    z-index: 1000; /* Ensure it's above the 3D view */
}

.chat-input-wrapper {
    background: #eeeeee4f;
    border-radius: 25px;
    border: 1px solid black;
    padding: 10px 20px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 16px;
    color: black;
    outline: none;
    font-family: inherit;
    max-height: 30vh;
    field-sizing: content;
}

.chat-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.chat-button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.chat-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-button svg {
    width: 24px;
    height: 24px;
}

.chat-button.active-speech-recognition {
    animation: ripple 1000ms infinite;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0px transparent, 0 0 0 0px #ffffff75,
        0 0 0 0px transparent, 0 0 0 0px #ffffff75, 0 0 0 0px transparent,
        0 0 0 0px #ffffff75, 0 0 0 0px transparent, 0 0 0 0px #ffffff75;
    }
    100% {
        box-shadow: 0 0 0 5px transparent, 0 0 0 7px rgba(255, 255, 255, 0),
        0 0 0 20px transparent, 0 0 0 22px rgba(255, 255, 255, 0),
        0 0 0 40px transparent, 0 0 0 42px rgba(255, 255, 255, 0),
        0 0 0 65px transparent, 0 0 0 67px rgba(255, 255, 255, 0);
    }
}

/* Rest of your existing CSS */
.canvas-container {
    position: absolute;
    top: 40px;
    left: 40px;
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 2;
}

.canvas {
    border: 1px solid #333;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.canvas-container.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    padding: 20px;
}

.canvas-container.zoomed .canvas {
    width: 800px;
    height: 450px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}