/* 전체 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e0e0e0, #ffffff); /* 부드러운 그라데이션 배경 */
    color: #333;
    margin: 0;
    padding: 0;
    background-image: url('https://www.transparenttextures.com/patterns/white-diamond.png'); /* 배경 패턴 추가 */
}

.intro-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    background: #ffffff; /* 흰색 배경 */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* 깊이감 있는 그림자 */
    text-align: center;
    border: 1px solid #ff5722; /* 오렌지색 테두리 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-container:hover {
    transform: scale(1.03); /* Hover 시 확대 효과 */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Hover 시 그림자 강화 */
}

.intro-container h1 {
    color: #ff5722; /* 부드러운 오렌지색 강조 */
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.intro-container img {
    width: 180px; /* 크기 조정 */
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 이미지 그림자 추가 */
}

.intro-container label {
    color: #ff5722; /* 부드러운 오렌지색 */
    font-size: 1.1em;
    margin-top: 10px;
    font-weight: 500;
    text-transform: uppercase; /* 대문자로 변환 */
}

.intro-container input, .intro-container select, .intro-container button {
    font-size: 1em;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ffab91; /* 연한 오렌지색 테두리 */
    margin-top: 10px;
    width: 100%;
    max-width: 480px;
    transition: all 0.3s ease; /* 부드러운 전환 효과 */
}

.intro-container input:focus, .intro-container select:focus, .intro-container button:hover {
    border-color: #ff5722; /* 부드러운 오렌지색 테두리 */
    box-shadow: 0 0 8px rgba(255, 87, 34, 0.5); /* 오렌지색 그림자 */
}

.intro-container input, .intro-container select {
    background-color: #fbe9e7; /* 연한 살구색 배경 */
    color: #333;
}

.intro-container button {
    background-color: #ff5722; /* 부드러운 오렌지색 버튼 */
    color: #ffffff;
    cursor: pointer;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    padding: 14px 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.intro-container button:hover {
    background-color: #e64a19; /* 호버 시 더 어두운 오렌지색 */
    transform: translateY(-2px); /* 호버 시 살짝 위로 이동 */
}

.chat-container {
    max-width: 640px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff; /* 흰색 배경 */
    border: 1px solid #ffab91; /* 연한 오렌지색 테두리 */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* 깊이감 있는 그림자 */
    overflow-y: auto; /* 스크롤 가능 */
    height: 600px; /* 고정 높이 */
    position: relative;
}

.chat-bubble {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    transition: background-color 0.3s ease;
}

.user-bubble {
    background-color: #ff5722; /* 부드러운 오렌지색 */
    color: #ffffff;
    margin-left: auto;
    text-align: right;
    border-top-right-radius: 0; /* 상단 우측 모서리 둥글게 하지 않음 */
}

.bot-bubble {
    background-color: #ffe0b2; /* 연한 살구색 */
    color: #333;
    margin-right: auto;
    border-top-left-radius: 0; /* 상단 좌측 모서리 둥글게 하지 않음 */
}

.chat-input {
    width: calc(100% - 24px);
    padding: 14px;
    background-color: #ffffff; /* 흰색 배경 */
    color: #333;
    border: 1px solid #ffab91; /* 연한 오렌지색 테두리 */
    border-radius: 8px;
    margin-top: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chat-input:focus {
    border-color: #ff5722; /* 부드러운 오렌지색 테두리 */
    outline: none;
    box-shadow: 0 0 6px rgba(255, 87, 34, 0.4); /* 오렌지색 그림자 */
}

.send-button {
    background-color: #ff5722; /* 부드러운 오렌지색 버튼 */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 24px;
    font-size: 1.1em;
    margin-top: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

.send-button:hover {
    background-color: #e64a19; /* 호버 시 더 어두운 오렌지색 */
    transform: translateY(-2px); /* 호버 시 살짝 위로 이동 */
}

#loader {
    font-size: 24px;
    text-align: center;
    color: #ff5722; /* 부드러운 오렌지색 로딩 아이콘 */
}
