/* ============================= */
/*    Main Styles for iPhone     */
/*    Chris’s DoorDash Tracker   */
/* ============================= */

/* ----------------------------- */
/* 1. Global & Body Reset        */
/* ----------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #1a1919;    /* Dark background for the entire site */
  color: #ffffff;               /* White text by default */
  font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%; /* Ensures proper scaling on mobile */
}
.history-container .page-title {
  font-family: 'Brush Script MT', cursive;
  font-size: 2.5rem;
  color: #ff4500;         /* Bright orange/red */
  margin-bottom: 0.5rem;
  text-align: Center;
}
/* ----------------------------- */
/* 2. Styles Scoped to           */
/*    .entry-container           */
/*    (i.e., only new-entry.html) */
/* ----------------------------- */

/* Container & Overall Layout */
.entry-container {
  max-width: 400px;       /* Content will not exceed 400px */
  margin: 0 auto;         /* Center the container on the page */
  padding: 1rem;          /* Space around the form on mobile */
}

/* Header (stacks and centers title + back-link) */
.entry-container header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;    /* Space below header */
}

/* “New Entry” page title, scoped */
.entry-container .page-title {
  font-family: 'Brush Script MT', cursive;
  font-size: 2.5rem;
  color: #ff4500;         /* Bright orange/red */
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Back-link (button) styling, scoped */
.entry-container .back-link {
  display: inline-block;
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.entry-container .back-link:hover {
  background-color: #444444;
}

/* Each label + input pair is wrapped by .form-row, scoped */
.entry-container .form-row {
  margin-bottom: 1rem;
}

/* Label styling inside .form-row (scoped) */
.entry-container .form-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

/* Input fields under .entry-container only */
.entry-container input[type="date"],
.entry-container input[type="number"],
.entry-container input[type="time"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #e0e0e0;    /* Light gray backgrounds for inputs */
  color: #000000;               /* Black text in inputs */
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
}

/* Placeholder text color inside .entry-container inputs */
.entry-container input::placeholder {
  color: #666666;
  opacity: 1;
}

/* On focus, inputs inside .entry-container get a highlight */
.entry-container input:focus {
  outline: 2px solid #ff4500;  /* Orange focus ring */
  background-color: #ffffff;
}

/* ----------------------------- */
/* 2a. Two-Column Flex Rows      */
/*     (Time Start/Stop, Miles   */
/*      Start/Stop)              */
/* ----------------------------- */

/* This class, applied to a .form-row, creates a 2-column flex container */
.entry-container .form-row.flex-two {
  display: flex;
  gap: 1rem;               /* space between the two columns */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Each direct child <div> inside a “.form-row.flex-two” will flex equally */
.entry-container .form-row.flex-two > div {
  flex: 1;
  -webkit-appearance: none;
  -moz-appearance: none;  
  /* The crucial min-width: 0 lets the input shrink below its content’s “min-content” */
  /* (otherwise iOS's native time-picker widget can overflow or push everything out). */
  min-width: 0;
}

/* ----------------------------- */
/* 2b. Separator (<hr>) styling  */
/* ----------------------------- */
.entry-container hr {
  border: none;                /* Remove default border */
  height: 3px;                 /* Thicker line */
  background-color: #ff4500;   /* Bright accent color */
  margin: 2rem 0;              /* Vertical spacing above & below */
}

/* ----------------------------- */
/* 3. Calculated Values Display  */
/* ----------------------------- */
.entry-container #calculations {
  margin-bottom: 1rem;
}
.entry-container #calculations p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #dddddd;
}

/* ----------------------------- */
/* 4. Save Button & Message      */
/* ----------------------------- */
.entry-container button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #333333;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 0.5rem;
}
.entry-container button[type="submit"]:hover:not(:disabled) {
  background-color: #444444;
}
.entry-container button[type="submit"]:disabled {
  background-color: #555555;
  cursor: not-allowed;
}
.entry-container #form-message {
  text-align: center;
  font-style: italic;
  color: #bbbbbb;
  font-size: 0.9rem;
}

