#greeting {
  margin: 10px 0;
  padding: 16px;

  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;

  border-radius: 50px;

  font-size: 1.3rem;
  font-weight: 600;
}
/* Full clickable card style */
.clickable-card {
  cursor: pointer;
  position: relative;
  padding-right: 3rem;              /* reserve space for arrow */
  border: 2px solid transparent;
  transition: 
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.18s ease,
    border-color 0.2s ease;
}

.clickable-card::after {
  content: "›";                     /* right angle quote or use → or chevron */
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary);
  opacity: 0.45;                    /* always faintly visible */
  transition: all 0.25s ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  background-color: #f0f9ff;
  border-color: var(--primary);
}

.clickable-card:hover::after,
.clickable-card:focus-visible::after {
  opacity: 1;
  right: 1rem;
  transform: translateY(-50%) translateX(6px);
}

.clickable-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Card layout with icon on top */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.8rem 1.2rem;
  min-height: 140px;              /* consistent height */
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: all 0.24s ease;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  border-color: var(--primary);
}

/* Icon wrapper - nice circle background */
.card-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.08);   /* very light blue */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.card:hover .card-icon-wrapper {
  background: rgba(37, 99, 235, 0.15);
  transform: scale(1.08);
}

/* Icon styling */
.card i {
  transition: transform 0.3s ease;
}

.card:hover i {
  transform: scale(1.15);
}

/* Text */
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.4rem 0 0.6rem 0;
  color: var(--text);
}

.card span {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* Mobile: smaller icons if needed */
@media (max-width: 480px) {
  .card-icon-wrapper {
    width: 52px;
    height: 52px;
  }
  
  .card i {
    font-size: 1.6rem;
  }
}
.btn-add-med {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: white !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
  transition: all 0.3s ease;
}

.btn-add-med:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4) !important;
  filter: brightness(1.1);
}
/* Wellness Section Styling */
.wellness-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 30px;
  color: var(--text);
}

.wellness-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: 15px;
}

@media (min-width: 768px) {
  .wellness-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  }
}

.wellness-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.wellness-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Icon Colors */
.wellness-icon.blue { background: #dbeafe; color: #2563eb; }
.wellness-icon.green { background: #dcfce7; color: #22c55e; }
.wellness-icon.purple { background: #f3e8ff; color: #a855f7; }

.wellness-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.wellness-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 5px 0;
}

/* Tiny Progress Bar inside cards */
.progress-bar {
  width: 100px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}

.btn-check {
  margin-left: auto;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-check:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
/* TREND GRAPH STYLES */
.health-graph-container {
  display: flex;
  height: 150px;
  gap: 15px;
  padding-top: 10px;
  margin-top: 10px;
}

.graph-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 20px;
}

.graph-bars {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 5px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.bar-stack {
  width: 12px;
  height: 100px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  flex-direction: column-reverse; /* Stacks bars from bottom up */
  overflow: hidden;
  margin-bottom: 8px;
}

.bar-taken {
  background: var(--primary); /* Royal Blue */
  width: 100%;
  border-radius: 2px;
  transition: height 1s ease-in-out;
}

.bar-missed {
  background: #fecaca; /* Light Red */
  width: 100%;
}

.day-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

/* Make bars thicker on desktop */
@media (min-width: 1000px) {
  .bar-stack {
    width: 20px;
  }
  .health-graph-container {
    height: 200px;
  }
}
/* CARDS */
.cards{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  padding-top: 20px;
}

.card{
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
  text-align:center;
}

.card h3{
  font-weight:500;
  margin-bottom:10px;
}

.card span{
  font-size:28px;
  font-weight:600;
}

/* TREND BOX */
.trend{
  margin-top:25px;
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.trend h3{
  margin-bottom:10px;
}
/* Custom Toast Notification */
#custom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e1b4b;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
}

#custom-toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.wellness-tagline {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin-top: 4px;
    margin-left: 4px;
}