* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar.bot {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.message-avatar.user {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.message-list {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: none;
}

.message-list .list-item {
    margin: 4px 0;
    padding-left: 10px;
    position: relative;
}

.message-list .list-item.numeric::before {
    content: attr(data-number) ". ";
    position: absolute;
    left: -20px;
    color: #3b82f6;
    font-weight: 500;
}

.message-list .list-item.dash::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #3b82f6;
}

.message-list .list-item.star::before {
    content: "★";
    position: absolute;
    left: -15px;
    color: #3b82f6;
    font-size: 12px;
}

.bot .message-bubble p {
    margin: 8px 0;
    line-height: 1.5;
}

.bot .message-bubble ul {
    margin: 8px 0;
}

.bot .message-bubble code {
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #1e40af;
}

.header-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a202c;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

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

.icon-btn {
    width: 44px;
    height: 44px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

/* Chat Area */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #fafbfc;
}

.chat-area::-webkit-scrollbar {
    width: 6px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 48px;
}

.welcome-screen h2 {
    color: #1a202c;
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.welcome-screen p {
    color: #6b7280;
    font-size: 17px;
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.6;
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 800px;
}

.suggestion-card {
    padding: 24px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.suggestion-card:hover {
    border-color: #1e40af;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
    transform: translateY(-4px);
}

.suggestion-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.suggestion-card-title {
    font-weight: 600;
    color: #1a202c;
    font-size: 15px;
    margin-bottom: 6px;
}

.suggestion-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Messages */
#messagesContainer {
    min-height: 100%;
}

.message {
    display: flex;
    margin-bottom: 24px;
    animation: slideIn 0.4s ease;
}

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

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

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

.message.bot .message-avatar {
    background: #eff6ff;
    color: #1e40af;
}

.message.user .message-avatar {
    background: #1e40af;
    color: white;
}

.message-content {
    max-width: 65%;
    margin: 0 14px;
}

.message-bubble {
    padding: 16px 20px;
    border-radius: 18px;
    line-height: 1.8;
    word-wrap: break-word;
    position: relative;
}

.message.bot .message-bubble {
    background: white;
    color: #2d3748;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

.message.bot .message-bubble ul {
    margin: 12px 0;
    padding-left: 20px;
}

.message.bot .message-bubble li {
    margin: 8px 0;
    line-height: 1.7;
}

.message.bot .message-bubble strong {
    font-weight: 600;
    color: #1a202c;
}

.message.user .message-bubble {
    background: #1e40af;
    color: white;
    border-bottom-right-radius: 6px;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.message-status {
    margin-left: 4px;
}

.status-sent {
    color: #9ca3af;
}

.status-delivered {
    color: #10b981;
}

.status-read {
    color: #10b981;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 16px 20px;
}

.typing-dot {
    width: 9px;
    height: 9px;
    background: #cbd5e0;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        background: #cbd5e0;
    }
    30% {
        transform: translateY(-12px);
        background: #94a3b8;
    }
}

/* Loading Skeleton - Gemini style */
.loading-skeleton {
    display: flex;
    margin-bottom: 24px;
    animation: slideIn 0.4s ease;
}

.skeleton-content {
    max-width: 65%;
    margin: 0 14px;
    width: 100%;
}

.skeleton-bubble {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    padding: 16px 20px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 12px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line:last-child {
    margin-bottom: 0;
    width: 60%;
}

.skeleton-line:nth-child(2) {
    width: 80%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Input Area */
.input-area {
    padding: 24px 32px 28px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 1000px;
    margin: 0 auto;
}

.input-container {
    flex: 1;
    position: relative;
}

#messageInput {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 26px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 140px;
    transition: all 0.2s;
    background: #fafbfc;
}

#messageInput:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.send-btn {
    width: 52px;
    height: 52px;
    background: #1e40af;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* .send-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
} */

/* .send-btn:active {
    transform: translateY(0);
} */

.send-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #e5e7eb;
}

.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .header-info h1 {
        font-size: 18px;
    }

    .chat-area {
        padding: 20px 16px;
    }

    .message-content {
        max-width: 85%;
    }

    .input-area {
        padding: 16px 16px 20px;
    }

    .welcome-screen {
        padding: 24px 20px;
    }

    .suggestions {
        grid-template-columns: 1fr;
    }
}