/* Gemini AI Chat Widget Styles */
:root {
    --gemini-primary: linear-gradient(135deg, #6200ea 0%, #ff66cc 100%);
    --gemini-dark: #1e1e1e;
    --gemini-border: rgba(255, 255, 255, 0.1);
}

.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background: var(--gemini-dark);
    border-radius: 15px;
    border: 1px solid var(--gemini-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.chat-widget.active {
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    padding: 15px;
    background: var(--gemini-dark);
    border-bottom: 1px solid var(--gemini-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-header h5 {
    margin: 0;
    background: var(--gemini-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.btn-minimize:hover {
    transform: scale(1.1);
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

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

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: messageSlide 0.3s ease;
}

.user-message {
    flex-direction: row-reverse;
}

.message-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gemini-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-icon i {
    color: white;
    font-size: 16px;
}

.chat-message p {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 15px;
    margin: 0;
    max-width: 70%;
    color: white;
}

.user-message p {
    background: var(--gemini-primary);
}

.chat-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--gemini-border);
    background: var(--gemini-dark);
}

.chat-input .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gemini-border);
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
}

.chat-input .form-control:focus {
    outline: none;
    border-color: rgba(98, 0, 234, 0.5);
    box-shadow: 0 0 0 2px rgba(98, 0, 234, 0.25);
}

.chat-input .btn {
    background: var(--gemini-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.chat-input .btn:hover {
    transform: scale(1.1);
}

.loading-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive adjustments */
@media (max-width: 576px) {
    .chat-widget {
        width: calc(100% - 40px);
        max-height: 80vh;
        bottom: 90px;
    }
    
    .chat-body {
        max-height: calc(80vh - 60px);
    }
}

/* Make the chat widget smaller when minimized */
.chat-widget.minimized {
    width: 250px;
}

/* Add a subtle bounce animation when new messages arrive */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-header.new-message {
    animation: bounce 1s ease;
}

/* Chat Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gemini-primary);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
} 