@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  /* Your existing variables */
  --primary-color: #3e9cd7;
  --dark-text: #666666;
  --heading-color: #333333;
  --bg-color: #e6ecf0;
  --border-radius: 10px;

  /* Specific Button Colors from Image */
  --google-orange: #f05a28;
  --icloud-black: #000000;
  --facebook-blue: #3b79b8;
  --github-gray: #6d6e70;

  --card-bg: #ffc2ab;
  --accent-orange: #f15a24;
  --dark-green: #006233;
  --progress-track: #ffffff;
  --progress-fill: #ff9e7d;
}

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

body {
  font-family: "Poppins", sans-serif;
}

.home_page_bg {
  background-color: var(--bg-color);
}

.center_content_on_page {
  width: 100%;
  padding: 0 30px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center_content_on_page_top {
  width: 100%;
  padding: 0 30px;
  height: 100vh;
  display: flex;
  justify-content: center;
}

.onboarding-container {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.home_page_container {
  max-width: 400px;
  width: 100%;
}

/* Hero Section */
.hero-image img {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text .highlight {
  color: var(--heading-color);
  display: block; /* Forces line break like the image */
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--dark-text);
  margin-bottom: 20px;
  padding: 0 0px;
}

/* Buttons Layout */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: block;
  width: calc(100% - 28px);
  padding: 14px;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

/* Button Variants */
.btn-google {
  background-color: var(--google-orange);
}
.btn-icloud {
  background-color: var(--icloud-black);
}
.btn-facebook {
  background-color: var(--facebook-blue);
}
.btn-github {
  background-color: var(--github-gray);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85px; /* Adjust height based on your visual preference */
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #f0f4f7;
  padding-bottom: env(safe-area-inset-bottom); /* Fix for iPhone notches */
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
  z-index: 1000;
}

.nav-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* Spacing between icon and text */
  flex: 1;
  transition: all 0.2s ease-in-out;
}

.nav-item svg {
  width: 28px;
  height: 28px;
  color: #a5c7d9; /* Inactive Icon Color */
}

.nav-item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a5c7d9; /* Inactive Text Color */
}

/* Active State */
.nav-item.active svg,
.nav-item.active span {
  color: #3e9cd7; /* Active Color from your UI */
}

/* Hover Effect for Desktop Testing */
.nav-item:hover svg {
  transform: translateY(-2px);
  color: #3e9cd7;
}

/* Top row with Profile and Add button */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  min-width: calc(100vw-40px);
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: #000;
}

.add-button {
  background-color: #666; /* Dark gray from sketch */
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.add-button:hover {
  background-color: #444;
}

/* Content area */
.main-title {
  font-size: 1.5rem;
  color: #888;
  margin-bottom: 5px;
  font-weight: 400;
}

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  font-size: 1.2rem;
  color: #999;
  font-weight: 400;
}

.stat-value {
  color: #999;
  font-weight: 600;
}

