 :root {
      --primary: #2d9cdb;
      --bg: #f4f6f9;
      --success: #28a745;
      --danger: #d93025;
      --warning: #f0ad4e;
      --info: #17a2b8;
    }
    body {
      font-family: "Segoe UI", sans-serif;
      margin: 0; padding: 0;
      background-image: url(3439376_61773.jpg);
    background-size: 100% 100%;
  background-attachment: fixed;
      color: #333;
    }
    header {
      background: linear-gradient(90deg, var(--primary), #56c5f7);
      color: #fff;
      padding: 18px 30px;
      font-size: 22px;
      font-weight: bold;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    main { max-width: 1100px; margin: 30px auto; padding: 20px; }

    .search-box { display: flex; gap: 10px; margin-bottom: 10px; }
    .search-box input {
      flex: 1; padding: 14px; font-size: 16px;
      border: 1px solid #ddd; border-radius: 8px;
    }
    .search-box button {
      background: var(--primary); border: none; color: #fff;
      padding: 14px 22px; font-size: 16px;
      border-radius: 8px; cursor: pointer;
      transition: background 0.3s;
    }
    .search-box button:hover { background: #1b7db8; }

    /* recent search */
    .recent {
      margin-bottom: 20px;
      font-size: 14px;
    }
    .recent span {
      display: inline-flex; align-items: center;
      background: #fff; border: 1px solid #ddd;
      border-radius: 20px; padding: 5px 12px;
      margin: 5px 5px 0 0; cursor: pointer;
      transition: background 0.2s;
    }
    .recent span:hover { background: #f0f8ff; }
    .recent i { margin-left: 6px; color: #888; cursor: pointer; }

    .card {
      background: white; border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
      padding: 25px; margin-top: 20px;
      animation: fadeIn 0.3s ease-in-out;
    }
    @keyframes fadeIn { from {opacity:0; transform:translateY(10px);} to {opacity:1; transform:translateY(0);} }

    .info-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:15px; margin-top:15px; }
    .info-box { background:#f8fbff; border:1px solid #e1ecf4; border-radius:8px; padding:14px; }
    .info-box b { display:block; margin-bottom:6px; color:var(--primary); }

    .status-badge { display:inline-block; padding:6px 12px; border-radius:20px; font-size:13px; font-weight:bold; color:#fff; }
    .status-intransit{background:var(--info);} .status-delivered{background:var(--success);}
    .status-exception{background:var(--danger);} .status-returned{background:var(--warning);}

    /* timeline */
    .timeline { position:relative; margin-top:25px; padding-left:40px; }
    .timeline::before { content:""; position:absolute; top:0; left:20px; width:2px; height:100%; background:#e0e0e0; }
    .event { position:relative; margin-bottom:28px; }
    .dot {
      position:absolute; left:-3px; top:5px; width:18px; height:18px;
      background:#fff; border-radius:50%; border:3px solid var(--primary);
      display:flex; align-items:center; justify-content:center; color:var(--primary);
    }
    .event-content {
      background:#fff; border:1px solid #eee; border-radius:8px;
      padding:14px 18px; margin-left:30px;
      box-shadow:0 2px 6px rgba(0,0,0,0.05);
    }
    .event-time { font-size:14px; font-weight:bold; color:#555; }
    .tag-local { font-size:12px; color:#888; margin-left:8px; }
    .event-desc { margin-top:8px; font-size:15px; color:#222; display:flex; align-items:center; }
    .event-location { margin-top:6px; font-size:13px; color:#666; }
    .event i.fa-fw { width:18px; text-align:center; margin-right:6px }

    .error { color:var(--danger); font-weight:bold; background:#ffecec; padding:12px; border-radius:8px; margin-top:20px; }

    .spinner {
      border:4px solid #f3f3f3; border-top:4px solid var(--primary);
      border-radius:50%; width:30px; height:30px;
      animation:spin 0.8s linear infinite; margin:20px auto;
    }
    @keyframes spin {100%{transform:rotate(360deg);}}

    @media(max-width:600px){ .info-grid{grid-template-columns:1fr;} .event-content{margin-left:18px;} }
	
#copyBtn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 14px 22px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    font-style: italic;
    box-shadow: 0 0 5px #ccc;
    margin-top: 15px;
    float: right;
    margin-bottom: 15px;
}
#copyBtn:hover:not(:disabled) { background: #5a6268; }
#copyBtn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* POD popup overlay */
.pod-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.pod-content {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pod-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 26px;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}
.close-btn:hover { color: red; }

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.nav-btn:hover { background: rgba(0,0,0,0.8); }
.prev { left: 15px; }
.next { right: 15px; }

/* Counter */
.pod-counter {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
}

/* Button hiển thị POD */
.view-pod-btn {
  margin-top: 6px;
  padding: 6px 10px;
  background: #0078d7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.view-pod-btn:hover { background: #005fa3; }




/* CSS CLOCK */

  .clock-container {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap; /* Cho phép các đồng hồ xuống hàng khi cần */
            gap: 10px; /* Khoảng cách giữa các đồng hồ */
            width: 90%;
            max-width: 1000px;
			margin-top: 30px;
			margin-bottom: 30px;
        }

        .clock {
            flex: 0 0 130px; /* Chiều rộng đồng hồ */
            padding: 10px;
            font-size: 12px;
            font-weight: bold;
            text-align: center;
            border-radius: 8px;
            background: #ffffff;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid #ddd;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .clock:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        }

        .clock-header {
            font-size: 11px;
            color: #333;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .clock-header img {
            width: 16px;
            height: 12px;
            border-radius: 2px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .clock span {
            display: block;
            font-size: 10px;
            margin-top: 3px;
            color: #555;
        }

        .date {
            font-size: 10px;
            margin-top: 3px;
            color: #888;
            font-weight: 400;
        }
		
		.author {
    position: fixed;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    font-style: italic;
    font-weight: bold;
    color: snow;
}

        /* Media query cho màn hình nhỏ hơn 768px */
        @media (max-width: 768px) {
            .clock-container {
                justify-content: center; /* Căn giữa các đồng hồ */
                gap: 15px; /* Khoảng cách giữa các đồng hồ */
            }

            .clock {
                flex: 0 0 160px; /* Mở rộng chiều rộng của đồng hồ khi xem trên màn hình nhỏ */
            }
        }

        /* Media query cho màn hình nhỏ hơn 480px */
        @media (max-width: 480px) {
            .clock {
                flex: 0 0 100%; /* Đặt các đồng hồ chiếm toàn bộ chiều rộng màn hình */
                padding: 15px; /* Tăng padding cho đồng hồ khi xem trên màn hình nhỏ */
                font-size: 14px; /* Tăng kích thước font */
            }
        }
		
		
		#tracking-tools{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

#qrContainer{
    background:#fff;
    padding:10px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

#qrcode img{
    display:block;
}
/* Share Card */

.tracking-share-card{
    display:none;
    max-width:420px;
    margin:20px auto;
    padding:20px;
    border-radius:20px;

    background:rgba(255,255,255,.12);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.2);

    box-shadow:
        0 8px 32px rgba(0,0,0,.25);

    animation:fadeUp .4s ease;
}

.share-header{
    display:flex;
    align-items:center;
    gap:10px;

    color:#fff;
    font-size:18px;
    font-weight:600;

    margin-bottom:15px;
}

.share-content{
    display:flex;
    align-items:center;
    gap:20px;
}

.qr-box{
    background:#fff;
    padding:12px;
    border-radius:16px;

    box-shadow:
        0 6px 18px rgba(0,0,0,.15);
}
.qr-wrapper{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.tracking-code{
    margin-top:10px;

    background:rgba(255,255,255,.15);

    color:#fff;

    padding:6px 12px;

    border-radius:10px;

    font-size:13px;
    font-weight:600;
    letter-spacing:1px;

    max-width:180px;

    text-align:center;

    word-break:break-all;

    border:1px solid rgba(255,255,255,.2);
}

.qr-box img{
    display:block;
}

.share-actions{
    flex:1;
}

.modern-btn{
    width:100%;

    border:none;
    outline:none;

    padding:14px 18px;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #0ea5e9,
        #2563eb
    );

    color:#fff;
    font-size:15px;
    font-weight:600;

    cursor:pointer;

    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;

    transition:.25s;
}

.modern-btn:hover{
    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37,99,235,.4);
}

.modern-btn:active{
    transform:translateY(0);
}

.share-tip{
    margin-top:12px;

    color:#e5e7eb;
    font-size:13px;
    text-align:center;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:none;
    }
}