.chatbot-main {
    min-height: calc(100vh - 120px);
    padding: 20px;
    background: #f5f5f5;
}

.chatbot-container {
    max-width: 800px;
    margin: 0 auto;
    height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.chatbot-header h2 {
    color: #007bff;
    margin-bottom: 10px;
}

.chat-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in;
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message .message-bubble {
    background: #007bff;
    color: white;
}

.bot-message .message-bubble {
    background: #e9ecef;
    color: #333;
    border: 1px solid #dee2e6;
}

.chat-input {
    display: flex;
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
    align-items: flex-end;
}

.chat-input textarea {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    resize: none;
    height: 50px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.chat-input textarea:focus {
    border-color: #007bff;
}

.chat-input button {
    margin-left: 15px;
    padding: 15px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    height: 50px;
}

.chat-input button:hover {
    background: #0056b3;
}

.chat-input button:active {
    transform: translateY(1px);
}

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

/* 모바일 반응형 */
@media (max-width: 768px) {
    .chatbot-main {
        padding: 10px;
    }
    
    .chatbot-container {
        height: calc(100vh - 140px);
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 10px 14px;
    }
    
    .chat-input {
        padding: 15px;
    }
    
    .chat-input textarea {
        font-size: 16px; /* iOS 줌 방지 */
    }
}