/* 전체 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 80%;
    max-width: 700px; /* 최대 너비 증가 */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 헤더 스타일 */
.header {
    background-color: #007bff;
    color: #fff;
    padding: 20px;
    text-align: center;
    display: flex; /* Flexbox 레이아웃 사용 */
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 */
}

.buffet-img {
    width: 150px; /* 이미지 크기 조정 */
    height: auto; /* 높이 자동 조정 */
    border-radius: 10px; /* 이미지 모서리 둥글게 */
    margin-right: 20px; /* 이미지와 텍스트 간 간격 */
}

.header h1 {
    font-size: 24px; /* 글꼴 크기 증가 */
    font-weight: 500;
}

/* 채팅 영역 스타일 */
.chat-box {
    padding: 20px;
    height: 450px; /* 높이 증가 */
    overflow-y: auto;
    position: relative;
}

#loadingIndicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 20px;
    word-break: break-word;
    max-width: 80%;
}

.bot-message {
    background-color: #e9ecef;
    color: #212529;
    text-align: left;
}

.user-message {
    background-color: #007bff;
    color: #fff;
    text-align: right;
    align-self: flex-end;
}

/* 입력 영역 스타일 */
.input-area {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    flex-direction: column; /* 세로로 배치 */
}

.input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 25px;
    margin-bottom: 10px; /* 아래 간격 추가 */
}

.input-area button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-area button:hover {
    background-color: #0056b3;
}

.input-area button:disabled {
    background-color: #ccc; /* 비활성화된 버튼 스타일 */
    cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .header {
        flex-direction: column; /* 세로로 배치 */
        text-align: center; /* 텍스트 중앙 정렬 */
    }

    .buffet-img {
        margin-bottom: 10px; /* 이미지 아래 간격 */
        margin-right: 0; /* 오른쪽 간격 제거 */
    }

    .header h1 {
        font-size: 1.5em; /* 폰트 크기 조정 */
    }
}

/* 광고 영역 스타일 */
.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    min-width: 350px;
    min-height: 120px;
}
