/* ==========================================================================
   NORTHSTAR AIR SERVICE - MODERN AI ASSISTANT THEME
   Matches exact light clean layout, colors, typography and interactive cards
   ========================================================================== */

:root {
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-bubble-ai: #ffffff;
  --bg-bubble-user: #e6f7f5;
  --text-user: #064e3b;
  
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #f0fdfa;
  --primary-border: #99f6e4;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* APP LAYOUT CONTAINER */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ==========================================================================
   LEFT SIDEBAR
   ========================================================================== */
.sidebar {
  width: 256px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  height: 100%;
  flex-shrink: 0;
  z-index: 10;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-box {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 1.5px;
}

/* Sections */
.sidebar-section {
  margin-top: 24px;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* New Conversation Button */
.btn-new-convo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-new-convo:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-new-convo i {
  font-size: 12px;
  color: var(--text-muted);
}

/* Navigation List */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.nav-item.active {
  background-color: var(--primary-light);
  color: #0f766e;
  font-weight: 600;
}

.nav-item.active i {
  color: var(--primary);
}

/* Try an existing booking card */
.card-sample-booking {
  margin-top: 14px;
  padding: 10px 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-sample-booking:hover {
  border-color: var(--primary-border);
  background-color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.sample-icon {
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.sample-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.sample-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-subtitle {
  font-size: 10px;
  color: var(--text-subtle);
}

.sample-arrow {
  font-size: 12px;
  color: var(--text-subtle);
  transition: transform 0.2s;
}

.card-sample-booking:hover .sample-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-subtle);
}

.privacy-badge i {
  font-size: 12px;
  color: #10b981;
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-circle.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 11px;
  color: var(--text-subtle);
}

.btn-user-menu {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.btn-user-menu:hover {
  color: var(--text-main);
}

/* ==========================================================================
   MAIN RIGHT WRAPPER & HEADER
   ========================================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-app);
}

/* TOP HEADER */
.top-header {
  height: 54px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 5;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.crumb-parent {
  color: var(--text-muted);
}

.crumb-separator {
  color: var(--border-color);
}

.crumb-active {
  color: var(--text-main);
  font-weight: 600;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.icon-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-circle-btn:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}

/* ==========================================================================
   CHAT CANVAS & MESSAGES
   ========================================================================== */
.chat-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 150px 20px;
  scroll-behavior: smooth;
}

.chat-inner-column {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Date Divider */
.date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 16px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.divider-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 1px;
}

/* Messages Container */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Assistant Message Row */
.assistant-message-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
}

.assistant-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.bubble-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 40px);
}

.assistant-header-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 2px;
}

.assistant-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.assistant-tag {
  font-size: 10px;
  font-weight: 700;
  background-color: #f1f5f9;
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 4px;
}

.message-bubble.assistant-bubble {
  background-color: var(--bg-bubble-ai);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* User Message Row */
.user-message-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.message-bubble.user-bubble {
  background-color: var(--bg-bubble-user);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-user);
  max-width: 620px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Markdown styling inside bubbles */
.message-bubble p {
  margin-bottom: 8px;
}
.message-bubble p:last-child {
  margin-bottom: 0;
}
.message-bubble strong {
  font-weight: 600;
  color: #0f172a;
}
.message-bubble ul {
  margin-left: 20px;
  margin-bottom: 8px;
}

/* ==========================================================================
   IN-CHAT INTERACTIVE OPTION CARDS
   (Locations, Hotels, Rooms, Vehicles, Clarification)
   ========================================================================== */
.in-chat-options-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.options-title-bar {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

/* 1. Destination Cards Grid */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.inchat-dest-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.inchat-dest-card:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.inchat-dest-badge {
  width: 44px;
  height: 44px;
  background-color: #f0fdfa;
  border: 1px solid var(--primary-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.inchat-dest-badge i {
  font-size: 11px;
  opacity: 0.7;
}

.inchat-dest-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.inchat-dest-city {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.inchat-dest-airport {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Hotel Cards In-Chat */
.hotels-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inchat-hotel-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.inchat-hotel-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.inchat-hotel-img {
  width: 140px;
  height: 105px;
  object-fit: cover;
  flex-shrink: 0;
}

.inchat-hotel-details {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.inchat-hotel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inchat-hotel-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.inchat-hotel-rating {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background-color: #fef3c7;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.inchat-hotel-address {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.inchat-hotel-desc {
  font-size: 11px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inchat-hotel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.inchat-btn-select {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3. Room Cards In-Chat */
.rooms-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.inchat-room-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.inchat-room-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.inchat-room-thumb-box {
  position: relative;
  height: 120px;
}

.inchat-room-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inchat-room-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.inchat-room-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.inchat-room-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.inchat-room-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.inchat-room-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.inchat-room-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inchat-room-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.inchat-meta-pill {
  font-size: 10px;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 4. Vehicle Transfer Option Cards */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.inchat-vehicle-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inchat-vehicle-card:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.vehicle-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vehicle-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.vehicle-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #f0fdfa;
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.vehicle-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* 5. Typo Clarification Card */
.inchat-clarify-card {
  background-color: #f0fdfa;
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clarify-text {
  font-size: 14px;
  font-weight: 600;
  color: #0f766e;
}

.clarify-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clarify-yes {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-clarify-yes:hover {
  background-color: var(--primary-hover);
}

.btn-clarify-no {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clarify-no:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

/* 6. In-chat Voucher Receipt */
.inchat-voucher-card {
  background: #ffffff;
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voucher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.voucher-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.voucher-tag {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.voucher-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}

.voucher-row {
  display: flex;
  flex-direction: column;
}

.voucher-label {
  font-size: 10px;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
}

.voucher-val {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
}

/* Quick Replies Bar inside chat */
.inchat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.inchat-reply-chip {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.inchat-reply-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Typing Indicator Animation */
.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px !important;
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-subtle);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   FLOATING CHAT INPUT CARD
   ========================================================================== */
.chat-input-wrapper {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, calc(100% - 40px));
  z-index: 20;
}

.chat-input-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px 10px 16px;
  box-shadow: var(--shadow-float);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 12px 28px -5px rgba(13, 148, 136, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.chat-input-card form {
  display: flex;
  flex-direction: column;
}

#chat-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  resize: none;
  min-height: 24px;
  max-height: 120px;
  line-height: 1.5;
  padding: 2px 0 8px 0;
}

#chat-input::placeholder {
  color: var(--text-subtle);
}

.input-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.input-tools-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dummy Paperclip Attachment Button */
.btn-tool-icon {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-tool-icon:hover {
  color: var(--text-main);
  background-color: #f1f5f9;
}

.secure-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #0d9488;
}

.secure-tag i {
  font-size: 11px;
}

.channel-tag {
  font-size: 11px;
  color: var(--text-subtle);
  border-left: 1px solid var(--border-color);
  padding-left: 10px;
}

.btn-send-arrow {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background-color: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send-arrow.active,
.btn-send-arrow:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.chat-disclaimer {
  font-size: 11px;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 8px;
}

/* ==========================================================================
   BOOKINGS LEDGER MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: #ffffff;
  border-radius: 16px;
  width: min(900px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-badge {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
}

.btn-modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.table-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.table-search-bar input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  width: 100%;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ledger-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.ledger-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: #334155;
  vertical-align: middle;
}

.ledger-table tr:hover td {
  background-color: #f8fafc;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-tag.confirmed {
  background-color: #ecfdf5;
  color: #059669;
}

.btn-delete-booking {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-delete-booking:hover {
  background-color: #dc2626;
  color: #ffffff;
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: #1e293b;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.2s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .chat-input-wrapper {
    width: calc(100% - 24px);
    bottom: 12px;
  }
}

/* ==========================================================================
   VOICE RECORDING (STT) & AUDIO SPEECH (TTS) STYLES
   ========================================================================== */
.btn-mic {
  color: #0284c7 !important;
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  transition: all 0.2s ease;
}

.btn-mic:hover {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  transform: scale(1.05);
}

.btn-mic.recording-active {
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
  border-color: #fca5a5 !important;
  animation: micPulse 1.2s infinite;
}

@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Voice Recording Overlay Studio */
.voice-recording-overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-height: 60px;
  animation: slideUpFade 0.25s ease-out forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.voice-recording-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.voice-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.voice-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: recPulse 1.2s infinite;
}

@keyframes recPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.voice-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  min-width: 42px;
}

/* Sound Waves Visualizer */
.voice-waveform-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-wave-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
}

.v-bar {
  display: block;
  width: 4px;
  min-height: 6px;
  height: 8px;
  background: linear-gradient(180deg, #38bdf8 0%, #0d9488 100%);
  border-radius: 3px;
  transition: height 0.08s ease;
  animation: ambientWave 1.4s infinite ease-in-out;
}

.v-bar:nth-child(2n) { animation-delay: 0.2s; }
.v-bar:nth-child(3n) { animation-delay: 0.4s; }
.v-bar:nth-child(4n) { animation-delay: 0.1s; }
.v-bar:nth-child(5n) { animation-delay: 0.35s; }

@keyframes ambientWave {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 24px; opacity: 1; }
}

/* Voice Action Buttons */
.voice-recording-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-voice-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

/* Restart Button */
.btn-voice-restart {
  background-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-voice-restart:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Cancel Button */
.btn-voice-cancel {
  background-color: transparent;
  color: #94a3b8;
}

.btn-voice-cancel:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Stop Button */
.btn-voice-stop {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.btn-voice-stop:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.btn-msg-audio {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 6px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-msg-audio:hover {
  color: #0284c7;
  background-color: #f1f5f9;
}

.btn-msg-audio.playing {
  color: #0d9488;
  animation: pulseAudio 1s infinite alternate;
}

@keyframes pulseAudio {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.15); opacity: 1; }
}

.active-tts {
  color: #0d9488 !important;
  background-color: #f0fdfa !important;
  border-color: #99f6e4 !important;
}

.active-tts.muted {
  color: #94a3b8 !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* ==========================================================================
   MICROPHONE PERMISSION MODAL
   ========================================================================== */
.mic-modal-box {
  width: min(520px, 92vw) !important;
}

.mic-badge {
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
}

.mic-modal-body {
  padding: 18px 22px 24px 22px;
}

.mic-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
}

.mic-status-banner i {
  font-size: 16px;
  flex-shrink: 0;
}

.mic-steps-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.mic-steps-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.mic-steps-list {
  padding-left: 20px;
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
}

.mic-steps-list li {
  margin-bottom: 6px;
}

.mic-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-mic-try-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.btn-mic-try-again:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-mic-dismiss {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-mic-dismiss:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}
