/* ======================================
   1. RESET & BASE
====================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #f5f6f8;
}


/* ======================================
   2. LAYOUT SYSTEM
====================================== */
/* page-layout */
/* header */

.header {
  height: 80px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #FFFFFF,
    #3C6FF5
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  color: white;
  position: relative;
  z-index: 1000;
}


.header-logo {
  height: 48px;  
  width: auto; 
  cursor: pointer;   
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* sidebar */
.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 220px;
  height: calc(100vh - 80px);
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 60%, #dde6ff 100%);
  box-shadow: 3px 0 20px rgba(60, 111, 245, 0.08);
  border-right: 1px solid rgba(60, 111, 245, 0.12);
  z-index: 999;
  overflow-y: auto;
}

.sidebar-label {
  padding: 24px 24px 10px 24px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #3C6FF5;
  font-weight: 700;
  opacity: 0.7;
}

.sidebar ul {
  list-style: none;
  padding: 8px 12px 24px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar li {
  padding: 11px 16px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.sidebar li:hover {
  background: rgba(60, 111, 245, 0.08);
  color: #3C6FF5;
  transform: translateX(3px);
}

.sidebar li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3C6FF5;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.sidebar li:hover::before {
  opacity: 0.6;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(60,111,245,0.15), transparent);
  margin: 8px 16px 10px 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: 80px;
  right: 0;
  width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 1000;
  padding-top: 8px;
}

.user-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 10px 0 16px 0;
}

.dropdown-label {
  padding: 20px 20px 10px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  border-bottom: 1px solid #ececec;
}

.dropdown-list {
  margin-top: 8px;
}

.dropdown-list li {
  padding: 14px 20px;
  font-size: 15px;
  color: #444;
  transition: 0.2s;
}

.dropdown-list li:hover {
  background: #f6f7f9;
  color: #3C6FF5;
}

/* container */

/* ======================================
   3. COMPONENTS – BUTTONS
====================================== */
/* .btn */
.buttons {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.btn {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: white;
  background: #3C6FF5;
  transition: all 0.2s ease;
  width: 340px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(60,111,245,0.3);
}

.btn-disabled {
  background: #f1f5f9;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;}

.btn-outline {
  background: white;
  border: 1px solid #3C6FF5;
  color: #3C6FF5;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
/* .btn-primary */

.btn-primary {
  background: #3C6FF5;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* .btn-secondary */
.secondary-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #e5e7eb;
  cursor: pointer;
  color: #444;
}


.secondary-btn:hover {
  background: #d1d5db;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: #eef2ff;
  color: #3C6FF5;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.view-more-btn {
  padding: 12px 28px;
  border-radius: 30px;
  border: 1.5px solid #3C6FF5;
  background: white;
  color: #3C6FF5;
  font-weight: 500;
  cursor: pointer;
}

.voice-btn {
  border: none;
  background: transparent;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
  transition: 0.2s ease;
}

.voice-btn:hover {
  color: #3C6FF5;
}


/* ======================================
   4. COMPONENTS – INPUT
====================================== */
/* .chat-entry */
.chat-entry {
  width: 680px;
  display: flex;
  align-items: center;
  background: white;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

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

.assistant-row {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  width: 100%;
}

.assistant-bubble {
  background: white;
  padding: 22px 26px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  font-size: 16px;
  line-height: 1.6;
  max-width: 50vw;
  width: fit-content;
}

/* .send-btn */

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #3C6FF5;
  color: white;
  cursor: pointer;
}

/* ======================================
   5. COMPONENTS – CARDS
====================================== */
/* flight-card */

.flight-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border: 1px solid #f0f2f5;
  transition: all 0.25s ease;
}

.flight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
}

.flight-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}

.flight-date {
  font-weight: 600;
  font-size: 17px;
}

.flight-price {
  font-size: 22px;
  font-weight: 700;
  color: #3C6FF5;
}

.flight-route {
  font-size: 14px;
  color: #555;
}

.flight-divider {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}

.flight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flight-airline {
  font-weight: 500;
  color: #333;
}

.flight-duration {
  font-size: 13px;
  color: #777;
}

.flight-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.flight-actions button {
  border: 1px solid #3C6FF5;
  background: white;
  color: #3C6FF5;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.flight-actions button:hover {
  background: #3C6FF5;
  color: white;
}

.view-more button:hover {
  background: #3C6FF5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60,111,245,0.25);
}

.flight-section-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.flight-wrapper {
  width: 1200px;
  margin: 40px auto;
}

