:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-muted: #94a3b8;
}

body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Auth Pages */
.auth-container {
    max-width: 420px;
    margin: 80px auto;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Bot Cards */
.bot-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    background: white;
    height: 100%;
}

.bot-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(99,102,241,0.12);
    transform: translateY(-2px);
}

.bot-card .bot-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.bot-card .bot-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.bot-card .bot-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Premium Bot Cards */
.bot-card-premium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, white 50%);
}

.bot-card-premium:hover {
    border-color: #d97706;
    box-shadow: 0 4px 16px rgba(245,158,11,0.2);
}

.bot-card-locked {
    opacity: 0.7;
    background: #f8fafc;
    border-color: #e2e8f0;
    border-style: dashed;
}

.bot-card-locked:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245,158,11,0.1);
    transform: translateY(-2px);
    opacity: 0.85;
}

/* Chat Interface */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
}

.chat-message {
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.75rem;
}

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

.chat-message .bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.6;
}

.chat-message.user .bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .bubble {
    background: #f1f5f9;
    border-bottom-left-radius: 4px;
}

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

.chat-message.user .avatar {
    background: var(--primary-dark);
    color: white;
}

.chat-message.assistant .avatar {
    background: #e2e8f0;
    color: #475569;
}

.chat-input-area {
    margin-top: 1rem;
}

.chat-input-area textarea {
    border-radius: 12px;
    resize: none;
}

/* Streaming indicator */
.streaming-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1s infinite;
}

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

/* Product Profile */
.question-group {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.question-group h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.question-item {
    margin-bottom: 1rem;
}

.question-item label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.question-item .ai-badge {
    font-size: 0.7rem;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.question-item .suggestion-badge {
    font-size: 0.7rem;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category filter pills */
.category-pills .btn {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    margin: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-messages {
        height: 400px;
    }
    .chat-message .bubble {
        max-width: 85%;
    }
}
