/* Shipping Module Specific Styles */

/* Status Badges */
.status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--bs-primary);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-content h6 {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--bs-primary);
    font-weight: 600;
}

.contact-info-content p {
    margin-bottom: 0;
    color: var(--bs-dark);
    font-weight: 500;
}

/* Feature Boxes */
.feature-box {
    padding: 1.5rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Card Enhancements */
.card-header.bg-primary-light {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-info-rgb), 0.1)) !important;
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.shipping-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.shipping-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Search Form Enhancements */
.search-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-form .form-control {
    border-radius: 10px;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.2);
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.search-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.search-form .btn {
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bs-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--bs-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--bs-primary);
}

/* Package Info Grid */
.package-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.package-info-item {
    text-align: center;
    padding: 1rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-radius: 10px;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.package-info-item h6 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.package-info-item p {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Status Progress */
.status-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.status-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.status-step {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-size: 0.875rem;
}

.status-step.active {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: white;
}

.status-step.completed {
    border-color: var(--bs-success);
    background: var(--bs-success);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .search-form {
        padding: 1.5rem;
    }

    .feature-box {
        margin-bottom: 1rem;
    }

    .package-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-progress {
        flex-direction: column;
        gap: 1rem;
    }

    .status-progress::before {
        display: none;
    }
}

/* Print Styles */
@media print {
    .btn, .card-footer, .search-form {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .contact-info-item {
        background: transparent !important;
        border: 1px solid #ddd !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary-dark);
}