/* ----------------------------- */
/* 5. Responsive Tweaks          */
/* ----------------------------- */
@media (max-width: 360px) {
  .entry-container {
    padding: 0.75rem;       /* Slightly less padding on very small screens */
  }
  .entry-container .page-title {
    font-size: 1.75rem;     /* Slightly smaller title text */
  }
  .entry-container .back-link {
    font-size: 0.95rem;     /* Slightly smaller back-link text */
    padding: 0.5rem 0.75rem;
  }
  .entry-container input[type="date"],
  .entry-container input[type="number"],
  .entry-container input[type="time"] {
    padding: 0.5rem;        /* Smaller input padding */
    font-size: 0.95rem;     /* Smaller input text */
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  .entry-container button[type="submit"] {
    padding: 0.65rem;       /* Smaller button padding */
    font-size: 0.95rem;     /* Smaller button text */
  }
}

/* ----------------------------- */
/* 6. Utility Classes (Optional) */
/* ----------------------------- */

/* If you need a full-width helper elsewhere */
.w-100 {
  width: 100%;
}

/* Visually hidden, for accessibility hints */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
/* ─── centered login modal ───────────────────────────── */
.modal           { position:fixed; inset:0; display:flex;
                   justify-content:center; align-items:center; z-index:1000; }
.modal.hidden    { display:none; }
.modal-backdrop  { position:absolute; inset:0;
                   backdrop-filter:blur(4px); background:rgba(0,0,0,.35); }

.modal-box {
  position:relative;
  background:#3b3b3b;   /* was #fff – now a mid‑grey */
  color:#fff;           /* white text on grey */
  border-radius:12px;
  padding:24px 20px;
  max-width:400px;
  width:90%;
  box-shadow:0 4px 20px rgba(0,0,0,.25);
  text-align:center;
}

.modal-title     { margin-bottom:12px; font-size:1.1rem; font-weight:600; }

.modal-form      { display:flex; flex-direction:column; gap:12px; }

.modal-form input{ width:100%; padding:10px 14px; border:1px solid #ccc;
                   border-radius:6px; font-size:1rem; }

.modal-buttons   { display:flex; gap:12px; justify-content:center; margin-top:8px; }

.btn-primary     { background:#444; color:#fff; border:none; padding:8px 16px;
                   border-radius:6px; font-size:1rem; }
.btn-primary:hover{ background:#2e2e2e; }

.btn-secondary   { background:#888; color:#fff; border:none; padding:8px 16px;
                   border-radius:6px; font-size:1rem; }
.btn-secondary:hover{ background:#666; }
/* ─────────────────────────────────────────────────────── */
.credit-text {
  font-weight: 600;          /* bold */
  color: #dddddd;            /* same grey you used elsewhere */
  text-align: center;
}

.credit-text a:link,
.credit-text a:visited,
.credit-text a:hover,
.credit-text a:active {
  color: inherit;            /* same as surrounding text */
  text-decoration: none;     /* no underline */
}
header .user-info {
  display: flex;               /* lay out text + button in one line */
  justify-content: center;     /* center the whole row */
  align-items: center;         /* vertically align text + button */
  gap: .5rem;                  /* keeps a nice space between them */
}
.cache-btn {
  background-color: #2e2e2e;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}

.cache-btn:hover {
  background-color: #444;
}

.cache-msg {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 4px;
  min-height: 1em;
}
  .icon-stack {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
  
  }

  .icon-stack .calendar,
  .icon-stack img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
      text-shadow:
    0 0 4px  #39FF14,
    0 0 10px #39FF14,
    0 0 20px #39FF14;
  }

  .icon-stack .calendar {
    font-size: 2.5rem;
    z-index: 1;
  }

  .icon-stack img {
    height: 2.5rem;
    z-index: 2;
    pointer-events: none;
  }
  .stat-text {
  transition: opacity 0.5s linear;
}
.error-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #cc3333;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  z-index: 1000;

  /* start fully transparent */
  opacity: 0;
  transition: opacity 1.5s ease;
}

.error-banner.show {
  /* fade in to fully opaque */
  opacity: .75;
}
.hidden {
  display: none !important;
}

    /* Center container on both iPhone and PC */
    .history-container {
      width: 90%;
      max-width: 320px;
      margin: 20px auto;
    }

    /* Back-link centered */
    .back-link {
      display: block;              /* make it block-level */
      margin: 0 auto 15px auto;    /* top 0, sides auto, bottom 15px */
      text-decoration: none;
      background-color: #2e2e2e;
      color: #ffffff;
      padding: 10px 15px;
      border-radius: 8px;
      font-size: 1rem;
      text-align: center;
      width: fit-content;          /* shrink‐wrap its width */
    }
    
.history-container .page-title {
  font-family: 'Brush Script MT', cursive;
  font-size: 2.5rem;
  color: #ff4500;         /* Bright orange/red */
  margin-bottom: 0.5rem;
  text-align: center;
}

    /* Navigation row: Previous | Date Picker | Next */
    .nav-buttons {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      gap: 5px;
    }

    .nav-buttons button {
      background-color: #2e2e2e;
      color: #ffffff;
      border: none;
      padding: 10px 8px;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      flex: 1;
    }

    .nav-buttons button:disabled {
      opacity: 0.5;
      cursor: default;
    }

    .nav-buttons input[type="date"] {
      flex: 2;
      padding: 8px;
      border-radius: 6px;
      border: 1px solid #888888;
      background-color: #d3d3d3;
      color: #000000;
      font-size: 1rem;
      font-family: inherit;
    }

    /* Single-entry container */
    #entry-container {
      width: 100%;
      margin: 0 auto;
    }

    /* Card for each entry */
    .entry-card {
      background-color: #2a2a2a;
      color: #ffffff;
      padding: 15px 50px;
      border-radius: 6px;
      font-family: "Trebuchet MS", sans-serif;
    }

    .entry-card h3 {
      margin: 0;
      font-size: 1.5rem;
      text-align: center;
      color: rgb(230, 55, 7);
      font-family: "Brush Script MT", cursive;
    }

    .entry-card p {
      margin: 4px 0;
      font-size: 0.95rem;
      line-height: 1.4;
      display: block;
      justify-content: center;
      align-items: center;
    }

    /* “Details” toggle button */
    #toggle-details {
      margin-top: 12px;
      background: none;
      border: none;
      color: rgb(230, 55, 7);
      font-size: 1rem;
      cursor: pointer;
      padding: 0;
    }

    /* Hidden by default; shown when toggled */
    #details-content {
      display: none;
      margin-top: 10px;
    }

    #details-content p {
      margin: 4px 0;
      font-size: 0.9rem;
      line-height: 1.4;
    }

    /* “No history” message */
    .no-entries {
      text-align: center;
      color: #cccccc;
      font-style: italic;
      margin-top: 50px;
    }
    .uberlogo {
      display: float;
      border-radius: 20px;
      background-color: #ffffff;
      color: #000000;
      margin: 15px;
      border: 4px solid #000000;
    }
    .dashlogo {
      border-radius: 20px;
      background-color: #ffffff;
      color: #ff3008;
      margin: 15px;
      border: 4px solid #ff3008;
    }
    .chrislogo1 {
      border-radius: 20px;
      background-color: #140f54;
      color: #ff3008;
      margin: 15px;
      border: 4px solid #1cfc45;
    }

