* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f9ff;
  color: #1f2933;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0b5ed7;
  color: #ffffff;
}

.boat-icon {
  font-size: 24px;
}

.header-main h1 {
  margin: 0;
  font-size: 20px;
}

.chat-bubble {
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
}

.avatar {
  margin-left: auto;
  font-size: 24px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #d0d7e2;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-input-wrapper {
  display: flex;
  gap: 6px;
}

.chat-input-wrapper input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #cbd2e3;
  font-size: 14px;
}

.chat-input-wrapper button {
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  background: #0b5ed7;
  color: #ffffff;
  cursor: pointer;
}

/* Bottom nav */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  gap: 4px;
}

.bottom-nav button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 18px;
  cursor: pointer;
}

/* Progress bar */
.progress-wrapper {
  margin-top: 8px;
  background: #e5edf9;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #0b5ed7;
  transition: width 0.3s ease;
}

/* Mobile layout */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 10px 12px;
  }

  .card {
    padding: 10px 12px;
  }

  body {
    padding-bottom: 80px; /* space for fixed footer */
  }
}
