/* Frontend Tracking Styles */
.fet-tracking-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fet-tracking-form {
    text-align: center;
}

.fet-tracking-form h2 {
    color: #333;
    margin-bottom: 10px;
}

.fet-tracking-form p {
    color: #666;
    margin-bottom: 30px;
}

.fet-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.fet-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.fet-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.fet-form-group input:focus {
    border-color: #0073aa;
    outline: none;
}

.fet-tracking-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.fet-tracking-button:hover {
    background: #005a87;
}

.fet-tracking-result {
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fet-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.fet-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.fet-order-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.fet-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.fet-order-header h3 {
    margin: 0;
    color: #333;
}

.fet-order-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.fet-order-info {
    margin-bottom: 30px;
}

.fet-info-row {
    display: flex;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.fet-info-label {
    width: 150px;
    font-weight: 600;
    color: #666;
}

.fet-info-value {
    flex: 1;
    color: #333;
}

.fet-timeline {
    margin-top: 30px;
}

.fet-timeline h4 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.fet-timeline-items:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0073aa;
}

.fet-timeline-item {
    position: relative;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.fet-timeline-item:before {
    content: '';
    position: absolute;
    left: -23px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0073aa;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #0073aa;
}

.fet-timeline-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.fet-timeline-title {
    font-weight: bold;
    color: #333;
}

.fet-timeline-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #666;
}

.fet-actions {
    text-align: center;
    margin-top: 20px;
}

.fet-print-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.fet-print-button:hover {
    background: #218838;
}

/* Status Colors */
.status-received {
    background: #e8f4fd;
    color: #0066cc;
    border: 1px solid #b6d7f9;
}

.status-on_progress {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-refilled {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-ready {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-delivered {
    background: #28a745;
    color: white;
    border: 1px solid #1e7e34;
}

/* Responsive */
@media (max-width: 768px) {
    .fet-tracking-container {
        margin: 20px;
        padding: 20px;
    }
    
    .fet-info-row {
        flex-direction: column;
    }
    
    .fet-info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .fet-order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fet-order-status {
        margin-top: 10px;
    }
}