/* assets/style.css */
.tapin-tracker-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    direction: rtl;
    text-align: right;
}

.tapin-tracker-form {
    margin-bottom: 30px;
}

.tapin-tracker-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #0073aa;
}

.tapin-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.tapin-submit-btn:hover {
    background: #005a87;
}

.tapin-loading {
    text-align: center;
    padding: 30px;
    color: #0073aa;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,115,170,0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tapin-result {
    margin-top: 20px;
}

.tapin-order-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.tapin-order-details h3 {
    margin-top: 0;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.tapin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    background: #fff;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item strong {
    color: #555;
    display: inline-block;
    margin-left: 8px;
}

.barcode,
.postal-code,
.phone-number {
    font-family: monospace;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 13px;
}

.price {
    color: #4CAF50;
    font-weight: bold;
}

.info-item.status-1 { border-right: 4px solid #ffa500; }
.info-item.status-2 { border-right: 4px solid #2196F3; }
.info-item.status-3 { border-right: 4px solid #9C27B0; }
.info-item.status-4 { border-right: 4px solid #FF9800; }
.info-item.status-5 { border-right: 4px solid #4CAF50; }
.info-item.status-6 { border-right: 4px solid #f44336; }

.tapin-products {
    margin-top: 20px;
}

.tapin-products h4 {
    color: #0073aa;
    margin-bottom: 15px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.products-table th,
.products-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.products-table th {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

.products-table tbody tr:hover {
    background: #f5f5f5;
}

.tapin-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    border-right: 4px solid #c62828;
}

@media (max-width: 768px) {
    .tapin-tracker-wrapper {
        padding: 15px;
    }
    
    .tapin-info-grid {
        grid-template-columns: 1fr;
    }
    
    .products-table {
        font-size: 14px;
    }
    
    .products-table th,
    .products-table td {
        padding: 8px;
    }
}