/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Add keyframes for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add these new styles at the top of the file */
.aiea-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#displayCanvas {
    width: 100%;
    height: auto;
    display: block;
}

.aiea-chat-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: min(600px, 90%);
    z-index: 1002;
}

.aiea-chat-messages {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 0px;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;     /* Hide scrollbar for Firefox */
}

.aiea-chat-messages::-webkit-scrollbar {
    display: none;
}

.aiea-message {
    padding: 6px 10px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aiea-message.user {
    color: white;
    margin-left: auto;
    background: rgba(0,0,0,0.5);
}

.aiea-message.bot {
    color: white;
    margin-right: auto;
    background: rgba(0,0,0,0.5);
}

.aiea-chat-input-container {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.aiea-chat-input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    background: rgb(255, 255, 255) !important;
    color: black !important;
    outline: none;
    font-size: 14px;
    margin-right: 8px;
    border-radius: 20px;
    border: 1px solid #020202 !important;
    font-size: 13px !important;
}

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

.aiea-mic-button {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.aiea-mic-button:hover {
    color: rgba(255, 255, 255, 0.8);
}

.aiea-mic-button.active {
    color: rgb(239, 68, 68);
}

.aiea-mic-button i {
    font-size: 16px;
}

.aiea-send-button {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    margin-left: 4px; /* Add some space between buttons */
}

.aiea-send-button:hover {
    color: rgba(255, 255, 255, 0.8);
}

.aiea-send-button i {
    font-size: 16px;
}

/* Scrollbar Styling */
.aiea-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.aiea-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.aiea-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.aiea-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .aiea-chat-container {
        bottom: 10px;
        width: 95%;
    }
    
    .aiea-chat-messages {
        max-height: 150px;
    }
    
    .aiea-chat-input {
        font-size: 13px;
    }
}

.hidden {
    display: none !important;
}

#canvasOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1px);
    border-radius: 15px;
    transition: opacity 0.5s ease;
}

.aiea-start-button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #3498db; /* A nice blue */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aiea-start-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

.aiea-start-button:active {
    transform: translateY(1px); /* Slight press effect */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}