body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3faf8;
  color: #222;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: green;
}

.navbar-logo {
  width: 40px;
  height: 40px;
}

.navbar-title {
  font-weight: bold;
  font-size: 20px;
}

.navbar-right {
  display: flex;
  gap: 16px;
  font-size: 16px;
  color: black;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-small {
  width: 20px;
  height: 20px;
}

.hero {
  text-align: center;
  padding: 32px 16px;
  background: linear-gradient(to right, #006a4e, #009e73);
  color: white;
}

.hero h1 {
  font-size: 28px;
  margin: 10px 0;
}

.hero p {
  font-size: 16px;
  max-width: 700px;
  margin: auto;
}

.main {
  display: flex;
  padding: 20px;
  gap: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  flex: 3;
}

.card {
  background: white;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  text-align: left;
  font-size: 50px;
}

.card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
}

.card .number {
  font-weight: bold;
  font-size: 20px;
}

.card .badge {
  display: inline-block;
  background: #eee;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 14px;
  margin: 6px 0;
}

.card-icon {
  width: 50px;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 13px;
  color: #666; 
  display: block;
  margin-top: -2px; 
}

.heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

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

.copy-btn,
.call-btn {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  margin: 0 5px;
}

.copy-btn {
  background: #eee;
}

.call-btn {
  background: #28a745;
  color: white;
}

.history {
  flex: 1;
  background: white;
  padding: 16px;
  border-radius: 10px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 16px;              
  border-radius: 10px;        
  background: #f9f9f9;       
  border: 1px solid #eee;     
}

.history ul li > div:first-child {
  text-align: left;
}

.history ul li > div:first-child div:first-child {
  font-weight: bold;
}

.history ul li > div:first-child div:last-child {
  font-size: 0.9em;
  color: gray;
}

.history ul li > div:last-child {
  text-align: center;
  min-width: 100px;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
    padding: 10px;
  }

  .cards {
    grid-template-columns: 1fr; /* Single column cards */
    gap: 12px;
  }

  .card {
    font-size: 18px; /* Reduce card font size for small screens */
    padding: 12px;
  }

  .buttons {
    flex-direction: column; /* Stack copy & call buttons */
    gap: 6px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar-right {
    gap: 10px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .history {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr; /* Ensure single column on very small screens */
  }

  .card h3 {
    font-size: 16px;
  }

  .card .number {
    font-size: 18px;
  }

  .card-subtitle {
    font-size: 12px;
  }

  .copy-btn,
  .call-btn {
    font-size: 14px;
    padding: 8px;
  }

  .navbar-title {
    font-size: 18px;
  }

  .navbar-logo {
    width: 30px;
    height: 30px;
  }
}
