* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f4fff8;
}

/* navbar section */
.navbar {
  background: #ffffff;
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
}

.navbar-left img {
  width: 28px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  background-color: #ecfff0;
  color: #004d2b;
  width: auto;
  min-width: 70px;
}

/* header section */
header {
  background: linear-gradient(
    50deg,
    rgba(1, 50, 35, 1) 0%,
    rgba(0, 103, 71, 1) 50%,
    rgba(1, 50, 35, 0.81) 100%
  );
  color: white;
  text-align: center;
  padding: 25px 20px;
}

header img {
  width: 70px;
  margin-bottom: 8px;
}

header h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

header p {
  font-size: 14px;
  opacity: 0.9;
}

/* main section */
.main {
  display: flex;
  margin: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* cards section */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
}

.card-icon {
  background: #e9f5ec;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}

.card-icon img {
  height: 20px;
  width: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.card-subtitle {
  font-size: 13px;
  color: #777;
  margin: 4px 0 12px 0;
}

.number {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #006838;
}

.badge {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 6px;
}

.actions {
  display: flex;
  margin-top: 20px;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.btn-copy {
  background: #f2f2f2;
}

.btn-call {
  background: #00b050;
  color: white;
}

/* sidebar section */
.sidebar {
  width: 260px;
  background: #f9fff9;
  border-left: 2px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
}

.sidebar h3 {
  font-size: 16px;
  margin-left: 10px;
}

.history-item {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.history-item small {
  display: block;
  margin-top: 3px;
  color: gray;
}

.clear-btn {
  margin-top: 10px;
  background: #00A63E;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 1124px) {
  .main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%; 
    margin-top: 20px;
    border-left: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-left {
    margin-bottom: 10px;
  }

  .navbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-btn {
    flex: 1 1 auto;
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 22px;
  }

  header p {
    font-size: 12px;
  }

  .navbar-left span {
    font-size: 14px;
  }

  .nav-btn {
    font-size: 13px;
    padding: 5px 10px;
  }

  .card-title {
    font-size: 16px;
  }

  .number {
    font-size: 20px;
  }

  .badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}
