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

body {
  background-color: #f8f9fa;
  color: #202124;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-container {
  width: 100%;
  max-width: 900px;
  height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.app-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a73e8;
}

.logo-sub {
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.service-dropdown {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #dadce0;
  font-size: 13px;
  background-color: #ffffff;
  color: #3c4043;
  outline: none;
  cursor: pointer;
}

.secondary-btn {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #3c4043;
  transition: background 0.2s;
}

.secondary-btn:hover {
  background: #e8eaed;
}

/* Chat Window */
.chat-window {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.welcome-state {
  margin: auto;
  text-align: center;
  max-width: 500px;
}

.welcome-state h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #1a73e8;
}

.welcome-state p {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 24px;
}

.suggestions-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.suggestion-card:hover {
  background: #f1f3f4;
  border-color: #1a73e8;
}

/* Messages */
.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.message.user {
  align-self: flex-end;
  background-color: #e8f0fe;
  color: #1967d2;
  border-bottom-right-radius: 2px;
}

.message.bot {
  align-self: flex-start;
  background-color: #f1f3f4;
  color: #202124;
  border-bottom-left-radius: 2px;
}

.service-badge {
  font-size: 11px;
  font-weight: 600;
  color: #5f6368;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-block;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: #5f6368;
  border-radius: 50%;
  animation: blink 1.4s infinite ease-in-out both;
}

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

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

/* Footer & Input */
.input-area {
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  background: #ffffff;
}

.chat-form {
  display: flex;
  gap: 12px;
}

#user-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid #dadce0;
  font-size: 14px;
  outline: none;
}

#user-input:focus {
  border-color: #1a73e8;
}

.send-btn {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.send-btn:hover {
  background: #1557b0;
}

.send-btn:disabled {
  background: #dadce0;
  cursor: not-allowed;
}

/* Modal Exporter Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.close-btn {
  background: none; border: none; font-size: 20px; cursor: pointer; color: #5f6368;
}

.modal-desc {
  font-size: 13px; color: #5f6368; margin-bottom: 16px;
}

.code-tabs {
  display: flex; gap: 8px; margin-bottom: 12px;
}

.tab-btn {
  background: #f1f3f4; border: none; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; color: #5f6368;
}
.tab-btn.active {
  background: #1a73e8; color: #ffffff;
}

.code-container {
  position: relative;
  background: #202124;
  color: #e8eaed;
  padding: 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.1);
  border: none; color: #ffffff; padding: 4px 8px; border-radius: 4px; font-size: 11px; cursor: pointer;
}
.copy-btn:hover {
  background: rgba(255,255,255,0.2);
}