:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #0f172a;
    --accent: #10b981;
    --background: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Navbar */
nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    color: var(--white);
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Tracking Bar */
.tracking-container {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 1rem;
    display: flex;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.tracking-container input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.75rem 0 0 0.75rem;
    outline: none;
}

.tracking-container button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.tracking-container button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Cards & Details */
.content-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

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

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-intransit { background: #dbeafe; color: #1e40af; }
.status-delivered { background: #d1fae5; color: #065f46; }

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -2.05rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success { background: linear-gradient(135deg, var(--accent) 0%, #059669 100%); }
.alert-error { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.alert-info { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        padding: 1rem 5%;
        flex-direction: row;
        justify-content: space-between;
    }
    .logo { font-size: 1.2rem; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { 
        gap: 0.75rem;
        font-size: 0.75rem;
    }
    .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .tracking-container {
        flex-direction: column;
        padding: 1rem;
        background: transparent;
        box-shadow: none;
    }
    .tracking-container input {
        border-radius: 0.75rem;
        margin-bottom: 0.5rem;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    .tracking-container button {
        width: 100%;
        border-radius: 0.75rem;
    }
}