.flight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.view-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.flight-details-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.flight-primary-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
/* modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-price {
  font-size: 24px;
  font-weight: 700;
  color: #3C6FF5;
}

.modal-content {
  position: relative;
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 520px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}

.modal-close:hover {
  color: #111;
}

.modal-section {
  margin-top: 18px;
}

.modal-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 6px;
}

.modal-divider {
  height: 1px;
  background: #eee;
  margin: 20px 0;
}

/* ======================================
   6. PAGES 
====================================== */
/* main page */
.content {
  padding: 80px 6vw;
  max-width: 1400px;
  margin: 60px auto;
  margin-left: calc(220px + 4vw);
}



.intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 800px;
}

.logo {
  width: 36px;
}

.intro-text {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  color: #111;
  text-align: left;
  min-height: 90px;
}

/* ready-page small overrides */
.ready-layout {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 140px;  
}

.ready-inner {
  text-align: center;
  max-width: 720px;
  padding: 0 20px;
}

.ready-badge {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(60,111,245,0.1);
  color: #3C6FF5;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ready-title {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  color: #111;
}

.ready-sub {
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
}

.ready-cta {
  font-size: 18px;
  font-weight: 600;
  padding: 18px 48px;
  border-radius: 16px;
  border: none;
  cursor: pointer;

  background: linear-gradient(
    135deg,
    #3C6FF5 0%,
    #5A8BFF 100%
  );

  color: white;

  box-shadow:
    0 8px 20px rgba(60,111,245,0.25),
    0 2px 6px rgba(0,0,0,0.05);

  transition: all 0.25s ease;
}

.ready-cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px rgba(60,111,245,0.35),
    0 4px 10px rgba(0,0,0,0.08);
}

/* landing-page overrides */
.landing-layout {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 140px;
}

.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* change flight */
.change-input-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  display: flex;
  gap: 12px;
  background: white;
  padding: 14px 18px;
  border-radius: 40px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  z-index: 1000;
}

.change-input-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
}

.change-bar-wrapper {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

/* explain flight */

.explain-header {
  font-weight: 600;
  margin-bottom: 10px;
}

.explain-content ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.explain-content li {
  margin-bottom: 10px;
}

.explain-note {
  font-size: 14px;
  color: #777;
}

/* assistant avatar */

.assistant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3C6FF5, #E23C8E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}


/* Wider bubble for full plan responses */
.plan-bubble {
  max-width: 760px;
  width: 100%;
  line-height: 1.75;
}

/* Section header lines (✈️ FLIGHT OPTIONS, 🏠 ACCOMMODATION OPTIONS, etc.) */
.plan-section-header {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #3C6FF5;
  margin-top: 20px;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

/* Individual option labels (Option 1 —, Option 2 —, etc.) */
.plan-option-label {
  display: block;
  font-weight: 600;
  color: #111;
  margin-top: 14px;
  margin-bottom: 2px;
}

/* "Refine this plan" button row beneath the plan bubble */
.plan-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.plan-actions .btn-secondary {
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 500;
}

/* Typing indicator dots */

.itin-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 0 0 16px 0;
  margin: 0 0 16px 0;
  max-width: 640px;
  overflow: hidden;
}

.itin-day {
  padding: 16px 20px 8px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.itin-day:last-of-type {
  border-bottom: none;
}

.itin-day-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 10px;
}

.itin-event-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 3px 0;
  font-size: 0.88rem;
  color: #444;
}
.itin-event-time {
  min-width: 70px;
  font-size: 0.85rem;
  color: #666;
}
.itin-event-label {
  color: #333;
}

.itin-booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f9;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 6px 0;
}
.itin-booking-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.itin-booking-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
}
.itin-booking-detail {
  font-size: 0.8rem;
  color: #666;
}
.itin-booking-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.itin-btn-details {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  color: #333;
  transition: background 0.15s;
}
.itin-btn-details:hover { background: #efefef; }

.itin-btn-why {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #666;
  transition: background 0.15s;
}
.itin-btn-why:hover { background: #efefef; }

.itin-confirm-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 16px 16px 0 16px;
  padding: 14px;
  background: #6c63ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.itin-confirm-btn:hover:not(:disabled) { background: #5a52e0; }
.itin-confirm-btn.confirmed {
  background: #4caf50;
  cursor: default;
}


.ready-to-book-section {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 16px;
  max-width: 640px;
  margin-bottom: 24px;
}
.ready-to-book-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ready-booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ready-booking-row:last-child { border-bottom: none; }
.ready-booking-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ready-booking-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
}
.ready-booking-detail {
  font-size: 0.8rem;
  color: #666;
}
.ready-book-btn {
  background: #6c63ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ready-book-btn:hover { background: #5a52e0; }


.typing-indicator {
  color: #aaa;
  font-style: italic;
  letter-spacing: 3px;
}

