/* =====================================================================
   GOUP LOGISTICS — Premium Tracking Stylesheet
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --track-bg-dark: #0a0f1c;
    --track-primary: #0A8CFF;
    --track-primary-glow: rgba(10, 140, 255, 0.5);
    --track-accent: #FF5A00;
    --track-accent-glow: rgba(255, 90, 0, 0.5);
    --track-surface: rgba(255, 255, 255, 0.05);
    --track-surface-hover: rgba(255, 255, 255, 0.08);
    --track-border: rgba(255, 255, 255, 0.1);
    --track-text: #e2e8f0;
    --track-text-muted: #94a3b8;
    
    --status-delivered: #10b981;
    --status-delivered-bg: rgba(16, 185, 129, 0.15);
    --status-transit: #3b82f6;
    --status-transit-bg: rgba(59, 130, 246, 0.15);
    --status-out: #f59e0b;
    --status-out-bg: rgba(245, 158, 11, 0.15);
    --status-cancelled: #ef4444;
    --status-cancelled-bg: rgba(239, 68, 68, 0.15);
}

.tracking-page-wrapper {
    background-color: var(--track-bg-dark);
    color: var(--track-text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Base Overrides for tracking page */
.tracking-page-wrapper h1, 
.tracking-page-wrapper h2, 
.tracking-page-wrapper h3, 
.tracking-page-wrapper h4, 
.tracking-page-wrapper h5, 
.tracking-page-wrapper h6 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--track-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--track-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.tracking-hero {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    background: transparent;
}

.tracking-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatOrb 10s infinite ease-in-out alternate;
}

.glow-orb.orb-1 {
    width: 600px; height: 600px;
    background: var(--track-primary);
    top: -300px; left: -100px;
}

.glow-orb.orb-2 {
    width: 500px; height: 500px;
    background: var(--track-accent);
    bottom: -200px; right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.tracking-hero .container {
    z-index: 1;
}

.breadcrumbs {
    color: var(--track-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.breadcrumbs a {
    color: var(--track-primary);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover {
    color: #fff;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-title span {
    background: linear-gradient(135deg, #fff, var(--track-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--track-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Form */
.tracking-search-section {
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.glass-search-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.text-gradient {
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.input-group-premium {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    transition: all 0.3s ease;
}

.input-group-premium:focus-within {
    border-color: var(--track-primary);
    box-shadow: 0 0 20px var(--track-primary-glow);
}

.input-icon {
    padding: 0 16px;
    color: var(--track-primary);
    font-size: 1.2rem;
}

.form-control-premium {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    padding: 12px 0;
}

.form-control-premium:focus {
    outline: none;
}
.form-control-premium::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-premium-submit {
    background: linear-gradient(135deg, var(--track-primary), #0056b3);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(10, 140, 255, 0.3);
}

.btn-premium-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(10, 140, 255, 0.5);
}

.form-hint {
    color: var(--track-text-muted);
    margin-top: 12px;
    display: block;
    font-size: 0.85rem;
}

/* Alerts */
.premium-alert {
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-icon {
    font-size: 2rem;
}
.error-alert .alert-icon {
    color: var(--status-cancelled);
}

.pulse-error {
    animation: pulseError 2s infinite;
}
@keyframes pulseError {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8)); }
    100% { transform: scale(1); opacity: 1; }
}

.alert-content h5 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #fff;
}
.alert-content p {
    margin: 0;
    color: var(--track-text-muted);
}


/* Shipment Results Card */
.shipment-premium-card {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shipment-premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

.card-glass-header {
    padding: 30px;
    border-bottom: 1px solid var(--track-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.awb-icon-wrap {
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--track-text);
    border: 1px solid var(--track-border);
}

.shipment-awb .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--track-text-muted);
    margin: 0 0 4px 0;
}
.shipment-awb .awb-number {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Status Badges */
.shipment-status-badge {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.pulse-indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-delivered {
    background: var(--status-delivered-bg);
    color: var(--status-delivered);
    border-color: rgba(16, 185, 129, 0.3);
}
.status-delivered .pulse-indicator { background: var(--status-delivered); box-shadow: 0 0 10px var(--status-delivered); }

.status-transit {
    background: var(--status-transit-bg);
    color: var(--status-transit);
    border-color: rgba(59, 130, 246, 0.3);
}
.status-transit .pulse-indicator { background: var(--status-transit); animation: pulseTransit 2s infinite; }

.status-out {
    background: var(--status-out-bg);
    color: var(--status-out);
    border-color: rgba(245, 158, 11, 0.3);
}
.status-out .pulse-indicator { background: var(--status-out); animation: pulseTransit 2s infinite; }

.status-cancelled {
    background: var(--status-cancelled-bg);
    color: var(--status-cancelled);
    border-color: rgba(239, 68, 68, 0.3);
}
.status-cancelled .pulse-indicator { background: var(--status-cancelled); }

@keyframes pulseTransit {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}


/* Route Visualizer */
.card-glass-body {
    padding: 40px 30px;
}

.route-visualizer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--track-border);
    margin-bottom: 30px;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.point-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.route-point.origin .point-icon { color: var(--track-primary); }
.route-point.dest .point-icon { color: var(--status-delivered); }

.point-details {
    display: flex;
    flex-direction: column;
}
.point-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--track-text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.point-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.route-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--track-primary) 0%, rgba(255,255,255,0.1) 50%, var(--status-delivered) 100%);
    margin: 0 20px;
    position: relative;
    border-radius: 2px;
}

.animated-truck {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 30px;
    background: #0a0f1c;
    border: 1px solid var(--track-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--track-primary);
    box-shadow: 0 0 15px var(--track-primary-glow);
    animation: driveTruck 3s infinite ease-in-out alternate;
}

@keyframes driveTruck {
    0% { left: 20%; }
    100% { left: 80%; }
}


/* Premium Details Grid */
.premium-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (min-width: 992px) {
    .premium-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.premium-detail-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}
.premium-detail-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.premium-detail-box .icon {
    font-size: 1.5rem;
    color: var(--track-primary);
    opacity: 0.8;
}

.premium-detail-box .info label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--track-text-muted);
    margin-bottom: 6px;
}
.premium-detail-box .info p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}


