* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #c2d9f0 0%, #d4e4f5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.chat-container {
    background: white;
    border-radius: 20px;
    box-shadow: 8px 15px 35px rgba(100, 150, 200, 0.6);
    width: 100%;
    max-width: 900px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bot-logo {
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-box {
    width: 100%;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Scrollbar styling */
.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #93b5e1;
    border-radius: 10px;
}

.welcome-message {
    color: #666;
    font-size: 15px;
    text-align: center;
    padding: 20px;
}

.message {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    background: #93b5e1;
    color: #ffffff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background: transparent;
    color: #333;
    align-self: flex-start;
    padding-left: 0;
}

/* Formatting for bot messages */
.bot-message code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #d63384;
}

.bot-message pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
    border-left: 3px solid #93b5e1;
}

.bot-message pre code {
    background: none;
    padding: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.bot-message strong {
    font-weight: 600;
    color: #1a1a1a;
}

.bot-message .list-item {
    margin: 8px 0;
    padding-left: 10px;
    line-height: 1.6;
}

.bot-message br {
    line-height: 1.8;
}

.input-container {
    width: 100%;
    display: flex;
    gap: 10px;
}

#userInput {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: #f5f5f5;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: background 0.3s;
}

#userInput:focus {
    background: #ebebeb;
}

#sendBtn {
    padding: 15px 30px;
    background: #93b5e1;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#sendBtn:hover {
    background: #7ba3d4;
    transform: translateY(-2px);
}

#sendBtn:active {
    transform: translateY(0);
}

#sendBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    max-width: 70px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #93b5e1;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        padding: 20px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .bot-logo svg {
        width: 80px;
        height: 80px;
    }
}