.chrislogotext {
    display: inline-block;
    font-family: 'Monoton', cursive; 
    font-size: 1.75rem; 
    transform: rotate(-20deg);
    transform-origin: center;
    padding-bottom: 20px;
}
.chrislogo {
  --neon: transparent;               /* default “off” */
  position: relative;
  display: inline-block;
  padding: 0.5em 1em;

  /* main border uses the var... */
  border: 5px solid var(--neon);
  border-radius: 8px;
  background: transparent;           /* let page BG show through */

  /* steady neon‑orange text glow */
  color: #39FF14;
  text-shadow:
    0 0 5px #39FF14,
    0 0 10px #39FF14,
    0 0 20px #39FF14,
    0 0 30px #39FF14;

  /* glow around the whole thing, tied to the same var */
  box-shadow:
    inset 0 0 10px var(--neon),
    0 0 10px var(--neon),
    0 0 20px var(--neon);

  transition: border-color 0.05s, box-shadow 0.05s;
}

/* two circular “tube ends” breaking the top border */
.chrislogo::before,
.chrislogo::after {
  content: "";
  position: absolute;
  top: -5px;                          /* sit right on top */
  width: 20px;                        /* adjust for how big you want the curve */
  height: 20px;
  border: 5px solid var(--neon);      /* same neon border */
  border-radius: 50%;                 /* perfect circle */
  background: transparent;            /* interior stays clear */
  box-shadow:
    inset 0 0 10px var(--neon),
    0 0 10px var(--neon),
    0 0 20px var(--neon);
  pointer-events: none;
}

.chrislogo::before { left: 10%; }     /* move your left‑hand break */
.chrislogo::after  { right: 10%; }    /* mirror on the right */
.link-border {
  border: 5px solid #FF073A;
  border-radius: 8px;
  padding: 5px;
  box-shadow:
    inset 0 0 10px #FF073A,
    0 0 10px #FF073A,
    0 0 20px #FF073A;
}
.link-box {
      background-color: #333333;
      border-radius: 8px;
      margin-bottom: .5rem;
      margin-top: .5rem;
      padding: 0.75rem;
}