 :root {
      --bg: #ffffff;
      --primary: #000000;
      --muted: #ff176a;
      --accent: #fff6ee;
      --border: #dd8af6;
      --highlight: #cdff64;
      --font: "Segoe Print", sans-serif;
    }

    body {
      margin: 0;
      font-family: var(--font);
      background-color: var(--bg);
      color: var(--primary);
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
      position: relative;
    }

    /* Hero banner fixed at top */
    .hero {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 40px;
      display: flex;
      align-items: flex-start;
      padding-top: 10px;
      padding-left:10px;
      font-size: 1.5rem;
      font-weight: bold;
      color: white;
      text-shadow: 0 0 5px rgba(0,0,0,0.7);
      z-index: 200;
      pointer-events: none;
      transform: translateY(0);
      opacity: 1;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .hero-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

    .hero.hidden {
      opacity: 0;
      transform: translateY(-100%);
      pointer-events: none;
    }

    .summary-bar {
      position: fixed;
      top: 45px; /* below hero */
      left: 0;
      right: 0;
      padding: 1rem;
      background: var(--bg);
      transition: top 0.3s ease;
      z-index: 201;
    }
    .summary-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  pointer-events: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
    .summary-bar.pinned-top {
      top: 0; /* pinned to very top when hero hidden */
    }

    .summary-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }

    .summary-header h1 {
      font-size: 1.5rem;
      font-weight: bold;
      margin: 0;
    }

    .summary-metrics {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  flex-wrap: nowrap;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}


    .summary-metrics div {
      min-width: 120px;
      color: var(--muted);
    }

    .summary-metrics span {
      display: block;
      font-weight: bold;
      color: var(--primary);
    }

    .reset-btn {
      padding: 0.5rem 0.75rem;
      background-color: var(--highlight);
      border-radius: 0.5rem;
      font-weight: bold;
      color: var(--primary);
      cursor: pointer;
    }

    main {
      flex: 1;
      overflow-y: auto;
      padding: 1.5rem;
      /* Add bottom padding so content doesn't hide behind bottom nav */
      padding-bottom: 80px;
      margin-top: 200px; /* space for fixed hero + summary-bar */
    }

    #dailylog-section {
      /* Push dailylog content below hero (40px) + summary bar (50px approx) */
      padding-top: 40px; /* No extra padding needed since main has margin-top */
      position: relative;
      z-index: 10;
    }

    h1 {
      font-size: 1.25rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }

    .add-button {
      padding: 0.5rem .75rem;
      background-color: var(--border);
      border-radius: 0.5rem;
      font-weight: bold;
      cursor: pointer;
      color: var(--primary);
    }

    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-around;
      background-color: var(--bg);
      z-index: 202;
        box-shadow: 0 -4px 6px -2px rgba(0, 0, 0, 0.1);

    }

  

    .bottom-nav button {
      flex: 1;
      padding: 1.5rem 0.75rem;
      background: none;
      border: none;
      font-size: 0.85rem;
      color: var(--muted);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
      cursor: pointer;
    }

    .bottom-nav button.active {
      color: var(--primary);
    }

    .section {
      display: none;
    }

    .section.active {
      display: block;
    }

    .entry-container {
      margin-bottom: 1rem;
    }

    .entry-desc {
      padding: 0.5rem;
      width: 100%;
      margin-bottom: 0.5rem;
      box-sizing: border-box;
      border-radius: 0.75rem;
      border: 1px dashed var(--border);
      font-size:16px;
    }

    .entry-details {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }

    .entry-details input {
      padding: 0.5rem;
      flex: 1;
      box-sizing: border-box;
      border-radius: 0.75rem;
      border: 1px dashed var(--border);
      font-size:16px;
    }

    .delete-btn {
      background: none;
      border: none;
      font-size: 0.9rem;
      cursor: pointer;
      color: var(--muted);
    }

    .accordion-header {
      padding: 0.75rem 0.5rem;
      border-top: 1px solid #e1e1e1;
      border-left: none;
      border-right: none;
      border-bottom: none;
      cursor: pointer;
      background-color:#ffffff;
      text-align:left;
      width:100%;
      font-size:1rem;
    }

    .accordion-content {
      padding: 0.5rem 1rem;
      display: none;
      background: #fffafd;
      border-radius: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .accordion-content.open {
      display: block;
    }

    a {
      color: #ff69b4;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

   /* Visually hidden for screen reader only labels */
    .sr-only {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }