/* Cargo Tracking Page Styles */

.cargo-tracking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom:20px;
}

.page-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
}

/* Search Form Styles */
.tracking-search-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Loading and Error Styles */
.loading-indicator {
    text-align: center;
    padding: 20px;
    background: #e8f4f8;
    border-radius: 5px;
    margin: 20px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Results Container */
.tracking-results {
    margin-top: 30px;
}

/* Section Styles */
.cargo-section,
.pickup-section,
.shipping-section,
.warehouse-section,
.milestones-section,
.attachments-section {
    background: white;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cargo-section h2,
.pickup-section h2,
.shipping-section h2,
.warehouse-section h2,
.milestones-section h2,
.attachments-section h2 {
    background: #2c3e50;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.4em;
}

/* Table Styles */
.cargo-details-table,
.pickup-requirements-table,
.shipping-info-table {
    width: 100%;
    border-collapse: collapse;
}

.cargo-details-table td,
.pickup-requirements-table td,
.shipping-info-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.cargo-details-table td:first-child,
.pickup-requirements-table td:first-child,
.shipping-info-table td:first-child {
    background: #f8f9fa;
    width: 30%;
    font-weight: bold;
}

/* Warehouse Information */
.warehouse-info {
    padding: 20px;
    line-height: 1.6;
}

/* Milestones Timeline */
.milestones-timeline {
    padding: 20px;
}

.milestone-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.milestone-code {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.milestone-details {
    flex: 1;
}

.milestone-description {
    font-weight: bold;
    margin-bottom: 5px;
}

.milestone-datetime {
    color: #666;
    font-size: 0.9em;
}

.milestone-location {
    color: #888;
    font-size: 0.9em;
}

/* Attachments */
.attachments-list {
    padding: 20px;
}

.attachment-item {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.attachment-item:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cargo-tracking-wrapper {
        padding: 10px;
    }
    
    .tracking-search-form {
        padding: 20px;
    }
    
    .page-title {
        font-size: 2em;
    }
    
    .cargo-details-table td,
    .pickup-requirements-table td,
    .shipping-info-table td {
        padding: 8px 15px;
        display: block;
        width: 100%;
    }
    
    .cargo-details-table td:first-child,
    .pickup-requirements-table td:first-child,
    .shipping-info-table td:first-child {
        background: #2c3e50;
        color: white;
        width: 100%;
    }
    
    .milestone-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .milestone-code {
        margin-bottom: 10px;
    }
}

/* Animation for loading */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-indicator p {
    animation: pulse 1.5s infinite;
}

/* Success message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
}
