body {
  position: relative;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
}

.chat-wrapper {
  display: flex;
  height: 100vh;
}

.hidden {
  display: none;
}

.sidebar {
  width: 250px;
  background: #f0f0f0;
  border-right: 1px solid #ccc;
  padding: 10px;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 14px;
  margin: 10px 0;
  color: #888;
}

.nav-item,
.chat-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active,
.chat-item:hover,
.chat-item.active {
  background-color: #e5e5e5;
}

.chat-list {
  margin-top: 20px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* 변경된 welcome 화면 */
.welcome-screen {
  position: relative;
  width: 100%;
  height: 100%; /* auto → 100%로 변경 */
  background-color: white;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ✅ center → flex-end */
  text-align: center;
  padding: 40px 20px 60px; /* 상단을 줄이고 하단 여백 추가 */
}

.title {
  font-size: 24px;
  margin-bottom: 20px;
}

.input-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 30px;
  padding: 10px 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.input-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.input-box .mic,
.input-box .send {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #444;
  margin-left: 10px;
}

.input-box .send {
  background-color: #4f90ff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
}

.send:hover {
  background-color: #3a75d2;
}

.quick-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick {
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

.quick:hover {
  background: #f1f1f1;
}

.chat-ui {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.header {
  background-color: white;
  padding: 16px;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
  font-size: 18px;
}

.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 80%;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-message {
  align-self: flex-end;
  background-color: #e0f0ff;
}

.footer {
  padding: 20px;
  background-color: #fff;
  border-top: none;
  display: flex;
  justify-content: center;
}

.input-area {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-area .input-box {
  width: 100%;
  margin-bottom: 12px;
}
