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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
}

.model-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

/* Messages */
.message {
    display: flex;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

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

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

.user .avatar {
    background: #3b82f6;
}

.assistant .avatar {
    background: #10b981;
}

.message-content {
    flex: 1;
    background: #1e293b;
    padding: 16px 20px;
    border-radius: 12px;
    line-height: 1.6;
}

.user .message-content {
    background: #3b82f6;
    color: white;
}

.timestamp {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
}

/* Welcome Message */
.welcome {
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: 40px 20px;
}

.welcome h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #f1f5f9;
}

.welcome p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.suggestion-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.suggestion-card:hover {
    background: #2d3748;
    border-color: #3b82f6;
}

.suggestion-card .icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.suggestion-card .text {
    font-size: 14px;
    color: #cbd5e1;
}

/* Input Area */
.input-area {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 20px 24px;
}

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

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

textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px 50px 14px 16px;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    min-height: 52px;
    max-height: 200px;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: #3b82f6;
}

textarea::placeholder {
    color: #64748b;
}

.send-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

.send-button:hover:not(:disabled) {
    background: #2563eb;
}

.send-button:disabled {
    background: #475569;
    cursor: not-allowed;
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Scrollbar */
.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: #0f172a;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Error Message */
.error-message {
    background: #991b1b;
    border-left: 4px solid #dc2626;
}