/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  background: #eef2f7;
}

/* ===== MAIN CONTAINER ===== */
.app {
  display: flex;
  width: 900px;
  height: 620px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ===== LEFT PANEL ===== */
.sidebar {
  width: 260px;
  background: linear-gradient(135deg, #0b3558, #0e4a7b);
  color: white;
  padding: 30px 20px;
}

.sidebar h2 {
  margin: 0;
  font-size: 22px;
}

.sidebar p {
  margin-top: 10px;
  opacity: 0.8;
}

/* ===== RIGHT PANEL ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===== CHAT ===== */
.chatbox {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f7f9fc;
}

/* ===== MESSAGE BUBBLES ===== */
.message {
  max-width: 75%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

/* USER */
.user {
  background: #006bff;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

/* BOT */
.bot {
  background: white;
  border: 1px solid #e6e8ec;
  border-bottom-left-radius: 4px;
}

/* ===== INPUT AREA ===== */
.input-area {
  display: flex;
  border-top: 1px solid #eee;
  background: white;
}

input {
  flex: 1;
  padding: 14px;
  border: none;
  outline: none;
  font-size: 14px;
}

button {
  background: #006bff;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #0052cc;
}

/* ===== CTA BUTTON ===== */
.cta {
  background: #006bff;
  color: white;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  margin: 12px 0;
  font-weight: 600;
  transition: 0.2s;
}

.cta:hover {
  background: #0052cc;
}

/* ===== CALENDAR ===== */
.calendar {
  margin-top: 15px;
}

/* ===== DATE SELECT ===== */
.date-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 15px;
}

.date {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: white;
  transition: 0.2s;
  font-size: 13px;
}

.date:hover {
  border-color: #006bff;
}

.date.active {
  background: #006bff;
  color: white;
  border-color: #006bff;
}

/* ===== TIME SLOTS ===== */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.slot {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: 0.2s;
  font-weight: 500;
}

.slot:hover {
  border-color: #006bff;
  color: #006bff;
}

.slot.active {
  background: #006bff;
  color: white;
  border-color: #006bff;
}

/* ===== CONFIRM BUTTON ===== */
.confirm {
  margin-top: 15px;
  padding: 14px;
  width: 100%;
  background: #006bff;
  color: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.confirm:hover {
  background: #0052cc;
}

/* ===== BOOKING FORM ===== */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.booking-form input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.booking-form input:focus {
  border-color: #006bff;
  outline: none;
}

/* ===== SCROLLBAR CLEAN ===== */
.chatbox::-webkit-scrollbar {
  width: 6px;
}

.chatbox::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.success-card {
  background: #e6f4ea;
  border: 1px solid #b7e1cd;
  padding: 18px;
  border-radius: 12px;
  margin-top: 15px;
  text-align: center;
}

.success-card h3 {
  margin: 0 0 8px;
  color: #1e7e34;
}

.success-card p {
  margin: 5px 0;
  font-size: 14px;
}

.error {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}

.booking-form input {
  border: 1px solid #ddd;
}

.booking-form input:focus {
  outline: none;
  border-color: #006bff;
}