/* Gemini Agent Styles */
.gemini-agent-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.gemini-agent-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 28px;
    position: relative;
    overflow: hidden;
}

.gemini-agent-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gemini-agent-button .ai-icon {
    position: relative;
    z-index: 2;
}

.gemini-agent-button .pulse-ring {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: gemini-pulse 2s infinite;
}

@keyframes gemini-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.gemini-agent-panel {
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.gemini-agent-panel.active {
    display: flex;
}

.gemini-header {
    padding: 20px;
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gemini-header-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.gemini-header-status.online { background: #4caf50; }
.gemini-header-status.listening { background: #f44336; animation: blink 1s infinite; }
.gemini-header-status.thinking { background: #2196f3; animation: spin 1s infinite linear; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.gemini-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.gemini-visualizer {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fdfbff;
}

/* Voice bars animation */
.voice-bar {
    width: 6px;
    height: 10px;
    background: #9b72cb;
    border-radius: 3px;
    transition: height 0.1s ease;
}

.listening .voice-bar {
    animation: voice-dance 0.5s infinite alternate;
}

@keyframes voice-dance {
    0% { height: 10px; }
    100% { height: 50px; }
}

.gemini-footer {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gemini-footer span {
    font-size: 12px;
    color: #888;
}

.btn-gemini-mic {
    background: #4285f4;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s;
}

.btn-gemini-mic.active {
    background: #f44336;
    transform: scale(1.1);
}

/* API Key Overlay */
.gemini-api-setup {
    position: absolute;
    inset: 0;
    background: white;
    z-index: 10;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
}

.hidden { display: none !important; }
