body {
    font-family: Arial, sans-serif;
    background-color: #2c2c2c; /* 어두운 배경 색 */
    color: #fff; /* 텍스트 색상 흰색 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0; /* 기본 마진 제거 */
    overflow: hidden; /* 스크롤 숨기기 */
}

.chat-container {
    width: 380px;
    padding: 20px;
    border: 1px solid #666;
    border-radius: 10px;
    background-color: rgba(68, 68, 68, 0.6); /* 불투명한 회색 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    height: 620px; /* 고정된 높이 */
    display: flex;
    flex-direction: column;
}

.chat-header {
    text-align: center;
    margin-bottom: 380px;
}

.chat-messages {
    /* 대화창에 스크롤 적용 */
    overflow-y: auto;
    max-height: calc(100% - 100px); /* 최대 높이 설정 */
}

.chat-bubble {
    background-color: #555;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.user-bubble {
    background-color: #666;
    text-align: right;
}

.bot-bubble {
    background-color: #555;
    text-align: left;
}

.chat-input-container {
    display: flex;
    align-items: center;
    margin-top: auto; /* 맨 아래로 위치하도록 설정 */
}

.chat-input {
    flex: 1; /* 입력창이 남은 공간을 모두 차지하도록 설정 */
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #666;
    border-radius: 5px;
    color: #fff;
    background-color: #555;
    margin-right: 10px;
}

.send-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#loader {
    font-size: 25px;
    text-align: center;
    margin-top: 50px;
}

/* 보내기 버튼 비활성화 시 색상 변경 */
.send-button:disabled {
    background-color: #999; /* 회색 배경색 */
    color: #fff; /* 흰색 텍스트색 */
}
