/* styles.css */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    /*background-color: #f5f5f5;*/
}

/* Floating buttons styles */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.floating-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.floating-button:hover {
    background-color: #3367d6;
    transform: scale(1.05);
}

/* Chat modal styles */
.chat-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-modal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-header {
    background-color: #4285f4;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    margin: 0;
    font-size: 18px;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    background-color: #f1f1f1;
    padding: 10px 15px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message.user .message-content {
    background-color: #4285f4;
    color: white;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    overflow-y: auto;
    line-height: 1.4;
    font-family: 'Arial', sans-serif;
    transition: height 0.2s ease;
}

.send-button, .voice-button {
    background: none;
    border: none;
    color: #4285f4;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.send-button:hover, .voice-button:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

/* Voice button active state */
.voice-button.active {
    color: #ea4335;
    background-color: rgba(234, 67, 53, 0.1);
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.5);
}

.voice-button.active i {
    animation: recording 1.5s infinite;
}

/* Chat footer with copyright info */
.chat-footer {
    padding: 8px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 11px;
    color: #777;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes recording {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
