/* استايل عام */
.st-tracker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Tajawal', sans-serif;
}

/* نموذج التتبع */
.st-tracker-form {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.st-tracker-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.st-tracker-form input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    margin: 0 10px 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.st-submit-btn {
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.st-submit-btn:hover {
    background: #005a87;
}

/* تفاصيل الشحنة */
.st-shipment-details {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* رقم أمر الشراء */
.st-order-number {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* الشعارات */
.st-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #eee;
}

.st-company-logo img,
.st-client-logo img {
    max-height: 80px;
    width: auto;
}

/* صورة الشحنة */
.st-shipment-image {
    text-align: center;
    margin-bottom: 30px;
}

.st-shipment-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* معرض الصور */
.st-shipment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.st-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.st-gallery-item img:hover {
    transform: scale(1.05);
}

/* مربعات المعلومات */
.st-info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.st-shipper-info,
.st-customer-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.st-shipper-info h3,
.st-customer-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* حالة الطلب مع تسليط الضوء */
.st-status-highlight {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 5px;
}

.st-status-highlight h3 {
    margin: 0;
}

.st-status {
    font-weight: bold;
    color: #0073aa;
}

/* الجداول */
.st-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.st-table th,
.st-table td {
    padding: 12px 15px;
    text-align: right;
    border: 1px solid #e0e0e0;
}

.st-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.st-table tr:nth-child(even) {
    background: #f8f9fa;
}

.st-table tr:hover {
    background: #f0f0f0;
}

/* عناوين الجداول */
.st-shipping-info-table h3,
.st-status-info-table h3,
.st-dates-table h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

/* الخريطة وصورة المنتج */
.st-map-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.st-map,
.st-product-image {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.st-map h3,
.st-product-image h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

.st-map-container {
    border-radius: 5px;
    overflow: hidden;
}

.st-product-image img {
    max-width: 100%;
    border-radius: 5px;
}

/* أزرار الإجراءات */
.st-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.st-actions button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.st-export-excel {
    background: #27ae60;
    color: white;
}

.st-export-excel:hover {
    background: #219a52;
}

.st-export-pdf {
    background: #e74c3c;
    color: white;
}

.st-export-pdf:hover {
    background: #c0392b;
}

.st-print {
    background: #3498db;
    color: white;
}

.st-print:hover {
    background: #2980b9;
}

/* رسالة الخطأ */
.st-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .st-info-boxes,
    .st-map-product {
        grid-template-columns: 1fr;
    }
    
    .st-logos {
        flex-direction: column;
        gap: 20px;
    }
    
    .st-table {
        display: block;
        overflow-x: auto;
    }
    
    .st-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .st-actions button {
        width: 100%;
        margin: 5px 0;
    }
}

/* حالة الشحنة بألوان مختلفة */
.st-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-processing {
    background: #3498db;
    color: white;
}

.status-in_transit {
    background: #9b59b6;
    color: white;
}

.status-delivered {
    background: #27ae60;
    color: white;
}

.status-cancelled {
    background: #e74c3c;
    color: white;
}