/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #F3E8FF;  /* 연한 보라색 배경 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 인트로 페이지 스타일 */
.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 1.5rem;
}

.intro-container h1 {
    color: #6B46C1;  /* 진한 보라색 */
    font-size: 2rem;
    text-align: center;
}

.intro-container img {
    max-width: 300px;
    border-radius: 1rem;
}

.intro-container label {
    color: #6B46C1;
    font-weight: bold;
    margin-top: 1rem;
}

.intro-container input[type="date"],
.intro-container select {
    padding: 0.8rem;
    border: 2px solid #DDD6FE;  /* 연한 보라색 테두리 */
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    background: white;
}

.intro-container input[type="date"]:focus,
.intro-container select:focus {
    border-color: #6B46C1;
}

.intro-container button {
    background-color: #6B46C1;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.intro-container button:hover {
    background-color: #553C9A;  /* 더 진한 보라색 */
}

/* 채팅 페이지 스타일 */
.chat-container-intro {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: #6B46C1;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.cat-icon {
    width: 32px;
    height: 32px;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
    position: relative;
    height: calc(100vh - 70px);
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.message {
    max-width: 70%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    margin: 0.2rem 0;
}

.bot {
    background-color: #DDD6FE;  /* 연한 보라색 */
    align-self: flex-start;
    border-bottom-left-radius: 0.2rem;
}

.user {
    background-color: #6B46C1;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.2rem;
}

.input-container {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: auto;
}

.input-container input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #DDD6FE;
    border-radius: 0.5rem;
    outline: none;
    font-size: 1rem;
}

.input-container input:focus {
    border-color: #6B46C1;
}

.input-container button {
    background-color: #6B46C1;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.input-container button:hover {
    background-color: #553C9A;
}

.typing-indicator {
    display: none;
    padding: 0.8rem 1rem;
    background-color: #DDD6FE;
    border-radius: 1rem;
    align-self: flex-start;
    margin: 0.2rem 0;
    border-bottom-left-radius: 0.2rem;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #6B46C1;
    border-radius: 50%;
    margin-right: 5px;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) { 
    animation-delay: 0.2s; 
}

.typing-indicator span:nth-child(3) { 
    animation-delay: 0.4s; 
}

.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

@keyframes typing {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}