.progress-card {
  background-color: var(--card-bg);
  padding: 20px 25px;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.card-title {
  margin: 10px 0 20px 0;
  font-size: 22px;
  font-weight: 400;
  color: #c6461e;
  text-transform: uppercase;
}

/* Progress Bar Styling */
.progress-track {
  background-color: var(--progress-track);
  width: calc(100% - 6px);
  overflow: hidden;
  margin-bottom: 25px;
  padding: 3px;
}

.progress-fill {
  height: 6px;
  background-color: var(--progress-fill);
  width: 0%; /* Initial state for animation */
  animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
  from {
    width: 0%;
  }
  to {
    width: 50%;
  } /* 4800 / 5000 = 96% */
}

/* Footer Layout */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatars {
  display: flex;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  margin-right: -15px; /* Creates the overlap effect */
  background-color: #eee;
  object-fit: cover;
}

.plus-count {
  margin-left: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.stats-badge {
  background-color: var(--dark-green);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
}

/* Scoped Card Container */
.blue_progress_card {
  background-color: #e2edf3;
  padding: 10px 25px 1px 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

.blue_card_title {
  color: #4a8e9e;
  margin: 10px 0 20px 0;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

.text_card_title {
  color: #888;
  margin: 10px 0 10px 0;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Layout Logic using Floats */
.blue_stat_row {
  margin-bottom: 28px;
}

.blue_label {
  float: left;
  color: #4a8e9e;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.blue_value {
  float: right;
  color: #9dbdc6;
  font-weight: 500;
  font-size: 16px;
}

/* The requested Clearfix */
.blue_clear {
  clear: both;
}

/* Progress Bar Logic */
.blue_progress_container {
  background-color: #fff;
  padding: 3px;
  width: calc(100% - 6px);
  overflow: hidden;
}

.blue_progress_fill {
  background-color: #b2c8ce;
  height: 6px;
  width: 0; /* Starting state */

  /* CSS Animation triggered on load */
  animation: blue_fillAnimation 1.8s cubic-bezier(0.1, 0.5, 0.5, 1) forwards;
}

/* Scoped Animation Keyframes */
@keyframes blue_fillAnimation {
  from {
    width: 0;
  }
  to {
    width: var(--blue-width);
  }
}
.notes-container {
  padding: 20px 25px;
}

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

.count-badge {
  background-color: #e62e2e;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  margin-top: -5px;
}

.notes-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.note-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  color: #888;
  font-size: 16px;
}

.note-item_1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #999;
  color: #888;
  font-size: 16px;
}

.note-item:last-child {
  border-bottom: none;
}

.note-number {
  font-weight: 400;
  text-transform: uppercase;
  /* margin-left: 10px; */
}

.note-actions {
  font-size: 14px;
  color: #aaa;
  /* margin-right: 10px; */
}

.note-actions span {
  cursor: pointer;
}

.note-number a{color: #999; text-decoration: none;}
.note-number a:hover{color: #999; text-decoration: underline;}

.note-actions a{color: #aaa; text-decoration: none;}
.note-actions a:hover{color: #aaa; text-decoration: underline;}

/* Container */
.bottom_nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  z-index: 1000; /* Ensures it stays on top of other content */
}

/* Individual Item Link */
.bottom_nav .bottom_nav_item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  /* Inactive Color from your UI */
  color: #b2d0d9; 
  transition: all 0.2s ease-in-out;
}

/* Icon size inside the nav */
.bottom_nav .bottom_nav_item .material-icons {
  font-size: 28px;
  margin-bottom: 2px;
}

/* Label text styling */
.bottom_nav .bottom_nav_label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-family: sans-serif;
}

/* Active State - Darker Teal from your UI */
.bottom_nav .bottom_nav_item.bottom_nav_active {
  color: #4a869a;
}

/* Hover State (Optional) */
.bottom_nav .bottom_nav_item:hover {
  color: #4a869a;
}

/* Container styling */
.goal_card_container {
  background-color: #E6E0F0;
  padding: 10px 25px 25px 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

/* Title styling */
.goal_card_title {
  color: #843D8F;
  margin: 10px 0 10px 0;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Field group layout */
.goal_card_field_group {
  margin-bottom: 10px;
}

/* Label styling */
.goal_card_label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
}

/* Input box styling */
.goal_card_input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 20px;
  color: #9E9E9E;
  background-color: #FFFFFF;
  box-sizing: border-box;
  outline: none;
}

/* Button styling */
.goal_card_button {
  width: 100%;
  background-color: #843D8F;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.goal_card_button:hover {
  background-color: #6D3276;
}


/* Container styling */
.friend_card_container {
  background-color: #cce9da;
  padding: 10px 25px 25px 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

/* Title styling */
.friend_card_title {
  color: #006e34;
  margin: 10px 0 10px 0;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Field group layout */
.friend_card_field_group {
  margin-bottom: 10px;
}

/* Label styling */
.friend_card_label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  padding-bottom: 10px;
}

/* Input box styling */
.friend_card_input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 20px;
  color: #9E9E9E;
  background-color: #FFFFFF;
  box-sizing: border-box;
  outline: none;
}

/* Button styling */
.friend_card_button {
  width: 100%;
  background-color: #006e34;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.friend_card_button:hover {
  background-color: #005227;
}

/* Container styling */
.setup_card_container {
  background-color: #ede5dc;
  padding: 10px 25px 25px 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

/* Title styling */
.setup_card_title {
  color: #a67c52;
  margin: 10px 0 10px 0;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Field group layout */
.setup_card_field_group {
  margin-bottom: 10px;
}

/* Label styling */
.setup_card_label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  padding-bottom: 10px;
}

/* Input box styling */
.setup_card_input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 20px;
  color: #9E9E9E;
  background-color: #FFFFFF;
  box-sizing: border-box;
  outline: none;
}

/* Button styling */
.setup_card_button {
  width: 100%;
  background-color: #a67c52;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
}

.setup_card_button:hover {
  background-color: #745737;
}

/* PASSWORD */
/* Container styling */
.password_card_container {
  background-color: #fff;
  padding: 10px 25px 25px 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

/* Title styling */
.password_card_title {
  color: #999;
  margin: 10px 0 10px 0;
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Field group layout */
.password_card_field_group {
  margin-bottom: 10px;
}

/* Label styling */
.password_card_label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #999;
  padding-bottom: 10px;
}

/* Input box styling */
.password_card_input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 20px;
  color: #9E9E9E;
  background-color: #FFFFFF;
  box-sizing: border-box;
  outline: none;
}

/* Button styling */
.password_card_button {
  width: 100%;
  background-color: #999;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
}

.password_card_button:hover {
  background-color: #666;
}

/* LIGHTBOX */
/* The dark background */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* The actual alert card */
.lightbox-card {
  background: white;
  padding: 10px 25px 25px 25px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  /* text-align: center; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 25px;
}

/* Optional: Show class to toggle via JS */
.overlay.active {
  display: flex;
}

img#closeBtn {
    float: right;
    width: 20px;
    margin-top: 5px;
}