:root {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-danger: #ef4444;
    --color-danger-dark: #dc2626;
    --color-info: #0ea5e9;
    --color-info-dark: #0284c7;
    
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'PT Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-gray-50);
    color: var(--color-gray-900);
    line-height: 1.6;
}

.gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #6366f1 100%);
}

.gradient-success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-hover {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--color-gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    display: inline-block;
}

.status-delivered {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success-dark);
}

.status-delivered .status-badge-dot {
    background-color: var(--color-success);
}

.status-in-transit {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-primary-hover);
}

.status-in-transit .status-badge-dot {
    background-color: var(--color-primary);
}

.status-out-for-delivery {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning-dark);
}

.status-out-for-delivery .status-badge-dot {
    background-color: var(--color-warning);
}

.status-exception {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-danger-dark);
}

.status-exception .status-badge-dot {
    background-color: var(--color-danger);
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.4s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-gray-300), var(--color-gray-200));
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
}

.timeline-dot-wrapper {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-300);
    border: 2px solid white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
}

.timeline-dot-first {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-400);
    border: 2px solid white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
}

.timeline-dot-active {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.timeline-dot-future {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-100);
    position: relative;
    z-index: 3;
}

.timeline-item-future {
    opacity: 0.8;
}

.timeline-item-future .timeline-dot-future {
    animation: pulse-future 2s ease-in-out infinite;
}

@keyframes pulse-future {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .timeline-line {
        left: 1rem;
        top: 50px;
        bottom: 40px;
    }
    
    .timeline-dot-wrapper {
        top: 1.5rem !important;
        left: 0rem !important;
        width: 2rem;
    }
    
    .timeline-dot {
        left: 0rem !important;
    }
    
    .timeline-dot,
    .timeline-dot-first {
        width: 20px;
        height: 20px;
    }
    
    .timeline-dot-active {
        left: 0rem !important;
        width: 20px;
        height: 20px;
    }
    
    .timeline-dot-future {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 769px) {
    .timeline-line {
        top: 50px;
        bottom: 50px;
    }
}

.timeline-dot-wrapper {
    top: 1.5rem !important;
}

.input-field {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    background-color: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-field::placeholder {
    color: var(--color-gray-400);
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .timeline-line {
        left: 1rem;
    }
    
    .timeline-dot {
        left: calc(1rem - 6px);
    }
    
    .timeline-dot-active {
        left: calc(1rem - 8px);
    }
}

@media print {
    nav,
    footer,
    .parcel-actions,
    .guest-cta-wrapper,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .bg-white {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
    
    .bg-gray-50 {
        background: white !important;
    }
    
    a {
        color: inherit !important;
        text-decoration: none !important;
    }
    
    .page-break {
        page-break-after: always;
    }
}

