/* Modern Tracking CSS - Deep Blue Theme like DHL/UPS */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Deep Blue Color Scheme */
    --primary-blue: #1e3a8a;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #3b82f6;
    --accent-blue: #0ea5e9;
    --navy: #0f172a;
    --navy-light: #1e293b;
    
    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Success/Warning/Error */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* White */
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Search Form */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    font-size: 1.1rem;
    background: transparent;
    color: var(--gray-800);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-button {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    min-width: 120px;
}

.search-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.search-button:active {
    transform: translateY(0);
}

.search-help {
    text-align: center;
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Section Base */
.section {
    padding: 3rem 0;
}

/* Loading Section */
.loading-section {
    background: var(--white);
}

.loading-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.loading-spinner {
    margin-bottom: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--gray-600);
}

/* Error Section */
.error-section {
    background: var(--white);
}

.error-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.error-icon i {
    font-size: 2rem;
    color: var(--gray-400);
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.error-content p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.button-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.button-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

/* Results Section */
.results-section {
    background: var(--white);
    min-height: calc(100vh - 200px);
}

/* Shipment Header */
.shipment-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.shipment-number {
    text-align: center;
    margin-bottom: 2rem;
}

.shipment-number .label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shipment-number .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Monaco', 'Menlo', monospace;
}

.shipment-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.route-point {
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.route-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.route-arrow {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* Status Card */
.status-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.status-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.status-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.status-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.status-info {
    flex: 1;
}

.status-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.status-location {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.status-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Progress Bar */
.progress-container {
    position: relative;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--white) 100%);
    border-radius: var(--radius);
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: var(--gray-800);
    text-align: right;
}

/* Timeline Section */
.timeline-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    z-index: 1;
}

.timeline-icon.current {
    background: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.1); }
    100% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }
}

.timeline-content {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 3px solid var(--primary-blue);
}

.timeline-content.current {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue-light));
    color: var(--white);
    border-left-color: var(--white);
}

.timeline-status {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-location {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.timeline-time {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

.timeline-pod-signature {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-pod-signature i {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav {
        display: none;
    }
    
    .shipment-route {
        flex-direction: column;
        gap: 1rem;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
    .status-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-button {
        justify-content: center;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .shipment-header,
    .status-card,
    .timeline-section {
        padding: 1.5rem;
    }
}