/* Reset Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

/* 로그인 섹션 */
.intro-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 30px;
    width: 400px;
    display: flex;/*옆으로 정렬*/
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    
}

.intro-container img:hover {
    transform: scale(1.1);
}

.intro-container button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.intro-container button:hover {
    background-color: #45a049;
}

/* 채팅 섹션 */
.chat-container {
    background: #fff;
    width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 채팅 헤더 */
.chat-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.chat-header h2 {
    font-size: 18px;
    color: #333;
    margin-left: 120px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 채팅 메시지 */
.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 14px;
}

.user-bubble {
    background: #d0f0fd;
    align-self: flex-end;
    color: #333;
    text-align: right;
}

.bot-bubble {
    background: #f1f1f1;
    align-self: flex-start;
    color: #555;
    margin: auto;
    text-align: left;

}

/* 로딩 아이콘 */
.loading {
    text-align: center;
    color: #4CAF50;
    font-size: 1.2rem;
    display: none;
}

/* 입력창 및 버튼 */
.chat-input-container {
    display: flex;
    flex-direction: column; /* 세로 방향으로 정렬 */
    gap: 10px; /* 입력창과 버튼 사이 간격 */
    width: 100%; /* 부모 요소의 너비에 맞춤 */
    margin: 0 auto; /* 중앙 정렬 */
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.chat-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.send-button {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-button:hover {
    background-color: #45a049;
}

/* 반응형 디자인 */
@media screen and (max-width: 500px) {
    .intro-container,
    .chat-container {
        width: 90%;
    }

    .chat-input-container {
        flex-direction: column;
    }

    .chat-input {
        margin-bottom: 10px;
    }
}
