body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 600;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.8em;
    padding: 0.4em 0.6em;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.btn {
    border-radius: 0.375rem;
}

/* Timeline styles for tracking history */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #0d6efd;
}

/* DHL specific styles */
.dhl-tracking {
    border-left: 4px solid #ffcc00;
    background-color: #fffdf7;
}

.dhl-event {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.dhl-event:last-child {
    border-bottom: none;
}

/* Status badges */
.badge.bg-dhl {
    background-color: #ffcc00 !important;
    color: #000;
}

.badge.bg-delivered {
    background-color: #28a745 !important;
}

.badge.bg-in-transit {
    background-color: #007bff !important;
}

.badge.bg-pending {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-exception {
    background-color: #dc3545 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .timeline-item {
        font-size: 0.9rem;
    }
}

/* Custom colors for status badges */
.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Auto-refresh indicator */
.auto-refresh {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
}

/* Tracking result animations */
.tracking-result {
    animation: fadeIn 0.5s ease-in;
}

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