/* Delivered Banner */
.premium-delivered-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.delivered-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.success-icon {
    font-size: 2.5rem;
    color: var(--status-delivered);
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.5));
}

.delivered-content h4 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 1.2rem;
}
.delivered-content p {
    margin: 0;
    color: var(--status-delivered);
    font-weight: 500;
}

.btn-glow-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--track-primary), #0056b3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(10, 140, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-glow-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(10, 140, 255, 0.5);
    color: #fff;
}

/* Timeline */
.card-glass-footer {
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--track-border);
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.timeline-title i { color: var(--track-primary); }

.premium-timeline {
    position: relative;
    padding-left: 30px;
}
.premium-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 30px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--track-bg-dark);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    color: transparent;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item.completed .timeline-marker {
    background: var(--track-primary);
    border-color: var(--track-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--track-primary-glow);
}

.timeline-item.active .timeline-marker {
    background: transparent;
    border-color: var(--track-primary);
    box-shadow: 0 0 20px var(--track-primary-glow);
}

.pulsing-core {
    width: 10px; height: 10px;
    background: var(--track-primary);
    border-radius: 50%;
    animation: corePulse 1.5s infinite alternate;
}
@keyframes corePulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 8px var(--track-primary)); }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}
.timeline-item.active .timeline-content {
    background: rgba(10, 140, 255, 0.05);
    border-color: rgba(10, 140, 255, 0.2);
}
.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.event-title {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: #fff;
}
.timeline-item.active .event-title {
    color: var(--track-primary);
}

.event-time {
    margin: 0;
    font-size: 0.85rem;
    color: var(--track-text-muted);
}


/* Features Section */
.premium-features-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.premium-eyebrow {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--track-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.premium-eyebrow i { color: var(--track-primary); margin-right: 8px; }

.feature-glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--track-primary);
    margin: 0 auto 24px;
    box-shadow: inset 0 0 20px rgba(10, 140, 255, 0.1);
    transition: all 0.4s ease;
}

.feature-glass-card:hover .feature-icon {
    background: var(--track-primary);
    color: #fff;
    box-shadow: 0 10px 30px var(--track-primary-glow);
    transform: scale(1.1) rotate(5deg);
}

.feature-glass-card h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.feature-glass-card p {
    color: var(--track-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    .glass-search-card { padding: 30px 20px; }
    
    .input-group-premium {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .input-group-premium .input-icon { display: none; }
    
    .form-control-premium {
        width: 100%;
        background: rgba(0,0,0,0.4);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 16px 20px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .btn-premium-submit {
        width: 100%;
        justify-content: center;
    }
    
    .card-glass-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .route-visualizer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .route-line {
        width: 2px;
        height: 40px;
        margin: 0 0 0 23px;
        background: linear-gradient(180deg, var(--track-primary) 0%, rgba(255,255,255,0.1) 50%, var(--status-delivered) 100%);
    }
    
    .animated-truck {
        top: 50%;
        left: -14px;
        transform: translateY(-50%);
        animation: driveTruckVert 3s infinite ease-in-out alternate;
    }
    @keyframes driveTruckVert {
        0% { top: 20%; }
        100% { top: 80%; }
    }
    
    .point-details.text-end {
        text-align: left !important;
    }
    
    .premium-delivered-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
