/* Enhanced ApexGlobal Shipping Styles */
.gradient-bg {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #4a5568 100%);
}

.hero-bg {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #4a5568 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(229, 62, 62, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Live Statistics Ticker */
.live-ticker {
    background: linear-gradient(90deg, #1a365d, #2d3748);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

/* Status Badges - UPDATED WITH NEW STATUSES */
.status-pending { 
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.status-shipped { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.status-in-transit { 
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.status-out-for-delivery { 
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.status-delivered { 
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.status-hold { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.status-error { 
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.status-unknown { 
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

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

.tracking-event {
    position: relative;
    padding-bottom: 2rem;
    border-left: 3px solid #e5e7eb;
    padding-left: 2rem;
}

.tracking-event::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d4af37;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tracking-event.completed::before {
    background: #10b981;
    border-color: white;
}

.tracking-event:last-child {
    border-left: 3px solid transparent;
}

/* Enhanced Card Styles */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Animations */
.btn-primary {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

/* Loading Animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2d3748, #4a5568);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #d4af37;
    border-color: #d4af37;
}

/* Table Enhancements */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    font-weight: 700;
    color: #1a365d;
    border-bottom: 2px solid #e2e8f0;
}

td {
    border-bottom: 1px solid #f1f5f9;
}

tr:hover td {
    background-color: #f8fafc;
}

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* World Map Animation */
.world-map {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.package-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes moveDot {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.7;
    }
    25% {
        transform: translate(20px, -15px);
        opacity: 1;
    }
    50% {
        transform: translate(40px, 10px);
        opacity: 0.7;
    }
    75% {
        transform: translate(20px, 25px);
        opacity: 1;
    }
}

/* AI Assistant Styles */
.ai-assistant {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(45, 55, 72, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Performance Metrics Animation */
.metric-counter {
    font-variant-numeric: tabular-nums;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-bg::before {
        background-size: 150px, 120px, 100px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .tracking-timeline {
        padding-left: 1rem;
    }
    
    .tracking-event {
        padding-left: 1.5rem;
    }
    
    .package-dot {
        width: 8px;
        height: 8px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .bg-gradient-to-br {
        background: #1a365d !important;
        color: black !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-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Gold Accent Effects */
.gold-glow {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.gold-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Premium Border Effects */
.premium-border {
    position: relative;
}

.premium-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #d4af37, #f7ef8a) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    border-radius: inherit;
    pointer-events: none;
}

/* Live Map Styles */
.live-map-container {
    position: relative;
    overflow: hidden;
}

.network-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* AI Chat Styles */
.ai-message {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    border-radius: 18px 18px 18px 4px;
}

.user-message {
    background: linear-gradient(135deg, #d4af37, #f7ef8a);
    border-radius: 18px 18px 4px 18px;
    color: #1a365d;
}

/* Enhanced Loading States */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Sustainability Metrics */
.sustainability-metric {
    position: relative;
    overflow: hidden;
}

.sustainability-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Interactive Elements */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Advanced Form Styles */
.floating-label {
    position: relative;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
    transform: translateY(-24px) scale(0.75);
    color: #d4af37;
}

/* Network Status Indicators */
.status-indicator {
    position: relative;
    padding-left: 1.5rem;
}

.status-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: status-pulse 2s infinite;
}

.status-optimal::before {
    background: #10b981;
}

.status-moderate::before {
    background: #f59e0b;
}

.status-critical::before {
    background: #ef4444;
}

@keyframes status-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}
