/* PrimeCourier Custom Styles - FedEx Color Palette */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

:root {
    --fedex-purple: #4D148C;
    --fedex-purple-dark: #3C0F70;
    --fedex-purple-darker: #2A0A50;
    --fedex-purple-darkest: #1A0533;
    --fedex-orange: #FF6600;
    --fedex-orange-dark: #CC5200;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@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 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-slideIn { animation: slideIn 0.6s ease-out; }
.animate-pulse-slow { animation: pulse 2s ease-in-out infinite; }

/* Map container */
.map-container {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    z-index: 1;
}

.map-container-large {
    height: 500px;
}

/* Status timeline */
.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item:last-child .timeline-line::before {
    display: none;
}

/* Progress bar animation */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Courier tracker pulse marker */
.tracking-marker {
    width: 20px;
    height: 20px;
    background: var(--fedex-purple);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(77, 20, 140, 0.3);
}

.tracking-marker-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--fedex-purple);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--fedex-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--fedex-purple-dark);
}

/* Dashboard sidebar */
.sidebar-link {
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: rgba(77, 20, 140, 0.1);
    color: var(--fedex-purple);
    padding-left: 20px;
}

.sidebar-link.active {
    background: var(--fedex-purple);
    color: white;
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; }
    .print-area { margin: 0; padding: 0; }
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Timeline dots */
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--fedex-purple);
    background: white;
    position: relative;
    z-index: 1;
}

.timeline-dot.active {
    background: var(--fedex-purple);
    box-shadow: 0 0 0 4px rgba(77, 20, 140, 0.2);
}

.timeline-dot.completed {
    background: #22c55e;
    border-color: #22c55e;
}

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(26, 5, 51, 0.95) 0%, rgba(77, 20, 140, 0.85) 100%);
}

/* Step indicator */
.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-weight: bold;
}

/* File upload */
.file-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-zone:hover {
    border-color: var(--fedex-purple);
    background: rgba(77, 20, 140, 0.05);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        /* Future dark mode support */
    }
}
