#gemini-agent-wrapper { position: fixed; bottom: 20px; right: 20px; z-index: 10000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* 1. Chat Trigger */
#gemini-agent-trigger { cursor: pointer; transition: transform 0.2s; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#gemini-agent-trigger:hover { transform: scale(1.05); }

.gemini-trigger-inner {
    background: var(--agent-color); color: var(--agent-text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center;
}

/* Mode: Circle */
.gemini-mode-circle .gemini-trigger-inner { width: 60px; height: 60px; border-radius: 50%; }

/* Mode: Pill */
.gemini-mode-pill .gemini-trigger-inner, .gemini-mode-proactive_pill .gemini-trigger-inner {
    height: 50px; border-radius: 25px; 
    /* Vertically center the 30px icon: (50-30)/2 = 10px padding top/bottom */
    padding: 10px 20px 10px 10px; 
    gap: 12px;
}
.gemini-pill-text { font-weight: 800; font-size: 16px; letter-spacing: 0.5px; padding-top: 1px; }

/* The White Circle Wrapper */
.gemini-icon-circle {
    background: white; border-radius: 50%;
    width: 30px; height: 30px; /* UPDATED */
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Proactive Speech Bubble */
.gemini-speech-bubble {
    background: white; color: #333; padding: 12px 16px; border-radius: 12px;
    font-size: 14px; font-weight: 500; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    max-width: 250px; margin-bottom: 5px; 
    position: relative; animation: gemini-fade-in 0.5s ease-out;
}
.gemini-speech-bubble:after {
    content: ''; position: absolute; bottom: -6px; right: 25px;
    width: 12px; height: 12px; background: white;
    transform: rotate(45deg);
}
@keyframes gemini-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* 2. The Glass Window - "Iron Oxide Edge" Style */
#gemini-agent-window {
    position: absolute; bottom: 80px; right: 0; 
    
    /* MATERIAL: Ultra Clear Glass */
    background: rgba(255, 255, 255, 0.05); /* UPDATED: 5% opacity */
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); /* UPDATED: 3px blur */
    
    /* BORDER: Green Tinted Edge (rgb(176, 255, 214)) */
    /* We simulate light hitting the glass edge by making top/left lighter/solid and bottom/right slightly darker/translucent */
    border: 2px solid rgba(176, 255, 214, 0.8);
    border-top-color: rgba(176, 255, 214, 1);
    border-left-color: rgba(176, 255, 214, 1);
    
    border-radius: 20px; 
    /* Shadow: Crisp shadow for the block + inner light reflection */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.15); 
    
    display: flex; flex-direction: column; overflow: hidden;
    width: 380px; 
    height: 580px;
}

#gemini-agent-header { 
    padding: 15px; display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid rgba(176, 255, 214, 0.3); /* Green tinted separator */
    background: rgba(255,255,255,0.02);
}

#gemini-agent-close { background: none; border: none; color: #333; font-size: 28px; cursor: pointer; line-height: 1; padding: 0; opacity: 0.6; transition: opacity 0.2s; }
#gemini-agent-close:hover { opacity: 1; }

#gemini-agent-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

/* Messages */
.gemini-msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Model: Solid Primary Color */
.gemini-msg-model { align-self: flex-start; background: var(--agent-color); color: var(--agent-text); border-bottom-left-radius: 4px; }

/* User: Solid White */
.gemini-msg-user { align-self: flex-end; background: #ffffff; color: #222; border-bottom-right-radius: 4px; }

.gemini-msg-content p { margin-bottom: 8px; }
.gemini-msg-content p:last-child { margin-bottom: 0; }

/* Input Footer */
#gemini-agent-footer { padding: 12px; border-top: 1px solid rgba(176, 255, 214, 0.3); background: rgba(255,255,255,0.1); }
#gemini-agent-form { display: flex; gap: 8px; align-items: flex-end; }
#gemini-agent-input { 
    flex: 1; border: 1px solid rgba(176, 255, 214, 0.5); border-radius: 20px; 
    padding: 10px 15px; resize: none; max-height: 120px; outline: none; font-size: 14px;
    background: var(--agent-color); color: var(--agent-text);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
#gemini-agent-input::placeholder { color: var(--agent-text); opacity: 0.75; }

#gemini-agent-send { 
    background: var(--agent-color); border: none; color: var(--agent-text); 
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Mobile Overlay */
@media (max-width: 480px) {
    #gemini-agent-window { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100% !important; height: 100% !important; border-radius: 0; max-height: none; }
}