/* Çakırbey Lojistik Eklenti - Frontend Stilleri */

.cakirbey-shipments-list {
    margin: 20px 0;
}

.shipments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.shipment-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.shipment-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.tracking-number {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-in_transit {
    background-color: #3498db;
    color: white;
}

.status-delivered {
    background-color: #27ae60;
    color: white;
}

.status-returned {
    background-color: #e74c3c;
    color: white;
}

.status-cancelled {
    background-color: #95a5a6;
    color: white;
}

.shipment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.sender-info, .receiver-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.sender-info h4, .receiver-info h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sender-info p, .receiver-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

.phone-icon, .address-icon {
    margin-right: 5px;
}

.shipment-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.spec-item {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #6c757d;
}

.type-icon, .weight-icon, .dimensions-icon {
    margin-right: 5px;
}

.shipment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.created-date {
    font-size: 12px;
    color: #6c757d;
}

.date-icon {
    margin-right: 5px;
}

.track-button {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.track-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.no-shipments {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}

/* Takip Sayfası Stilleri */
.cakirbey-tracking {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tracking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.tracking-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
}

.tracking-number-display {
    font-size: 18px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.shipment-info {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.info-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.info-content p {
    margin: 8px 0;
    color: #495057;
    font-size: 14px;
}

.tracking-timeline {
    padding: 30px;
    background: #f8f9fa;
}

.tracking-timeline h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 20px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.timeline-item.latest {
    border: 2px solid #007cba;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: white;
    border: 3px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-item.latest .timeline-marker {
    border-color: #007cba;
    background: #007cba;
}

.status-icon {
    font-size: 14px;
}

.timeline-content {
    padding: 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-title {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.timeline-date {
    color: #6c757d;
    font-size: 12px;
}

.timeline-location {
    margin: 5px 0;
    color: #495057;
    font-size: 14px;
}

.location-icon {
    margin-right: 5px;
}

.timeline-description {
    margin: 10px 0 0 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.tracking-actions {
    padding: 30px;
    text-align: center;
    background: white;
}

.track-another-button {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.track-another-button:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.no-updates {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .shipments-grid {
        grid-template-columns: 1fr;
    }
    
    .shipment-details {
        grid-template-columns: 1fr;
    }
    
    .shipment-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .tracking-header {
        padding: 20px;
    }
    
    .tracking-header h2 {
        font-size: 24px;
    }
    
    .shipment-info {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    
    .tracking-timeline {
        padding: 20px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -27px;
        width: 20px;
        height: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
}

