.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.chat-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    color: white;
    text-align: center;
}

.chat-response {
    margin: 20px 0;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.chat-input-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
}

.chat-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.mic-button {
    padding: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mic-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.mic-button.muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.mic-button.muted:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.chat-button:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
}

.chat-button:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    transform: none;
}

.exit-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.exit-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#activateChatButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    background: #007bff;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

#activateChatButton:hover {
    transform: scale(1.05);
    background: #0056b3;
}



.fade-out {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

.fade-in {
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.chat-overlay.show {
    opacity: 1;
}

.assistant-canvas {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.canvas-button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 10px;
}

.canvas-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.canvas-button.active {
    background: rgba(100, 200, 255, 0.2);
    border-color: rgba(100, 200, 255, 0.4);
}

.chat-container.canvas-enabled {
    transform: translate(-50%, 70%);
    transition: transform 0.3s ease-in-out;
}
