/* Custom CSS for Delivery Tracking System */

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

/* Dashboard cards */
.dashboard-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Status badges */
.status-badge {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50rem;
}

/* Tracking history timeline */
.tracking-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.tracking-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 20px;
    background-color: white;
    border: 4px solid #3498db;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    margin-left: -13px;
}

.timeline-item.active::after {
    background-color: #3498db;
    border: 4px solid #ffffff;
}

.timeline-item.success::after {
    border-color: #28a745;
}

.timeline-item.warning::after {
    border-color: #ffc107;
}

.timeline-item.danger::after {
    border-color: #dc3545;
}

/* Shipment details card */
.shipment-details-card {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.shipment-details-header {
    border-radius: 10px 10px 0 0;
    padding: 15px;
}

/* Search form */
.search-form {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Google Maps container */
.map-container {
    height: 400px;
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    body {
        background-color: white;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .tracking-timeline::after {
        background-color: #aaa;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Datatable styling */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tracking-timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item::after {
        left: 31px;
    }
}