/* Kargo Takip Stilleri */
.tracking-result-box {
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out;
}

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

.tracking-header h5 {
    font-weight: 600;
}

.tracking-info p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tracking-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Timeline Stilleri */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
    z-index: 1;
}

.timeline-item.active .timeline-marker {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.timeline-content {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
}

.timeline-item.active .timeline-content {
    border-left-color: #28a745;
    background: #f8fffe;
}

.timeline-content p {
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #2c3e50;
}

.timeline-content small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Badge stilleri */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-content {
        padding: 0.5rem;
    }
}

/* Error state */
.tracking-result-box.error {
    border-left-color: #dc3545 !important;
    background: #fff5f5;
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}

/* Input focus state */
#trackingNumber:focus {
    border-color: #e11818;
    box-shadow: 0 0 0 0.2rem rgba(225, 24, 24, 0.15);
}

/* Button loading state */
.theme-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============= MODERN CARGO DETAIL PAGE STYLES ============= */

/* Modern Header Section */
.modern-cargo-header {
    min-height: 400px;
    background: #001F3F;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(225, 0, 6, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(254, 190, 66, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(45deg); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: -1s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: -2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 80%;
    animation-delay: -3s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.cargo-icon-wrapper {
    display: inline-block;
    animation: bounceIn 1s ease-out;
}

.cargo-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.cargo-icon i {
    font-size: 2.5rem;
    color: white;
}

.cargo-icon:hover {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.modern-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInDown 0.8s ease-out;
}

.modern-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out;
}

.modern-breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.modern-breadcrumb span a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-breadcrumb span a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.modern-breadcrumb .separator {
    opacity: 0.6;
    font-size: 0.8rem;
}

.modern-breadcrumb .active {
    color: white;
    font-weight: 600;
}

@keyframes slideInDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Modern Section */
.modern-cargo-section {
    padding: 4rem 0;
    background: #f8fafc;
    min-height: 70vh;
    position: relative;
}

.modern-cargo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Loading State */
.modern-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    position: relative;
}

.loading-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #ff3f00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #ff3f00;
    animation: pulse 1s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-text {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    color: #718096;
    margin: 0;
}

/* Modern Back Button */
.back-button-container {
    display: flex;
    justify-content: flex-start;
}

.modern-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 0, 6, 0.2);
    border-radius: 50px;
    color: #ff3f00;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modern-back-btn:hover {
    background: #ff3f00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 0, 6, 0.3);
}

/* Modern Status Timeline Container */
.modern-status-timeline-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-status-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff3f00;
}

.timeline-header {
    margin-bottom: 2rem;
}

.timeline-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
}

.modern-status-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.modern-status-timeline::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

/* Card Status Steps - New Design */
.card-status-step {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    flex: 1;
    width: 180px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    z-index: 2;
}

.card-status-step.modern-status-completed {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.card-status-step.modern-status-active {
    background: #f97316;
    color: white;
    border-color: #f97316;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.3);
}

.card-status-step.modern-status-pending {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

/* Card Status Icon */
.card-status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Icon specific adjustments for perfect alignment */
.card-status-icon .fa-warehouse,
.card-status-icon .fa-building {
    font-size: 1.2rem;
    transform: scaleY(0.85);
}

.card-status-icon .fa-building-user {
    font-size: 1.3rem;
}

.card-status-step.modern-status-completed .card-status-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.card-status-step.modern-status-active .card-status-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    animation: cardIconPulse 2s infinite;
}

.card-status-step.modern-status-pending .card-status-icon {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #94a3b8;
}

@keyframes cardIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Card Status Content */
.card-status-content {
    text-align: center;
}

.card-status-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-status-date {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
    min-width: 80px;
}

.card-status-step.modern-status-pending .card-status-date {
    background: #e2e8f0;
    color: #64748b;
}

/* Modern Status Steps - Keep for compatibility */
.modern-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    position: relative;
    flex: 1;
    max-width: 150px;
    min-height: 180px;
    transition: all 0.3s ease;
}

.modern-status-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    border: 3px solid !important;
    font-size: 1.6rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    line-height: 1 !important;
    overflow: hidden !important;
}

