@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background: #f9fdff;
  color: #1f2937;
  overflow-x: hidden;
  animation: fadeIn 0s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.app-header {
  background: #fff;
  padding: 15px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.health-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #c7f5ff, #e9fcff);
  transition: transform 0.3s;
}
.health-card:hover {
  transform: translateY(-3px);
}

.quick-tile {
  border-radius: 18px;
  background: #fff;
  text-align: center;
  padding: 20px 0;
  color: #333;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}
.quick-tile:hover {
  transform: translateY(-3px);
}
.quick-tile i {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 6px;
}
.quick-tile.blue {
  color: #007aff;
}
.quick-tile.pink {
  color: #ff5e93;
}
.quick-tile.green {
  color: #00bfa6;
}

.doctor-card {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.doctor-card:hover {
  transform: translateY(-3px);
}
.doc-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

body {
  padding-bottom: 80px; /* keeps space for nav bar */
}
/* Profile Page */
.profile-banner {
  background: linear-gradient(135deg, #e0f7ff, #ffffff);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.profile-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.profile-card:hover {
  transform: translateY(-3px);
}
/* Chat Foundation */
.chat-popup {
  position: fixed;
  bottom: 70px;
  right: 15px;
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  animation: fadeInUp 0.3s ease;
}
.chat-popup.show {
  display: flex;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: linear-gradient(135deg, #00bfa6, #00c8ff);
  color: #fff;
  padding: 10px 15px;
}
.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9fdff;
}
.chat-input {
  border-top: 1px solid #eee;
  background: #fff;
  padding: 8px;
}
.chat-bubble {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}
.chat-bubble.bot {
  background: #e7f9ff;
  align-self: flex-start;
}
.chat-bubble.user {
  background: #00bfa6;
  color: #fff;
  align-self: flex-end;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===============================
   Clean Blue Footer Navigation
   =============================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 70px;
  background: linear-gradient(180deg, #bfe3ff 0%, #7dbfff 40%, #4f9fff 100%);
  border-radius: 25px 25px 0 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  padding: 0 15px;
  z-index: 999;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ===== Each Nav Item ===== */
.bottom-nav a {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

/* ===== Icon Circle ===== */
.nav-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-icon i {
  font-size: 1.3rem;
  color: #fff;
  transition: all 0.3s ease;
}

/* ===== Active / Hover Effect ===== */
.bottom-nav a.active .nav-icon,
.bottom-nav a:hover .nav-icon {
  background: #fff;
  transform: translateY(-5px);
}

.bottom-nav a.active i,
.bottom-nav a:hover i {
  color: #007bff;
  transform: scale(1.25);
}

/* ===== Make Sure Page Content Not Hidden ===== */
body {
  padding-bottom: 90px;
}

/* ===== Mobile Friendly ===== */
@media (max-width: 480px) {
  .bottom-nav {
    width: 100%;
    border-radius: 20px 20px 0 0;
    height: 65px;
  }
  .nav-icon {
    width: 42px;
    height: 42px;
  }
  .nav-icon i {
    font-size: 1.2rem;
  }
}

/* ===============================
   Floating Chat Button
   =============================== */
.chat-toggle-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6eb9ff, #007bff);
  color: #fff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
  background: linear-gradient(135deg, #007bff, #005fd6);
  transform: scale(1.07);
}
