/* ---------------------------------------- */
/* SHARED LAYOUT STYLES FOR ALL APP PAGES */
/* ---------------------------------------- */

/* === General Page Setup === */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f6f8fb;
    color: #333;
  }
  
  /* === Header and Nav Bar === */
  header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0.5rem 2rem 0;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  
  .logo {
    font-weight: bold;
    font-size: 1.75rem;
    color: #2a6df4;
  }
  
  nav {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    position: relative;
  }
  
  nav a {
    text-decoration: none;
    font-weight: 600;
    color: #888;
    position: relative;
    padding-bottom: 0.25rem;
  }
  
  nav a.active {
    color: #2a6df4;
    font-weight: 700;
  }
  
  nav a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2a6df4;
  }
  
  .user-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-left: 1rem;
    margin-bottom: -2px; /* This aligns it with text baseline */
    display: inline-block;
    vertical-align: bottom;
  }
  
  /* === Login Page Header (Simplified) === */
/* === Login Header (Simplified Nav) === */
.login-header {
  width: 100%;
  background: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}

.login-header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2a5df3;
}



  
  /* === Section/Progress Bar Placeholder === */
  .section-bar {
    background: #f0f1f3;
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid #ccc;
  }
  
  .section-bar h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
/* Progress Bar Styles */
.progress-bar-container {
  background: #f0f1f3;
  padding: 1rem 2rem 0.5rem;
  border-bottom: 1px solid #ccc;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  max-width: 300px;
  margin: 0 auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  position: relative;
}

.progress-steps .step.active {
  color: #2a6df4;
}

.progress-line {
  position: relative;
  height: 2px;
  background: #ccc;
  margin: 0.4rem auto 0;
  width: 300px;
}

.progress-fill {
  position: absolute;
  height: 2px;
  background: #2a6df4;
  top: 0;
  left: 0;
}

.progress-fill.setup {
  width: 0%;
}
.progress-fill.save {
  width: 100%;
}


/* ======================== */
/* Mobile Responsiveness */
/* ======================== */
@media (max-width: 600px) {
  /* Header/Nav Layout */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }


  nav {
    gap: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .user-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: bottom; 
    margin-bottom: -2px;  
  }


  /* General Card Padding */
  .list-card,
  .save-card,
  form {
    padding: 1rem;
    margin: 1rem;
  }

  /* Items stack better on small screen */
  .item {
    flex-direction: column;
    align-items: flex-start;
  }

  .item span {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  /* Input touch targets */
  input[type="text"],
  button {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .save-btn {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .progress-bar-container {
    padding: 1rem 1rem 0.5rem;
  }
}
