/**
 * Frontend Styling for Logistics Tracking
 * Clean, modern, responsive.
 */

.lt-tracking-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1e293b;
}

.lt-track-search {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.lt-track-search h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.lt-track-search p {
    color: #64748b;
    margin-bottom: 2rem;
}

.lt-search-box {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.lt-search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.lt-search-box input:focus {
    outline: none;
    border-color: #38bdf8;
}

.lt-btn-primary {
    background: #0f172a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.lt-btn-primary:hover {
    background: #334155;
}

/* Results Card */
.lt-results-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    animation: slideUp 0.4s ease-out;
}

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

.lt-results-header {
    background: #f8fafc;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.lt-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lt-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.lt-value {
    font-weight: 700;
    color: #0f172a;
}

.lt-status-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    background: #e2e8f0;
}

/* Timeline */
.lt-timeline-container {
    padding: 40px 30px;
}

.lt-timeline {
    position: relative;
    padding-left: 30px;
}

.lt-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e2e8f0;
}

.lt-event {
    position: relative;
    padding-bottom: 30px;
    animation: fadeIn 0.5s ease-out forwards;
}

.lt-event::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #cbd5e1;
    z-index: 2;
}

.lt-event.active::before {
    background: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.2);
}

.lt-event-time {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.lt-event-title {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.lt-event-location {
    font-size: 0.875rem;
    color: #64748b;
}

/* Details Grid */
.lt-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.lt-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Error Box */
.lt-error-box {
    background: #fef2f2;
    color: #991b1b;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #fee2e2;
    text-align: center;
}