/* Timeline Icon Alignment Fixes - Ultra Specific Rules */
.modern-status-timeline .modern-status-step .modern-status-icon .fa-box-archive,
.modern-status-timeline .modern-status-step .modern-status-icon .fa-archive,
.modern-status-timeline .modern-status-step .modern-status-icon .fa-box {
    font-size: 1.4rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.modern-status-timeline .modern-status-step .modern-status-icon .fa-truck-moving,
.modern-status-timeline .modern-status-step .modern-status-icon .fa-truck {
    font-size: 1.4rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.modern-status-timeline .modern-status-step .modern-status-icon .fa-warehouse,
.modern-status-timeline .modern-status-step .modern-status-icon .fa-building {
    font-size: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    transform: scaleY(0.8) !important;
}

.modern-status-timeline .modern-status-step .modern-status-icon .fa-building-circle-check,
.modern-status-timeline .modern-status-step .modern-status-icon .fa-building-user {
    font-size: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    transform: scaleY(0.8) !important;
}

.modern-status-timeline .modern-status-step .modern-status-icon .fa-person-carry-box,
.modern-status-timeline .modern-status-step .modern-status-icon .fa-user-tie {
    font-size: 1.4rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.modern-status-timeline .modern-status-step .modern-status-icon .fa-box-open,
.modern-status-timeline .modern-status-step .modern-status-icon .fa-undo {
    font-size: 1.4rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.modern-status-content {
    text-align: center;
}

.modern-status-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #2d3748;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modern-status-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: #718096;
}

/* Modern Status States */
.modern-status-completed .modern-status-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.modern-status-completed .modern-status-title {
    color: #10b981;
    font-weight: 700;
}

.modern-status-active .modern-status-icon {
    background: #FEBE42;
    border-color: #FEBE42;
    color: white;
    animation: modernStatusPulse 2s infinite;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(254, 190, 66, 0.4);
}

.modern-status-active .modern-status-title {
    color: #FEBE42;
    font-weight: 700;
}

.modern-status-active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #FEBE42;
}

.modern-status-pending .modern-status-icon {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.modern-status-pending .modern-status-title {
    color: #94a3b8;
}

.modern-status-pending .modern-status-date {
    color: #cbd5e0;
}

@keyframes modernStatusPulse {
    0% {
        box-shadow: 0 8px 25px rgba(254, 190, 66, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(254, 190, 66, 0.6), 0 0 0 10px rgba(254, 190, 66, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(254, 190, 66, 0.4);
    }
}

/* Glass Cards Grid */
.glass-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff3f00;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.glass-card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.glass-card-header .card-icon {
    width: 60px;
    height: 60px;
    background: #ff3f00;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.glass-card-header .card-icon:hover {
    background: #001F3F;
}

.glass-card-header .card-icon i {
    font-size: 1.5rem;
    color: white;
}

.glass-card-header .card-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.glass-card-header .card-subtitle {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

.glass-card-body {
    padding: 2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.info-item-modern:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-label {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.info-label i {
    color: #6b7280;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-value {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.9rem;
}

/* Clean Badge System */
.info-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
}

.info-badge.primary {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.info-badge.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.info-badge.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.info-badge.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

/* Status Timeline Vertical */
.status-timeline-vertical {
    position: relative;
    padding: 1rem 0;
}

.status-item-vertical {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.status-item-vertical:last-child {
    border-bottom: none;
}

.status-item-vertical:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.status-time {
    font-weight: 600;
    color: #4a5568;
    min-width: 120px;
    font-size: 0.9rem;
}

.status-badge-modern {
    padding: 0.5rem 1rem;
    background: #ff3f00;
    color: white;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.status-badge-modern:hover {
    background: #001F3F;
}

/* New Search Card */
.new-search-card {
    grid-column: 1 / -1;
    text-align: center;
}

.modern-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    z-index: 2;
}

.modern-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(226, 232, 240, 0.5);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-input:focus {
    outline: none;
    border-color: #ff3f00;
    box-shadow: 0 0 0 3px rgba(255, 63, 0, 0.1);
}

.modern-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #ff3f00;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modern-search-btn:hover {
    background: #001F3F;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 0, 6, 0.3);
}

/* Error State */
.modern-error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.error-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
}

.error-icon-wrapper {
    margin-bottom: 2rem;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: shake 0.5s ease-in-out;
}

.error-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-message {
    color: #718096;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modern-error-btn, .modern-retry-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-error-btn {
    background: rgba(71, 85, 105, 0.1);
    color: #475569;
}

.modern-error-btn:hover {
    background: #475569;
    color: white;
}

.modern-retry-btn {
    background: #ff3f00;
    color: white;
}

.modern-retry-btn:hover {
    background: #001F3F;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 0, 6, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile */
    .modern-cargo-header {
        min-height: 300px;
        padding: 2rem 0;
    }
    
    .modern-title {
        font-size: 1.8rem;
    }
    
    .cargo-icon {
        width: 80px;
        height: 80px;
    }
    
    .cargo-icon i {
        font-size: 2rem;
    }
    
    /* Timeline Mobile - Full Width Cards */
    .modern-status-timeline-container {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }
    
    .timeline-title {
        font-size: 1.4rem;
    }
    
    .timeline-subtitle {
        font-size: 1rem;
    }
    
    .modern-status-timeline {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .modern-status-timeline::before {
        display: none;
    }
    
    /* Mobile Card Design - Full Width */
    .card-status-step {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 1.5rem;
        margin-bottom: 1rem;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        align-items: center;
        border-radius: 12px;
    }
    
    .card-status-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 1rem 0 0;
        flex-shrink: 0;
    }
    
    .card-status-content {
        flex: 1;
        text-align: left;
    }
    
    .card-status-title {
        font-size: 0.9rem;
        height: auto;
        margin-bottom: 0.25rem;
        justify-content: flex-start;
    }
    
    .card-status-date {
        font-size: 0.8rem;
        min-width: auto;
        padding: 0.2rem 0.5rem;
    }
    
    /* Glass Cards Mobile */
    .glass-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .glass-card-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .glass-card-body {
        padding: 1.5rem;
    }
    
    /* Info Items Mobile */
    .info-item-modern {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
    }
    
    .info-label {
        margin-bottom: 0.5rem;
    }
    
    /* Search Form Mobile */
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Error Actions Mobile */
    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-error-btn,
    .modern-retry-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Back Button Mobile */
    .modern-back-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .modern-cargo-header {
        min-height: 250px;
    }
    
    .modern-title {
        font-size: 1.5rem;
    }
    
    .modern-status-timeline-container {
        padding: 1rem 0.5rem;
    }
    
    .card-status-step {
        padding: 1rem;
    }
    
    .card-status-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .card-status-title {
        font-size: 0.85rem;
    }
    
    .card-status-date {
        font-size: 0.75rem;
    }
}

/* Horizontal Status Timeline */
.status-timeline-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem 0;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4%;
    right: 4%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    z-index: 1;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 4px solid;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.status-content {
    text-align: center;
    color: white;
}

.status-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.status-date {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Status States */
.status-completed .status-icon {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.status-active .status-icon {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
    animation: statusPulse 2s infinite;
    transform: scale(1.1);
}

.status-pending .status-icon {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.6);
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
    .status-timeline {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .status-step {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: none;
        margin-bottom: 1rem;
    }
    
    .status-timeline::before {
        display: none;
    }
    
    .status-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .status-title {
        font-size: 0.8rem;
    }
    
    .status-date {
        font-size: 0.7rem;
    }
}

/* Detailed Timeline Styles for Detail Page */
.timeline-detailed {
    position: relative;
    padding-left: 40px;
    margin: 1rem 0;
}

.timeline-detailed::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #007bff, #28a745);
}

.timeline-item-detailed {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.timeline-item-detailed:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.timeline-marker-detailed {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-item-detailed.active .timeline-marker-detailed {
    border-color: #28a745;
    background: #28a745;
    color: white;
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.timeline-content-detailed {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #e9ecef;
    margin-left: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item-detailed.active .timeline-content-detailed {
    border-left-color: #28a745;
    background: #f8fff8;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.timeline-content-detailed::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent #f8f9fa transparent transparent;
}

.timeline-item-detailed.active .timeline-content-detailed::before {
    border-right-color: #f8fff8;
}

.timeline-header {
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.timeline-body p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Info Items */
/* Cargo Detail Info Items - More specific selector */
.modern-cargo-section .info-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.modern-cargo-section .info-item:hover {
    background: #e7f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modern-cargo-section .info-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.modern-cargo-section .info-item span {
    color: #495057;
    font-weight: 500;
}

/* Card Animations */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Status Badge */
.badge.fs-6 {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-detailed {
        padding-left: 30px;
    }
    
    .timeline-marker-detailed {
        left: -25px;
        width: 35px;
        height: 35px;
    }
    
    .timeline-content-detailed {
        margin-left: 15px;
        padding: 1rem;
    }
    
    .modern-cargo-section .info-item {
        padding: 0.5rem;
    }
}

/* CORS Error styling */
.solution-steps .solution-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.solution-steps .solution-item:hover {
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.solution-steps code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #d73527;
}

.tracking-result-box .text-danger {
    color: #dc3545 !important;
}

.tracking-result-box .text-success {
    color: #198754 !important;
}

.tracking-result-box .text-muted {
    color: #6c757d !important;
}
