/* Core Terminal Styling */
.boj-track-container { font-family: 'Montserrat', sans-serif; max-width: 1200px; margin: 40px auto; }
.boj-track-terminal { background: #0a1118; color: #fff; padding: 50px; border-radius: 10px; border: 1px solid #d4af37; text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.boj-track-terminal h3 { color: #d4af37; font-size: 28px; margin-top: 0; text-transform: uppercase; letter-spacing: 2px;}
.boj-track-terminal p { color: #8da2bd; margin-bottom: 30px; }

.boj-track-input-group { display: flex; max-width: 600px; margin: 0 auto; background: #fff; border-radius: 6px; overflow: hidden; }
#boj_tracking_id { flex-grow: 1; border: none; padding: 18px; font-size: 16px; outline: none; }
#boj_track_btn { background: #034f3a; color: #fff; border: none; padding: 0 30px; font-weight: bold; cursor: pointer; transition: 0.3s; }
#boj_track_btn:hover { background: #d4af37; color: #0a1118; }

/* Overlay Animations */
.boj-ship-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(10,17,24,0.95); z-index: 99999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.boj-ship-modal { text-align: center; color: #fff; }
.spin-fast { animation: fa-spin 1s infinite linear; }
@keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(359deg); } }

/* Results Section */
#boj_ship_results { margin-top: 40px; background: #0a1118; padding: 40px; border-radius: 10px; border: 1px solid #2e3b4e; color: #fff; animation: fadeInUp 0.8s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.boj-header-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2e3b4e; padding-bottom: 20px; margin-bottom: 30px;}
.boj-trk-number { font-size: 24px; color: #fff; font-weight: bold; }
.boj-trk-number span { color: #d4af37; }

/* Dynamic Status Bar */
.boj-status-wrapper { margin-bottom: 40px; background: #060b11; padding: 30px; border-radius: 8px; border: 1px solid #1c2633;}
.boj-status-text { text-align: center; font-size: 20px; font-weight: bold; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; color: #d4af37;}
.boj-progress-bar { width: 100%; height: 8px; background: #2e3b4e; border-radius: 4px; overflow: hidden; position: relative; }
.boj-progress-fill { height: 100%; background: linear-gradient(90deg, #d4af37, #2ecc71); width: 0%; transition: width 1.5s ease-in-out; box-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }

/* The "Map Beaming" Visual Route */
.boj-route-map { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 0 20px;}
.boj-route-line { position: absolute; top: 50%; left: 40px; right: 40px; height: 2px; background: #2e3b4e; z-index: 1; transform: translateY(-50%); }
.boj-node { position: relative; z-index: 2; text-align: center; background: #0a1118; padding: 0 10px;}
.boj-dot { width: 16px; height: 16px; background: #8da2bd; border-radius: 50%; margin: 0 auto 10px; border: 3px solid #0a1118;}
.boj-node.active .boj-dot { background: #d4af37; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); animation: pulseDot 2s infinite; }
.boj-node.completed .boj-dot { background: #2ecc71; }
.boj-node-label { font-size: 12px; color: #8da2bd; text-transform: uppercase; font-weight: bold;}
.boj-node-value { font-size: 14px; color: #fff; margin-top: 5px; }

@keyframes pulseDot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }

/* Grid Details */
.boj-data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px;}
.boj-data-card { background: #060b11; padding: 20px; border-radius: 6px; border: 1px solid #1c2633; }
.boj-data-card h4 { color: #d4af37; margin-top: 0; border-bottom: 1px solid #1c2633; padding-bottom: 10px; text-transform: uppercase; font-size: 14px;}
.boj-data-list { list-style: none; padding: 0; margin: 0; font-size: 14px; color: #b0c4de;}
.boj-data-list li { margin-bottom: 10px; display: flex; justify-content: space-between;}
.boj-data-list li strong { color: #fff; }

/* History Table */
.boj-history-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.boj-history-table th { background: #060b11; color: #d4af37; padding: 15px; border-bottom: 2px solid #1c2633; text-transform: uppercase;}
.boj-history-table td { padding: 15px; border-bottom: 1px solid #1c2633; color: #b0c4de; }
.boj-history-table tr:hover td { background: #0c1a2e; color: #fff; }

/* Mobile Formatting */
@media (max-width: 767px) {
    .boj-track-input-group { flex-direction: column; background: transparent; gap: 10px; }
    #boj_tracking_id, #boj_track_btn { width: 100%; border-radius: 6px; }
    .boj-data-grid { grid-template-columns: 1fr; }
    .boj-route-map { flex-direction: column; gap: 30px; align-items: flex-start; padding: 0;}
    .boj-route-line { width: 2px; height: 100%; top: 0; left: 7px; right: auto; transform: none;}
    .boj-node { display: flex; align-items: center; gap: 20px; text-align: left; padding: 0; background: transparent;}
    .boj-dot { margin: 0; }
    /* Horizontal scroll for table on mobile */
    .boj-table-responsive { overflow-x: auto; display: block; width: 100%; }
}