:root {
  --green: #13710e;
  --orange: #f9a825;
  --green-dark: #0d4d08;
  --white: #fff;
  --gray: #222;
  --gray-light: #444;
  --gray-lighter: #e4e4e4;
  --input-bg: #f8f8f8;
  --input-border: #e0e0e0;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(90deg, var(--white) 0%, #e6f4e7 100%);
  min-height: 100vh;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 24px 0 24px;
  background: var(--green);
  min-height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green);
}
.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
}
.logo-sub {
  font-size: 1rem;
  color: var(--white);
  margin-left: 2px;
  font-weight: 400;
  line-height: 1.1;
}
.contact-info {
  font-size: 0.98rem;
  color: var(--orange);
  font-weight: 500;
  text-align: left;
  margin-top: 4px;
}
.contact-info a {
  color: var(--white);
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.contact-info a:hover {
  text-decoration: underline;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 0 8px;
}
.left {
  margin-left: 0;
  margin-bottom: 32px;
  text-align: center;
  width: 100%;
}
.left h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 24px 0 12px 0;
  line-height: 1.15;
}
.left p {
  font-size: 1.05rem;
  color: var(--gray-light);
  margin: 0;
  font-weight: 400;
}
.right {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(19,113,14,0.08);
  padding: 24px 18px;
  max-width: 310px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 2px solid var(--green);
  align-self: center;
}
.right label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
  display: block;
}
.right input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.2s;
  background: var(--input-bg);
}
.right input[type="text"]:focus {
  border: 2px solid var(--green);
  background: var(--white);
}
.right button {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 13px 0;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.right button:hover {
  background: #c68400;
}
.right .benefits {
  margin-top: 10px;
}
.right .benefits-title {
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.right ul {
  margin: 0;
  padding-left: 18px;
  color: var(--gray-light);
  font-size: 0.98rem;
  line-height: 1.7;
}
.footer {
  width: 100%;
  border-top: 1px solid var(--gray-lighter);
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 10px 8px;
  font-size: 0.93rem;
  margin-top: 32px;
  box-sizing: border-box;
}
.footer .copyright, .footer .social {
  text-align: center;
  width: 100%;
  color: var(--gray-light);
}
.footer .social a {
  color: var(--gray);
  text-decoration: none;
}
.footer .social a:hover {
  text-decoration: underline;
}
@media (min-width: 600px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 18px 48px 0 48px;
  }
  .logo-sub {
    font-size: 1rem;
  }
  .contact-info {
    font-size: 1.05rem;
    text-align: right;
    margin-top: 0;
  }
  .main {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0 8px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .left h1 {
    font-size: 2.5rem;
  }
  .footer {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.68rem;
  }
  .footer .copyright {
    text-align: left;
    width: auto;
  }
  .footer .social {
    text-align: right;
    width: auto;
  }
}
@media (min-width: 900px) {
  .main {
    width: 100%;
    justify-content: space-evenly;
  }
  .left, .right {
    width: 50%;
  }
  .left h1 {
    font-size: 3.5rem;
  }
  .right {
    padding: 40px 36px 32px 36px;
  }
}
.tracking-result-card {
  margin-top: 12px;
  padding: 18px 14px;
  border-radius: 10px;
}
.tracking-result-success {
  font-family: monospace;
  background: #e8f7ee;
  border: 1.5px solid #1abc9c;
  color: #13710e;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tracking-result-error {
  background: #ffeaea;
  border: 1.5px solid #e74c3c;
  color: #c0392b;
  font-weight: 500;
  font-size: 1.08em;
}
.tracking-result-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tracking-result-label {
  font-weight: 600;
}
.tracking-result-value {
  font-size: 1.08em;
}
.tracking-result-row {
  margin-bottom: 6px;
}
.tracking-result-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  font-size: 1.2em;
}
.tracking-skeleton {
  margin-top: 12px;
  padding: 18px 14px;
  border-radius: 10px;
  background: #f3f3f3;
  border: 1.5px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: pulse 1.2s infinite;
}
.tracking-skeleton-bar {
  height: 18px;
  width: 80%;
  background: #e0e0e0;
  border-radius: 6px;
}
.tracking-skeleton-bar.short {
  width: 40%;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
#courierDropdown {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--input-bg);
  color: #444;
  outline: none;
  transition: border 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  /* Custom dropdown arrow */
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='gray' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='gray' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}
#courierDropdown:focus {
  border: 2px solid var(--green);
  background: #fff;
}
#courierDropdown option {
  color: #222;
  background: var(--input-bg);
}
.admin-btn-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  margin-top: 18px;
}
.admin-form button[type="submit"] {
  width: 100%;
  margin-bottom: 10px;
}
.admin-form .admin-delete-btn {
  width: 100%;
  background: #d32f2f;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 13px 0;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(211,47,47,0.08);
  letter-spacing: 0.5px;
}
.admin-form .admin-delete-btn:hover {
  background: #b71c1c;
}
#loginSection {
  width: 100%;
  max-width: 420px;
  margin: 48px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(19,113,14,0.08);
  padding: 32px 24px 24px 24px;
  border: 2px solid var(--green);
}
#loginSection h2 {
  color: var(--green-dark);
  margin-bottom: 18px;
  text-align: center;
}
#loginForm label {
  font-weight: 600;
  color: var(--green-dark);
  display: block;
  margin-bottom: 6px;
  margin-top: 16px;
}
#loginForm input[type="email"],
#loginForm input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--input-bg);
  outline: none;
  box-sizing: border-box;
  transition: border 0.2s;
}
#loginForm input:focus {
  border: 2px solid var(--green);
  background: #fff;
}
#loginForm button {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 13px 0;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.2s;
}
#loginForm button:hover {
  background: #c68400;
}
#logoutBtn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0 0 0 16px;
  text-align: right;
  text-decoration: none;
  transition: text-decoration 0.2s, color 0.2s;
  outline: none;
}
#logoutBtn:hover, #logoutBtn:focus {
  text-decoration: underline;
  color: var(--white);
}
.admin-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 24px auto;
  border-bottom: 2px solid var(--input-border);
  max-width: 620px;
}
.admin-tab {
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  padding: 14px 32px 10px 32px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.admin-tab.active {
  color: var(--orange);
  border-bottom: 3px solid var(--orange);
}
.admin-tab:not(.active):hover {
  color: var(--green);
  background: #f8f8f8;
}
#shipmentListContainer {
  overflow-x: auto;
  margin-top: 18px;
}
.shipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(19,113,14,0.06);
}
.shipment-table th, .shipment-table td {
  padding: 10px 12px;
  text-align: left;
}
.shipment-table th {
  background: #e8f7ee;
  color: var(--green-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--input-border);
}
.shipment-table tr:nth-child(even) {
  background: #f8f8f8;
}
.shipment-table tr:hover {
  background: #f1f1f1;
  cursor: pointer;
}
.shipment-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 0 0;
}
.shipment-pagination button {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.shipment-pagination button:hover {
  background: var(--orange);
}
.shipment-delete-btn {
  background: none;
  border: none;
  color: #d32f2f;
  font-size: 1.2em;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  vertical-align: middle;
}
.shipment-delete-btn:hover {
  background: #ffeaea;
  color: #b71c1c;
}
.shipment-total-count {
  margin-left: 18px;
  font-size: 1.05rem;
  color: var(--gray-light);
  align-self: center;
  font-weight: 500;
} 