/* ══════════════════════════════════════════════════════════════════
   TRACKING — Takip Sayfası Stilleri
   ══════════════════════════════════════════════════════════════════
   Bölümler:
   1. Genel Sayfa
   2. Ortak Kartlar (tracking-card, result-card)
   3. Takip Kodu Badge & İkon
   4. Durum Badge'leri
   5. İlerleme Çubuğu & Adım Göstergeleri
   6. Parça İstatistik Kartları
   7. Bilgi Bölümleri (info-section, info-row)
   8. Parça Detay Listesi
   9. Grup Entry Kartları
   10. Form Öğeleri (captcha, case-sensitive)
   11. Mobil Uyum
   ══════════════════════════════════════════════════════════════════ */


/* ═══════════════ Bölüm 1: Genel Sayfa ═══════════════ */

.tracking-section {
    padding: 8rem 0 5rem;
    min-height: 80vh;
    background: linear-gradient(160deg, #f0f7ff 0%, #e3f2fd 40%, #ffffff 100%);
}


/* ═══════════════ Bölüm 2: Ortak Kartlar ═══════════════ */

.tracking-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(22, 51, 85, 0.10);
    padding: 2.5rem;
    max-width: 520px;
    margin: 0 auto;
}

.tracking-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #163355;
    margin-bottom: 0.5rem;
}

.tracking-card .subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(22, 51, 85, 0.10);
    padding: 2rem;
    max-width: 640px;
    margin: 0 auto;
}

.result-card .result-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #163355;
    margin-bottom: 0.3rem;
}


/* ═══════════════ Bölüm 3: Takip Kodu Badge & İkon ═══════════════ */

.tracking-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #163355, #1e88e5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.8rem;
}

/* tracking_search.html — form ikon altındaki boşluk */
.tracking-card .tracking-icon {
    margin-bottom: 1.5rem;
}

.code-badge {
    background: linear-gradient(135deg, #163355, #1e88e5);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 0.5rem;
}


/* ═══════════════ Bölüm 4: Durum Badge'leri ═══════════════ */

.status-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.status-badge.waiting {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.partial {
    background: #dbeafe;
    color: #1e40af;
}


/* ═══════════════ Bölüm 5: İlerleme Çubuğu & Adım Göstergeleri ═══════════════ */

.progress-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.progress-bar-track {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.progress-bar-fill.complete {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-bar-fill.partial {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.progress-bar-fill.empty {
    background: #e2e8f0;
}

.progress-percent {
    font-weight: 800;
    font-size: 1rem;
    color: #163355;
    min-width: 42px;
    text-align: right;
}

/* Adım göstergeleri */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    background: #e2e8f0;
    color: #94a3b8;
    border: 2px solid #cbd5e1;
    transition: all 0.3s;
}

.step-dot.filled {
    background: linear-gradient(135deg, #163355, #1e88e5);
    color: #fff;
    border-color: #163355;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.step.active .step-label {
    color: #163355;
}


/* ═══════════════ Bölüm 6: Parça İstatistik Kartları ═══════════════ */

.piece-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.piece-stat-card {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.piece-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.total-icon {
    background: rgba(22, 51, 85, 0.1);
    color: #163355;
}

.delivered-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.waiting-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.piece-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #163355;
    line-height: 1.2;
}

.piece-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* ═══════════════ Bölüm 7: Bilgi Bölümleri ═══════════════ */

.info-section {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.info-section:last-of-type {
    border-bottom: none;
}

.section-heading {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.result-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.result-card .info-row:last-child {
    border-bottom: none;
}

.result-card .info-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.result-card .info-value {
    color: #163355;
    font-weight: 600;
    font-size: 0.9rem;
}


/* ═══════════════ Bölüm 8: Parça Detay Listesi ═══════════════ */

.piece-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.piece-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    transition: background 0.2s;
}

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

.piece-detail-item.piece-delivered {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.piece-detail-item.piece-waiting {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.piece-detail-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.piece-no-badge {
    font-weight: 700;
    color: #163355;
    font-size: 0.85rem;
}

.piece-status-text {
    font-weight: 600;
    font-size: 0.8rem;
}

.piece-delivered .piece-status-text {
    color: #059669;
}

.piece-waiting .piece-status-text {
    color: #d97706;
}

.piece-icon-delivered {
    color: #059669;
}

.piece-icon-waiting {
    color: #d97706;
}

.piece-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}


/* ═══════════════ Bölüm 9: Grup Entry Kartları ═══════════════ */

.group-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

.group-entry-card {
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.group-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.group-entry-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
}

.group-entry-details {
    font-size: 0.85rem;
    opacity: 0.8;
}

.group-entry-progress-wrapper {
    margin-top: 6px;
}

.group-entry-progress-track {
    background: rgba(128, 128, 128, 0.15);
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}

.group-entry-progress-fill {
    height: 100%;
    transition: width 0.3s;
}

.group-entry-progress-fill.complete {
    background: #198754;
}

.group-entry-progress-fill.partial {
    background: #ffc107;
}

.group-entry-progress-fill.empty {
    background: #6c757d;
}


/* ═══════════════ Bölüm 10: Form Öğeleri ═══════════════ */

.case-sensitive-badge {
    background: rgba(22, 51, 85, 0.08);
    color: #163355;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
}

.case-sensitive-badge i {
    color: #1e88e5;
}

.captcha-wrapper img {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.captcha-wrapper .js-captcha-refresh {
    cursor: pointer;
    color: #1e88e5;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
}


/* ═══════════════ Bölüm 11: Mobil Uyum ═══════════════ */

@media (max-width: 480px) {
    .result-card {
        padding: 1.25rem;
    }

    .piece-stats {
        gap: 6px;
    }

    .piece-stat-card {
        padding: 0.6rem 0.3rem;
    }

    .piece-stat-value {
        font-size: 1.15rem;
    }

    .step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .code-badge {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .piece-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}


