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

body {
  min-height: 100vh;
  background: #050505;
  color: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
}

.bot-app {
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: auto;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
}

.bot-header {
  height: 72px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222;
  background: #0d0d0d;
}

.bot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #444;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  background: #151515;
}

.bot-brand h1 {
  font-size: 15px;
  letter-spacing: 1.5px;
}

.bot-brand span {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: #777;
  letter-spacing: 1px;
}

.status {
  font-size: 9px;
  color: #888;
  letter-spacing: 1px;
}

.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #777;
}

.chat-area {
  flex: 1;
  padding: 24px 16px 110px;
  overflow-y: auto;
}

.message {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #181818;
  border: 1px solid #333;
  font-size: 13px;
  font-weight: bold;
}

.bubble {
  max-width: 82%;
  padding: 13px 15px;
  border: 1px solid #242424;
  border-radius: 4px 14px 14px 14px;
  background: #141414;
}

.bubble strong {
  font-size: 14px;
}

.bubble p {
  margin-top: 7px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 42px;
}

.quick-actions button {
  padding: 9px 12px;
  border: 1px solid #2d2d2d;
  border-radius: 20px;
  background: #111;
  color: #aaa;
  font-size: 11px;
  cursor: pointer;
}

.quick-actions button:hover {
  background: #1c1c1c;
  color: #fff;
}

.input-area {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 720px;
  z-index: 1000;
  pointer-events: auto;
  padding: 12px 16px 14px;
  border-top: 1px solid #222;
  background: rgba(10, 10, 10, 0.97);
}

.input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border: 1px solid #303030;
  border-radius: 15px;
  background: #121212;
}

.input-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.input-box input::placeholder {
  color: #666;
}

.input-box button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: #222;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.input-area small {
  display: block;
  margin-top: 7px;
  text-align: center;
  color: #555;
  font-size: 8px;
  letter-spacing: 1px;
}

@media (min-width: 721px) {
  body {
    padding: 20px;
  }

  .bot-app {
    min-height: calc(100vh - 40px);
    border: 1px solid #222;
    border-radius: 18px;
    overflow: hidden;
  }

  .input-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    border-radius: 0 0 18px 18px;
  }
}

.weather-widget {
  margin: 22px 0 18px 42px;
  padding: 14px;
  border: 1px solid #242424;
  border-radius: 14px;
  background: #101010;
}

.weather-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.weather-header strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
}

.weather-header span {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 9px;
}

.weather-status {
  margin-top: 0 !important;
  color: #777 !important;
  font-size: 8px !important;
  letter-spacing: 1px;
}

.weather-cities {
  display: grid;
  gap: 7px;
}

.weather-city {
  padding: 10px 11px;
  border: 1px solid #202020;
  border-radius: 10px;
  background: #0b0b0b;
}

.weather-city-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.weather-city-name {
  font-size: 12px;
  font-weight: 700;
}

.weather-city-temp {
  font-size: 14px;
  font-weight: 700;
}

.weather-city-condition {
  margin-top: 4px;
  color: #999;
  font-size: 10px;
}

.weather-city-detail {
  margin-top: 7px;
  color: #666;
  font-size: 9px;
  line-height: 1.5;
}

.weather-city.unavailable {
  opacity: 0.55;
}

@media (max-width: 480px) {
  .weather-widget {
    margin-left: 0;
  }
}

/* CHAT LAYOUT FIX — MOBILE */
@media (max-width: 480px) {
  .chat-area {
    padding-bottom: 190px;
  }
}

/* READABILITY FIX — DARK SLATE MOBILE */
body {
  background: #080b10;
  color: #f1f5f9;
}

.bot-app {
  background: #0d1117;
}

.bot-header {
  background: #11161d;
  border-bottom-color: #27303a;
}

.bot-icon {
  background: #18202a;
  border-color: #34404d;
}

.bot-brand span {
  color: #9aa7b5;
}

.status {
  color: #aab6c3;
}

.status i {
  background: #64d98b;
}

.bubble {
  background: #161d25;
  border-color: #2b3642;
}

.bubble p {
  color: #d2d9e1;
  font-size: 14px;
  line-height: 1.65;
}

.avatar {
  background: #1b242e;
  border-color: #34414e;
}

.quick-actions button {
  background: #151c24;
  border-color: #34404d;
  color: #cbd5df;
}

.quick-actions button:hover {
  background: #202a35;
  color: #fff;
}

.input-area {
  background: rgba(13, 17, 23, 0.98);
  border-top-color: #29333e;
}

.input-box {
  background: #161d25;
  border-color: #3a4653;
}

.input-box input::placeholder {
  color: #8995a3;
}

.input-area small {
  color: #718090;
}

/* WEATHER */
.weather-widget {
  background: #121922;
  border-color: #303c49;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.weather-header strong {
  color: #f1f5f9;
  font-size: 13px;
}

.weather-header span {
  color: #a5b1be;
  font-size: 10px;
}

.weather-status {
  color: #9eabb8 !important;
  font-size: 9px !important;
}

.weather-city {
  background: #18212b;
  border-color: #34414e;
  padding: 12px;
}

.weather-city-name {
  color: #f1f5f9;
  font-size: 13px;
}

.weather-city-temp {
  color: #ffffff;
  font-size: 19px;
}

.weather-city-condition {
  color: #c3ced9;
  font-size: 12px;
}

.weather-city-detail {
  color: #b0bcc8;
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 480px) {
  .weather-widget {
    margin-left: 0;
    margin-right: 0;
    padding: 15px;
  }

  .weather-cities {
    gap: 9px;
  }

  .weather-city {
    padding: 13px;
  }

  .weather-city-temp {
    font-size: 20px;
  }

  .weather-city-condition {
    font-size: 12px;
  }

  .weather-city-detail {
    font-size: 12px;
    line-height: 1.7;
  }

  .chat-area {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ==========================================
   ANKER BOT GPS / LOCATION V1
   ========================================== */

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

#locationBtn {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#locationBtn:hover {
  background: rgba(255, 255, 255, 0.10);
}

#locationBtn:disabled {
  opacity: 0.6;
  cursor: wait;
}

#locationStatus {
  font-size: 11px;
  opacity: 0.7;
  text-align: center;
}
