:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --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;
    --white: #ffffff;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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);
}

.results {
}

.results-container {
    
    margin: 0 auto;
}
    .results-container > .trackingNumber{
        font-size: 1.4rem;
        background-color: white;
        border-radius: 12px;
        padding: 8px 16px;
        margin-bottom: 30px;
    }

    .error-state {
        text-align: center;
        padding: var(--space-12);
        background: var(--white);
        border-radius: var(--border-radius-xl);
        box-shadow: var(--shadow);
    }
    .error-state .error-message{
        color: var(--red);
    }

.error-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.error-state h3 {
    color: var(--danger-color);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-xl);
}

.success-state {
    display: grid;
    gap: var(--space-6);
}

.shipments-packs{
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}
.shipments-packs .shipment-pack{
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}
.shipments-packs .shipment-pack > .header{
    padding: 30px 20px;
    color: var(--purple);
    background-color: #dbc9f5;
    padding-bottom: 10px;
}
.shipments-packs .shipment-pack > .spec{
    padding: 20px;
    padding-top: 10px;
    text-align: right;
}
.shipments-packs .shipment-pack.active{
    border: 1px solid var(--red);
    background-color: #edc0c4;
    box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, .1);
}
.shipments{}
.shipments .shipment{
}

.shipment-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.shipment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.shipment-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-800);
}
.shipment-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .status-badge.hazirlanıyor {
        background: var(--warning-color);
        color: var(--white);
    }

    .status-badge.toplandi {
        background: var(--primary-color);
        color: var(--white);
    }

    .status-badge.ucakta {
        background: var(--primary-color);
        color: var(--white);
    }

    .status-badge.vardi {
        background: var(--success-color);
        color: var(--white);
    }

    .status-badge.dagitimda {
        background: var(--success-color);
        color: var(--white);
    }

    .status-badge.teslim_edildi {
        background: var(--success-color);
        color: var(--white);
    }

    .status-badge.iptal {
        background: var(--danger-color);
        color: var(--white);
    }

.shipment-details {
    padding: var(--space-6);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    font-weight: 500;
    color: var(--gray-600);
}

.detail-value {
    font-weight: 600;
    color: var(--gray-800);
}

/* Timeline Card */
.timeline-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.timeline-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-6);
    color: var(--gray-800);
}

.timeline {
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--gray-200);
    }

.timeline-item {
    position: relative;
    padding: var(--space-4) 0 var(--space-4) var(--space-12);
    margin-bottom: var(--space-6);
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 24px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--gray-300);
        border: 3px solid var(--white);
        box-shadow: 0 0 0 1px var(--gray-200);
    }

    .timeline-item.active::before {
        background: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

    .timeline-item.completed::before {
        background: var(--success-color);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

.timeline-content {
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--gray-300);
}

.timeline-item.active .timeline-content {
    border-left-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.timeline-item.completed .timeline-content {
    border-left-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.timeline-title-text {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-1);
}

.timeline-description {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}

.timeline-time {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    font-weight: 500;
}

@media (max-width: 768px) {
    .shipment-header {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    .shipments-packs{
        grid-template-columns: repeat(2, 1fr);
    }
    .shipments-packs .shipment-pack .header{
        padding: 10px;
        font-size: .9rem;
    }
    .shipments-packs .shipment-pack .spec{
        padding: 10px;
        font-size: .9rem;
    }
}

@media print {
    .header, .footer, .hero, .search-form, .info-section {
        display: none !important;
    }

    .main {
        padding: 0;
    }

    .results {
        margin: 0;
    }

    .shipment-card, .timeline-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}