:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --text: #334155;
    --muted: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: var(--dark);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar .nav-links a {
    color: var(--light);
    margin-left: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.navbar .nav-links a:hover {
    opacity: 0.8;
}

.btn-admin {
    padding: 0.5rem 1rem;
    border: 1px solid var(--muted);
    border-radius: 6px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Forms */
.track-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: -3rem auto 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-track {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-track:hover {
    background: var(--secondary);
}

/* Shipment Status Card */
.shipment-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-sent { background: #dbeafe; color: #1e40af; }
.status-in_transit { background: #fef3c7; color: #92400e; }
.status-received { background: #dcfce7; color: #166534; }
.status-issued { background: #f1f5f9; color: #475569; }

/* Dashboard layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-card .label { font-size: 0.9rem; color: var(--muted); text-transform: uppercase; }
.stat-card .value { font-size: 2rem; font-weight: 700; margin-top: 0.5rem; }

/* Timeline for shipments */
.timeline {
    margin-top: 2rem;
    border-left: 2px solid #e2e8f0;
    padding-left: 1.5rem;
}

.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

/* Print View */
@media print {
    .navbar, .footer, .btn-track, .hero { display: none; }
    .container { max-width: 100%; box-shadow: none; border: none; padding: 0; margin: 0; }
    .print-sheet { display: block; border: 1px solid #000; padding: 20px; font-family: serif; }
}
