* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066cc;
  --secondary-color: #f0f2f5;
  --text-color: #1c1e21;
  --bot-bubble: #e4e6eb;
  --user-bubble: #0066cc;
  --user-text: #ffffff;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: #ffffff;
  background-image: radial-gradient(circle, #e0e0e0 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  margin: 0;
}

.app-container {
  display: flex;
  width: 100%;
  max-width: 1600px;
  height: 90vh;
  max-height: 900px;
  gap: 20px;
}

.chat-container {
  flex: 1;
  min-width: 400px;
  height: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon {
  font-size: 32px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.header-text h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f9fafb;
}

.message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.bot-message .message-bubble {
  background: var(--bot-bubble);
  color: var(--text-color);
  border-bottom-left-radius: 4px;
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-content {
  align-items: flex-end;
}

.user-message .message-bubble {
  background: var(--user-bubble);
  color: var(--user-text);
  border-bottom-right-radius: 4px;
}

.message-bubble ul {
  margin: 10px 0;
  padding-left: 20px;
}

.message-bubble li {
  margin: 5px 0;
}

.message-time {
  font-size: 12px;
  color: #65676b;
  padding: 0 8px;
}

/* Typing Indicator */
.typing-indicator {
  padding: 0 20px 20px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bot-bubble);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: #90949c;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 15px;
  flex-wrap: wrap;
}

.quick-action-btn {
  padding: 10px 16px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.quick-action-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

/* Room Cards */
.rooms-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.room-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.room-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.room-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.room-details {
  padding: 16px;
}

.room-details h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.room-description {
  font-size: 14px;
  color: #65676b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.room-features {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #65676b;
}

.room-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.amenity {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--secondary-color);
  border-radius: 12px;
  color: var(--text-color);
}

.book-room-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.book-room-btn:hover {
  background: #0052a3;
}

/* Packages Container */
.packages-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 16px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.package-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.package-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e4e6eb;
}

.package-header {
  padding: 16px;
  border-bottom: 1px solid #e4e6eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.package-header h3 {
  font-size: 18px;
  margin: 0;
  color: var(--text-color);
  flex: 1;
}

.package-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
  margin-left: 12px;
}

.package-details {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-type {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.duration {
  font-size: 13px;
  color: #65676b;
}

.package-description {
  font-size: 14px;
  color: #65676b;
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
}

.package-features {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #65676b;
}

.package-inclusions {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.package-inclusions strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 14px;
}

.package-inclusions ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.package-inclusions li {
  font-size: 13px;
  color: #65676b;
  margin-bottom: 4px;
  position: relative;
}

.package-inclusions li::before {
  content: '✓';
  position: absolute;
  left: -18px;
  color: #4caf50;
  font-weight: bold;
}

.package-inclusions li.more {
  color: var(--primary-color);
  font-weight: 600;
}

.package-inclusions li.more::before {
  content: '';
}

.book-package-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-package-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Input */
.chat-input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 24px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input:focus {
  border-color: var(--primary-color);
}

.send-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.send-button:hover {
  background: #0052a3;
  transform: scale(1.1);
}

.send-button:active {
  transform: scale(0.95);
}

.input-hint {
  font-size: 12px;
  color: #65676b;
  padding-left: 16px;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  
  .chat-container {
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  
  .rooms-container {
    grid-template-columns: 1fr;
  }
  
  .message-bubble {
    max-width: 90%;
  }
}

/* JSON Panel Styles */
.json-panel {
  flex: 0 0 500px;
  background: #1e1e1e;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.json-panel.collapsed {
  flex: 0 0 50px;
}

.json-header {
  background: #2d2d2d;
  padding: 16px 20px;
  border-bottom: 1px solid #3d3d3d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.json-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.json-icon {
  font-size: 24px;
  font-weight: bold;
  color: #61dafb;
}

.json-title h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.json-toggle {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.json-toggle:hover {
  background: #3d3d3d;
  color: #fff;
}

.json-toggle svg {
  transition: transform 0.3s;
}

.json-panel.collapsed .json-toggle svg {
  transform: rotate(180deg);
}

.json-content {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.json-content pre {
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4d4;
}

.json-content code {
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.json-content::-webkit-scrollbar {
  width: 10px;
}

.json-content::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.json-content::-webkit-scrollbar-thumb {
  background: #3d3d3d;
  border-radius: 5px;
}

.json-content::-webkit-scrollbar-thumb:hover {
  background: #4d4d4d;
}

/* Mobile Responsive for JSON Panel */
@media (max-width: 1200px) {
  .app-container {
    flex-direction: column;
  }
  
  .json-panel {
    flex: 0 0 300px;
    order: 2;
  }
  
  .chat-container {
    flex: 1;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .json-panel {
    display: none;
  }
  
  .app-container {
    height: 100vh;
    max-height: none;
  }
}
