/* ------------------------------------------------------ GLOBAL RESET ------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f5f5;
  overflow: hidden;
}

/* ------------------------------------------------------ INTRO OVERLAY ------------------------------------------------------ */
#demoOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.demo-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
}

.demo-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

/* ------------------------------------------------------ GUIDED TOUR ------------------------------------------------------ */
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 900;
}

.tour-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  z-index: 1000;
  text-align: center;
}

.tour-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

/* ------------------------------------------------------ MAIN APP LAYOUT ------------------------------------------------------ */
.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* HEADER */
.app-header {
  padding: 15px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.app-header h2 {
  text-align: center;
  width: 100%;
}

.progress-container {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin-top: 10px;
}

#progressBar {
  height: 8px;
  width: 0%;
  background: #4caf50;
  border-radius: 4px;
}

/* ------------------------------------------------------ SETTINGS ROW ------------------------------------------------------ */
.settings-row {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.settings-row select,
.settings-row input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mic-button {
  padding: 8px 12px;
  font-size: 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

/* ------------------------------------------------------ CHAT WINDOW ------------------------------------------------------ */
.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #fafafa;
}

/* ------------------------------------------------------ INPUT CONTROLS ------------------------------------------------------ */
.input-controls-row {
  flex-shrink: 0;
  padding: 12px;
  background: white;
  border-top: 1px solid #ddd;
}

.control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.input-area {
  display: flex;
  gap: 10px;
}

#userInput {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ------------------------------------------------------ BUTTONS ------------------------------------------------------ */
button {
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

/* ------------------------------------------------------ CHAT BUBBLES ------------------------------------------------------ */
.bot-message,
.user-message {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  max-width: 80%;
}

.bot-message {
  background: #e8f0fe;
  align-self: flex-start;
}

.user-message {
  background: #d1ffd1;
  align-self: flex-end;
}
