/* ==================== CHAT CONTAINER ==================== */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #2f2f2f;
}

.chat-header {
    padding: 20px 30px;
    border-bottom: 1px solid #404040;
    background: #2a2a2a;
}

.chat-title {
    font-size: 18px;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 4px;
}

.chat-subtitle {
    font-size: 13px;
    color: #a3a3a3;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #2f2f2f;
}

/* ==================== MESSAGES ==================== */
.message {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message.user {
    flex-direction: row-reverse;
}

.message.category-intro {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.message-avatar.user {
    background: #f97316;
    color: white;
}

.message-avatar.ai {
    background: #404040;
    color: #e5e5e5;
}

.message-avatar.category {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 16px;
    width: 36px;
    height: 36px;
}

.message-content {
    background: #404040;
    padding: 14px 18px;
    border-radius: 16px;
    max-width: 75%;
    color: #e5e5e5;
    line-height: 1.5;
}

.message.user .message-content {
    background: #f97316;
    color: white;
}

.message-content.category-content {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #e5e5e5;
    max-width: 85%;
}

.category-content strong {
    color: #f97316;
}

/* ==================== WELCOME MESSAGE ==================== */
.welcome-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    color: #a3a3a3;
    text-align: center;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #e5e5e5;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 18px;
    color: #a3a3a3;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

/* ==================== WELCOME SUGGESTIONS ==================== */
.welcome-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    max-width: 800px;
    width: 100%;
    margin-top: 20px;
}

.welcome-suggestion-item {
    background: rgba(64, 64, 64, 0.4);
    border: 1px solid #525252;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.welcome-suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    transition: left 0.5s ease;
}

.welcome-suggestion-item:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
}

.welcome-suggestion-item:hover::before {
    left: 100%;
}

.suggestion-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.suggestion-text {
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.welcome-suggestion-item:hover .suggestion-text {
    color: #f97316;
}

/* ==================== WELCOME FEATURES ==================== */
.welcome-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a3a3a3;
    font-size: 14px;
}

.feature-icon {
    font-size: 16px;
    color: #f97316;
}

/* ==================== RESPONSIVE FOR WELCOME ==================== */
@media (max-width: 768px) {
    .welcome-message {
        min-height: 50vh;
        padding: 30px 20px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .welcome-suggestions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .welcome-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* ==================== TYPING INDICATOR ==================== */
.typing-indicator {
    display: none;
    margin-bottom: 25px;
}

.typing-content {
    background: #404040;
    padding: 14px 18px;
    border-radius: 16px;
    display: inline-block;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #a3a3a3;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.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); 
        opacity: 0.4; 
    }
    30% { 
        transform: translateY(-8px); 
        opacity: 1; 
    }
}