/* Container & Base Styles */
.tracking-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1f36;
}

.tracking-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

/* Typography */
.label {
    font-size: 11px;
    font-weight: 700;
    color: #8792a2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.subtitle {
    color: #697386;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 20px;
}
.hidden {
    display: none !important;
}

/* Search Card */
.search-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0b1c33;
}

.search-form {
    display: flex;
    gap: 12px;
}

.input-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 16px;
    transition: border-color 0.2s ease;
}
.input-wrapper:focus-within {
    border-color: #00a651;
}

.input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 14px 10px;
    font-size: 15px;
    color: #334155;
    outline: none;
}

.search-icon { color: #94a3b8; }

.track-btn {
    background: #00a651;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.track-btn:hover { background: #008f45; }
.track-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Summary Card */
.summary-card {
    display: flex;
    justify-content: space-between;
}

.summary-left, .summary-right {
    display: flex;
    flex-direction: column;
}

.summary-right { align-items: flex-end; }

.waybill-number {
    color: #00a651;
    font-size: 24px;
    margin: 4px 0;
    font-weight: 700;
}

.events-count { color: #697386; font-size: 13px; }

.status-bubble {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* History Card & Timeline */
.history-header {
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b1c33;
}
.history-header i { color: #00a651; }

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item:last-child::before { display: none; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    flex-shrink: 0;
}

.icon-latest { background: #00a651; color: white; border: 4px solid #ccf0db; box-sizing: content-box; transform: translateX(-4px); }
.icon-box { background: #e0f2fe; color: #0284c7; }

.timeline-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
}

.timeline-text strong {
    font-size: 14px;
    color: #0b1c33;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.location {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.timeline-time {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .summary-card { flex-direction: column; gap: 20px; }
    .summary-right { align-items: flex-start; }
    .timeline-content { flex-direction: column; gap: 8px; }
    .timeline-time { margin-left: 0; }
}