/*
 * EASTCOAST FRESH - TRACKING PAGE STYLES
 * Brand Primary Color: #007A33 (A deep, fresh green)
 * Accent Color: #009944 (A brighter green)
 * Font: Assuming a standard sans-serif like Inter
*/

:root {
  --primary-color: #007A33; /* Deep Fresh Green */
  --accent-color: #009944;  /* Brighter Green */
  --light-bg: #f5fff5;      /* Very light green background */
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.06);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--light-bg);
  padding: 20px;
  display: flex; 
  min-height: 100vh; 
  align-items: center; 
  justify-content: center; 
}

.container {
  max-width: 420px;
  width: 100%;
  margin: 0 auto; 
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}

/* --- Logo Styling --- */
.logo-container {
  text-align: center;
  margin-bottom: 20px; /* Space between logo and title */
}

.logo {
  max-width: 120px; /* Adjust size as needed, e.g., 100px - 150px */
  height: auto;
  display: block;
  margin: 0 auto;
}


/* --- Header & Typography --- */
.title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 0px;
  color: var(--primary-color);
}

.subtitle {
  text-align: center;
  color: #555;
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 30px;
}

/* --- Input & Button --- */
.input-group {
    margin-bottom: 15px; 
}
.input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px; 
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  background: #ffffff;
  transition: 0.2s;
}

.input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(0, 153, 68, 0.15); 
  outline: none;
}

.btn {
  width: 100%;
  padding: 16px;
  background: var(--primary-color); 
  color: white;
  border-radius: 12px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--accent-color);
}
.btn:active {
    transform: scale(0.99);
}

.error {
  margin-top: 15px;
  text-align: center;
  color: #d9534f; 
  font-size: 15px;
  font-weight: 500;
}

/* --- Order Card (Results) --- */
.order-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  margin-top: 25px;
  border: 2px solid var(--primary-color); 
  box-shadow: 0 4px 15px rgba(0, 122, 51, 0.1); 
  animation: fadeIn 0.3s ease;
}

.customer-name {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}

.order-id {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.friendly-message {
    margin-top: 15px;
    padding: 12px 15px;
    background: #e6f7e6; 
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

/* --- Status Chip --- */
.status {
  margin-top: 0px;
  margin-bottom: 15px; 
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px; 
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Chip Colors - Adjusted for the brand's green/fresh palette */
.chip-confirmed {
  background: #e8f5e9; 
  color: #2e7d32; 
}

.chip-preparing {
  background: #fff3e0; 
  color: #ff6f00; 
}

.chip-rider {
  background: #e3f2fd; 
  color: #0277bd; 
}

.chip-delivered {
  background: #e0f2f1; 
  color: #00897b; 
}


/* --- Progress Bar --- */
.progress-container {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 25px; 
  margin-bottom: 20px;
}

.progress-line {
  position: absolute;
  top: 35px;
  left: 15px;
  right: 15px;
  height: 6px; 
  background: #eee;
  border-radius: 3px;
}

.progress-line-filled {
  height: 6px;
  background: var(--primary-color); 
  border-radius: 3px;
  position: absolute;
  top: 35px;
  left: 15px;
  width: 0%;
  transition: width 0.6s ease-in-out;
}

.progress-step {
  z-index: 2;
  background: #ccc;
  width: 30px; 
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.4s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.progress-step.active {
  background: var(--primary-color); 
  box-shadow: 0 0 0 5px rgba(0, 122, 51, 0.2); 
}


/* --- Timeline & Rider Box --- */
.timeline {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #e0e0e0; 
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.timeline strong {
    color: #222;
    font-weight: 600;
}

.rider-box {
  margin-top: 20px;
  padding: 15px;
  background: #fff9e6; 
  border: 1px solid #ffcc66;
  border-radius: 10px;
  font-size: 15px;
  color: #333;
}
.rider-box strong {
    color: #b36b00;
}
/* Styling for phone link inside the rider box */
.rider-box a {
    color: #b36b00; 
    text-decoration: none; 
    font-weight: 700;
}
.rider-box a:hover {
    text-decoration: underline; 
}

/* Update placeholder style to be distinct */
.rider-box.rider-placeholder {
    background: #e6f7ff; /* Lighter blue for waiting */
    border-color: #90cdf4;
    color: #2b6cb0;
}
.rider-box.rider-placeholder strong {
    color: #2b6cb0;
}

/* --- Rider Safety Note Style --- */
.rider-note {
    margin-top: 20px;
    padding: 10px;
    background: #fef3c7; /* Light yellow background */
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 13px;
    color: #a16207; /* Darker text */
    line-height: 1.4;
    font-weight: 500;
}
.rider-note strong {
    font-weight: 700;
}

/* --- Responsive Adjustments --- */
@media (max-width: 360px) {
  .container {
    padding: 20px;
  }
  .title { font-size: 26px; }
  .subtitle { font-size: 14px; }
  .input, .btn { padding: 14px; font-size: 16px; }
  .order-card { padding: 20px; }
  .progress-step { width: 26px; height: 26px; font-size: 13px; }
}
/* --- Session Panel (Logged In View) --- */
.session-panel {
  text-align: center;
  margin-bottom: 25px;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  border: 1px dashed var(--primary-color);
  background: #f0fdf4; /* Very light green */
}

.session-panel p {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 15px;
}

.session-panel strong {
  color: var(--primary-color);
  font-size: 16px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  padding: 5px;
}

.btn-link:hover {
  color: var(--accent-color);
}
