/* Gemini-like AI Career Chat Interface */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    height: 100vh;
    overflow: hidden;
}

.gemini-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.gemini-header {
    background: white;
    border-bottom: 1px solid #e8eaed;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.gemini-header h1 {
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    position: relative;
}

.gemini-header h1::after {
    content: 'AI Agent v2.0';
    position: absolute;
    top: -8px;
    right: -80px;
    font-size: 10px;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #f1f3f4;
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.welcome-content {
    max-width: 600px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4285f4, #34a853);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.welcome-content h2 {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 16px;
}

.welcome-content p {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 40px;
    line-height: 1.5;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.quick-btn {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #4285f4;
}

.quick-btn i {
    color: #4285f4;
    font-size: 20px;
}

.quick-btn span {
    color: #202124;
    font-weight: 500;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.message {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

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

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.user-message .message-avatar {
    background: #e8f0fe;
    color: #1a73e8;
}

.message-content {
    max-width: 70%;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 18px;
    line-height: 1.5;
    color: #202124;
    border: 1px solid #e8eaed;
}

.user-message .message-content {
    background: #1a73e8;
    color: white;
    border: 1px solid #1557b0;
}

.bot-message .message-content {
    background: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-content p {
    margin: 0;
    white-space: pre-wrap;
}

/* Input Container */
.input-container {
    padding: 20px 24px 24px;
    background: white;
    border-top: 1px solid #e8eaed;
}

.input-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.input-field {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 4px;
    transition: all 0.2s;
}

.input-field:focus-within {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

#chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    color: #202124;
}

#chat-input::placeholder {
    color: #9aa0a6;
}

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

.send-btn:hover {
    background: #3367d6;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #dadce0;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    text-align: center;
    margin-top: 12px;
}

.disclaimer {
    font-size: 12px;
    color: #5f6368;
}

/* Typing Indicator */
.typing-indicator {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.typing-animation {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9aa0a6;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI Agent Features */
.agent-response {
    position: relative;
}

.agent-response::before {
    content: '🤖 AI Agent';
    position: absolute;
    top: -8px;
    left: 44px;
    font-size: 10px;
    color: #4285f4;
    font-weight: 500;
    background: white;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.command-suggestions {
    margin-top: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.suggestions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
}

.suggestions-header i {
    color: #4285f4;
}

.suggestion-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.suggestion-btn {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #202124;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.suggestion-btn:hover {
    border-color: #4285f4;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.suggestion-btn i {
    color: #4285f4;
    font-size: 14px;
}

/* Enhanced Message Styling */
.message-content strong {
    color: #1a73e8;
    font-weight: 600;
}

.message-content em {
    color: #5f6368;
    font-style: italic;
}

.message-content p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-content ul, .message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 4px 0;
    color: inherit;
}

.message-content h1, .message-content h2, .message-content h3 {
    color: #1a73e8;
    margin: 12px 0 8px 0;
    font-weight: 600;
}

.message-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d73a49;
}

.message-content pre {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #4285f4;
    margin: 8px 0;
}

.message-content blockquote {
    border-left: 4px solid #4285f4;
    padding-left: 16px;
    margin: 8px 0;
    color: #5f6368;
    font-style: italic;
}

.bot-message .message-content {
    background: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.agent-response .message-content {
    background: linear-gradient(135deg, #e8f0fe 0%, #ffffff 100%);
    color: #1a73e8;
    border: 1px solid #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
}

.agent-response .message-content strong {
    color: #1557b0;
    font-weight: 600;
}

.agent-response .message-content em {
    color: #5f6368;
    font-style: italic;
}

/* Agent Status Indicator */
.agent-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4285f4;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    z-index: 1000;
}

.agent-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #34a853;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .gemini-container {
        box-shadow: none;
    }
    
    .gemini-header {
        padding: 12px 16px;
    }
    
    .chat-container {
        padding: 0 16px;
    }
    
    .input-container {
        padding: 16px;
    }
    
    .welcome-content h2 {
        font-size: 24px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .suggestion-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .agent-response::before {
        left: 36px;
        font-size: 9px;
    }
    
    .agent-status {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #202124;
    }
    
    .gemini-container {
        background: #202124;
    }
    
    .gemini-header {
        background: #202124;
        border-color: #3c4043;
    }
    
    .gemini-header h1 {
        color: #e8eaed;
    }
    
    .action-btn {
        color: #9aa0a6;
    }
    
    .action-btn:hover {
        background: #3c4043;
    }
    
    .welcome-content h2 {
        color: #e8eaed;
    }
    
    .welcome-content p {
        color: #9aa0a6;
    }
    
    .quick-btn {
        background: #303134;
        border-color: #3c4043;
        color: #e8eaed;
    }
    
    .quick-btn:hover {
        border-color: #4285f4;
        background: #3c4043;
    }
    
    .bot-message .message-content {
        background: #303134;
        color: #e8eaed;
        border-color: #3c4043;
    }
    
    .agent-response .message-content {
        background: linear-gradient(135deg, #1a2332 0%, #303134 100%);
        color: #8ab4f8;
        border-color: #4285f4;
    }
    
    .agent-response .message-content strong {
        color: #aecbfa;
    }
    
    .agent-response .message-content em {
        color: #9aa0a6;
    }
    
    .command-suggestions {
        background: #303134;
        border-color: #3c4043;
    }
    
    .suggestions-header {
        color: #9aa0a6;
    }
    
    .suggestion-btn {
        background: #3c4043;
        border-color: #5f6368;
        color: #e8eaed;
    }
    
    .suggestion-btn:hover {
        border-color: #4285f4;
        background: #4a5568;
    }
    
    .input-container {
        background: #202124;
        border-color: #3c4043;
    }
    
    .input-field {
        background: #303134;
        border-color: #3c4043;
    }
    
    #chat-input {
        color: #e8eaed;
    }
    
    #chat-input::placeholder {
        color: #9aa0a6;
    }
    
    .typing-indicator {
        background: #303134;
    }
    
    .message-content code {
        background: #3c4043;
        color: #ff6b6b;
    }
    
    .message-content pre {
        background: #1e1e1e;
        border-left-color: #4285f4;
    }
    
    .message-content h1, .message-content h2, .message-content h3 {
        color: #8ab4f8;
    }
}